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

This widget could not be displayed.

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.

This widget could not be displayed.

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

This widget could not be displayed.

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.

This widget could not be displayed.

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
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

71 views 0 1
Join discussion

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