Forums

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

bamboo build regex

Mike March 22, 2018

I want to kick off builds only after commits to certain filepaths.  Seeing a lot of conflicting/mis-information on the nets.  In particular, if I try ** I get an error saying invalid regex.  

Lets say my repo is named "company/repo".  And the filepath I want to allow for is "company/repo/commons".  How can I write the regex that bamboo accepts it?

List of failed attempts:

*commons*

/**/commons/**/

commons/*

commons\/*

 

1 answer

0 votes
robhit
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 22, 2018

Hi Mike,

Thanks for your question!

Could you please try the below:

This will match what you are looking for:

.*/commons

The below will match the infinite:

/*.*

Thanks,

Robhit

Mike March 23, 2018

Hi Robhit-

I tried 

.*/commons

and it doesnt work.  Now what?

Mike

Mike March 23, 2018

Also, what do you mean by:

The below will match the infinite:

/*.*

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events