The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

mirkop
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!
March 20, 2019

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Gnanamadhu
Contributor
March 22, 2019

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.

mirkop
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!
March 24, 2019

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
Tom Haywood
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!
May 6, 2020

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.

Like Kevin Leung likes this
TAGS
AUG Leaders

Atlassian Community Events