Details
-
Suggestion
-
Resolution: Fixed
Description
As a pipeline user I would like that I am able to run specific custom pipelines only on specific branches
that could be something like:
#!python pipelines: custom: master <-- branch name deploy-to-prod: - step:
Workaround
Use a script to check the branch version:
- if [ "$BITBUCKET_BRANCH" != main ]; then echo "Release pipeline can only be triggered on main branch" && exit 1; fi