Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

i want to setup bitbucket pipeline in existing project. how i achieve that

abhay Marwade
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 26, 2023

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?

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 30, 2023

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events