How to configure bamboo plan to trigger on the default repo only

I am setting up a Bamboo build plan which has two repositories.  One is for the source, the 2nd repo holds some build scripts that are common across many build plans.  I want to have the plan build automatically when the source repo is committed to.  If I set the plan to use the 'Stash Repository Triggered' option, the plan is building when either repo is committed to.  I don't want the plan to build if the script repo changes.

Is there a way to set up the plan so that it only triggers of off a single repo?  It appears that if I use the Polling trigger I could select only one repo to poll, but I'd like to still use the Stash hooks.

1 answer

1 accepted

0 votes
Accepted answer

Hello Doug,

Thank you for your question.

You could use "Exclude changesets" where you can enter a regular expression to match the commit messages for changesets that should not start a build.

Please, refer to Linking to source code repositories - Stash documentation for further information.

Alternatively, you could create two plans and make one dependent from another.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Support

I set the "Exclude changesets" on the repo to .* to ignore everything. That seemed to do the trick. It would be nice to be able to control which repos trigger the plan, similar to how repos can be selected for polling.

Hi Doug, is this still working for you?  I have Exclude changesets set to .* and its still building on the other repo I have listed.  Also, what version of bamboo are you on?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

189 views 4 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