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

已提问 1 年前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
已回答 1 年前
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?

已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则