I have a project repository on Bitbucket with approximately 600 branches, including features and hotfix branches. I've recently created a new pipeline in Bitbucket to scan the code using SonarCloud. I've also created a bitbucket-pipelines.yml
file in the master branch. My goal is to apply this pipeline configuration to all existing branches. Currently, the bitbucket-pipelines.yml
file is only in the master branch. When I make changes in the master branch, the pipeline is triggered, but it doesn't trigger when I make changes in any other branch. Can you please provide a solution for this issue?
Hi Abhay and welcome to the community!
The bitbucket-pipelines.yml file needs to exist on every branch that you want to run a pipeline. If you want to run a pipeline for every existing branch, you will need to commit and push the file to every branch.
If you want the exact same pipeline to be executed for every branch, you can use the same default definition in every yml:
Please feel free to reach out if you have any questions!
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.