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

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 Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,068 views 0 5
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot