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

질문됨 일 년 전355회 조회
2개 답변
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
답변함 일 년 전
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?

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠