Proper regexp needed for include/exclude file repository advanced option

I have been unable to craft a regular expression for the include/exclude file feature.

I have a single Stash source code repository.  In that repository I have top-level directories named dev/ and qa/.

I have two bamboo plans. I want one to launch when there are changes to .json files in the dev/ directory, and the other should be launched when there are changes in the qa/ directory.

I set the include/exclude option to 'include...'

I expect the following regular expression should work.

^.*dev/.*\.json

But it doesn't work.  Even if no .json files are changed by a commit in the dev/ directory, the bamboo plan is still launched.  I have tried many, many, many variations of this pattern, like backslashing the forward slash, omitting the leading .*, omitting the \. completely, etc., etc., .... But nothing seems to work.

What should the regexp be?  Am I misinterpreting how the feature works?

 

Bamboo is Atlassian Bamboo version 5.11.4.1 build 51120 - 04 Jul 16

Stash version is Atlassian Stash v3.9.2

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

54 views 1 0
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