Forums

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

how to match two branches

Bill November 8, 2018

When set up tasks in bitbucket pipeline, I am not sure how to match two or more branches?

pipelines:
  branches:
    feature-*|hotfix-*: 
        - step:
...

I also tried (feature|hotfix)-*  and master,hotfix-* 

 

but above codes doesn't work. Are there any ways to do that?

 

1 answer

0 votes
Jeroen De Raedt
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 19, 2018

Hi @Bill,

try this: 

pipelines:
  branches:
    "(feature-*|hotfix-*)": 
        - step:
...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events