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

feita há um ano355 visualizações
2 Respostas
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
respondido há um ano
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?

respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas