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: 

Is bitbucket-pipelines.yml triggered only in specific branch?

alstaroverov
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 28, 2021

can bitbucket-pipelines.yml be in any branch? Suppose I have a repo with multiple branches ( master, develop, feature_cool_feature_1, etc.) and have bitbucket-pipelines.yml in every, contains:

pipelines:
default:
- step:
{unittests running}

Will they work altogether when merge any branch? Or only 1 bitbucket-pipelines.yml will work according to branch where code is merged?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Justin Thomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 12, 2021

@alstaroverov The Bitbucket Pipelines definition is based on the branch that has changed. 

For example: If I push a commit to the development branch, then bitbucket-pipelines.yml from the development branch is used as the Bitbucket Pipelines definition. Please let me know if you have further questions.

TAGS
AUG Leaders

Atlassian Community Events