How to trigger CodeBuild for every git push

0

Hello, Is there a way to trigger CodeBuild every time I push a feature branch into CodeCommit? In this way I could run tests before to merge the branch back into master or another branch.

thanks M

asked a year ago337 views
2 Answers
0

You want to create a build trigger, in a project --> https://docs.aws.amazon.com/codebuild/latest/userguide/trigger-create.html. However in a build project you can set the source to be CodeCommit, Bitbucket or GitHub. This is a tutorial that shows full clone of GitHub Repo --> https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials-github-gitclone.html

profile pictureAWS
aaron_l
answered a year ago
0

But in this way the trigger is for a project with a specific source and branch. What I am looking for is to execute my pipeline every time a branch is pushed to the repo, like to have "*" rather than to specify a specific branch name. Is that possible?

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions