The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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:

/*.*
TAGS
AUG Leaders

Atlassian Community Events