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

Accepted Answer
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 Sign up to answer
Community showcase
Published Monday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

489 views 0 9
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