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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

What branch does is the bitbucket-pipelines yaml being loaded from?

What branch is the bitbucket-pipelines.yaml being loaded from? The main branch? Master? From the  branch that it is supposed to build?

 

I have seen some strange behaviour where the bitbucket-pipelines.yaml has been modified in the main branch, but a scheduled build job has not picked up those changes.

 

Cheers,

Mirko

1 answer

As stated in the documentation here. If you mention `default`, the pipeline will be triggered on every commit on any branch. If you specifically mentioned the branch names, then it will triggered only on those branches if any changes happen in them.

Hi @Gnanamadhu thanks for your reply. It does not 100% answer my question though. The bitbucket-pipelines.yaml can have different contents based on the branch. So where does the pipeline code come from? From whatever the main branch is?

Like # people like this

For a working example, I have just committed the bitbucket-pipelines.yaml to a feature branch. There are no pipelines listed for the repository, I have also gone into the settings to enable pipelines which seems not to have made any difference.

 

What is the expected behaviour here? Does the bitbucket-pipelines.yaml file need to be committed to the default branch? Is this the first time only? If so I'd be concerned I can't test my changes before rolling them out to everyone.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,888 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you