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: 

Prevent pipelines configuration file to be merged

Weimar_Coro
April 9, 2019

Is there a way to prevent the branch specific pipelines configuration files to be merged when using the "Merge" feature on bitbucket?

For example: 

I have my development pipeline configuration to run on any push done to development branch. However, when I merge development to beta branch, the configuration for development branch (pipeline) is also merged which is not the desired behavior.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
joshuatroy
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!
April 9, 2019

Not sure if this helps Weimar:

 

pipelines:

branches:

dev:
-
step:
name: only run when pushed to dev
script:
- pwd

pipeline:
-
step:
name: only run when pushed to pipeline
script:
- pwd

(the spacing is likely off in this yaml snippet^ I just typed it in this text box)

You can specify multiple branches within your pipeline so that step will only run if pushed to that specific branch. Rather than having to worry about merging two different bitbucket-pipelines.yml file you can have the same one on both branches.

Weimar_Coro
April 9, 2019

Good answers. I will try that. Thanks so much!

TAGS
AUG Leaders

Atlassian Community Events