Bamboo 4.3 - Regular expression when configuring automatic plan branching

When configuring a plan to support automatic plan branching on the branching of repos, I'm given the option to write a regular expression to match the name of the repo branch. The label of the field is "Only create Branches that match".

What kind of expressions are supported here? Some kind of reference would be nice. And more specifically: is it possible to express a set of branches that should NOT trigger a plan branch to be created?

Any insight shared would be valuable.

Regards,

4 answers

1 accepted

OK, thanks!

With that, I guess I can somehow construct an expression that is matching all but some sequence, even though I'm not sure exactly how. :) But I'll try it out eventually.

And since the question was mostly about the syntax, I'll mark your reply as an answer.

Hi,

When you don't want develop to be triggered you can use:

^((?!develop).)*$

into the "Only Create Branches that Match" field on the branch configuration tab.


Rudy

Still no comments or ideas on this? I thought it would be a pretty simple one to answer.

Basically, what I'm wondering is just what syntax/pattern language I can/should use when specifying a value in the above field.

I have an agent named testbamboorm10.site4. Added an requirement "

unique.agent.name Custom matches .*site4

"

Why is fails? Thanks

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

5,237 views 20 17
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you