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

2 réponses
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
répondu il y a un an
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?

répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions