Forums

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

BitBucket Post Web Hook - Regex for ignoring branches

Peter Garrett
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!
March 20, 2019

Hi,

I am looking for help on how to create the regex string to ignore all branches except for the release branch in the "Post Web Hook" "Branches to ingore" field. 

Thanks

 

 

 

2 answers

1 vote
someone else
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!
October 29, 2019

the branches to ignore field accepts a regex so a negative look around appears to work for this ie:
((?!yourbranchnamehere).)*

gnowland July 8, 2024

This worked better for me:

^(?!yourbranchnamehere).*
0 votes
saikirandusari
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!
July 19, 2019

Same issue here, looking for a solution.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events