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

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

alstaroverov 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

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events