Currently the way how AWS CodeStar setted up a default python project was to have a pipeline defined with initial source stage as follows;
The branch name here is master
, so the pipeline triggers whenever a new change is merged into master branch. I also did a success try of changing the branch name to SLS-2
and pipeline triggered upon pushing a commit on this SLS-2
branch... GREAT ! but what I want is to run the pipeline on every single commit from ANY branch. And ofcourse then after that, setting up manual and automatic stages based on weather the branch is master or not.
I know in GitLab, we can specify each stage by tag
stage: dockerize
script:
- echo 'I will run this only on master branch'
only:
- master
- tags
Or I can add except
tag with - master
to allow this stage trigger on all branches except master. How can I do this with AWS CodePipeline ? Please suggest.