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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,806 views 0 6
Read article

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