Hello community! I have some doubts. I need to set up the trigger to run my pipeline on a specific branch, but despite inserting the code snippet below, it always runs. Is it possible to make this kind of configuration? How can I set it up so that it only runs on this branch? Thank you!
branches:
only:
- hml
Hi Felipe,
Welcome to the Bitbucket Cloud community! :)
The default tag configured in your YML config should be the only tag where builds will run upon every commit, regardless of the branch.
Limiting the builds to a singular branch (in this case, the master branch would look like this):
pipelines:
branches:
master:
- step:
name: 'Echo Message'
script: echo "Hello world!"
I would suggest double checking your YML config, and also reading our documentation for YML configuration below:
Hope this helps.
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.