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

Does the bitbucket-pipelines.yml need to be in every branch ?

malikrosset November 27, 2019

Hi,

I just want to be sure about something that doesn't sound so great to me :

I have my bitbucket-pipelines.yml in my dev branch, but does it need to be in every other branch ? I've set it so it triggers a pipeline on every pull-request, but for every old branch that doesn't yet have the file, nothing is triggered. Is this normal behaviour ?

What scares me a bit, if that's the case, is how are you supposed to manage your pipelines properly ? Like every time you update it, you have to manually propagate that to other branches ?

Thanks for your help.

 

Malik

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 6, 2020

Hello,

This is correct. The bitbucket-pipelines.yml file must be in the specified branch in order for it to be run.

The expectation is that branches remain (roughly) in sync. Such as with a feature branching workflow.

What is your branch workflow out of curiosity? Is there a reason you can't keep your branches in sync regularly?

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events