You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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!