Is it possible to control how frequently Bamboo looks for new branches?

We use Bamboo 4.4.4 and Stash 2.3.0, with automatic branch management configured on our main plan.

It seems that Bamboo is certainly taking its time with detecting new branches. We have experienced delays of up to 10 minutes between the time that a branch is pushed to the repository, and the time that Bamboo actually creates a plan branch.

Is it possible to control this delay somehow? we are currently in POC stages so this delay is very confusing.

3 answers

1 accepted

1 vote
Accepted answer

Yes, it's configurable. Try passing -Dbamboo.branchDetection.checkInterval=60 to Bamboo server. The value is in seconds.

We run Bamboo as a Windows service. By "passing", do you mean editing the wrapper.conf file?

By the way, wouldn't you say that this is an important-enough setting that should be in Bamboo's administration panels somewhere?

... How? Can you provide a link to the documentation showing this?

Yes, you'd need to edit the conf file.

By the way, wouldn't you say that this is an important-enough setting that should be in Bamboo's administration panels somewhere?

Maybe, otoh, there are so many options that could be there... You can also trigger the detection externally, btw.

Would it be more efficient for stash to call out to the bamboo API to create the plan branch (if it doesnt already exist) when a push is made to a stash repository?

Hi Isaac (and Brian).

Just from the Stash perspective it's worth mentioning that the biggest problem we see related to performance is CI integartion. If/when you decrease your polling time please keep in mind that Stash only supports a limited number of concurrent Git operations. This document outlines all the various things to consider, and caching that you can configure:

https://confluence.atlassian.com/display/STASH/Scaling+Stash+for+Continuous+Integration+performance

Brian - related to your question. You may be possible to configure Stash to ping Bamboo using our Web Hook plugin:

https://marketplace.atlassian.com/plugins/com.atlassian.stash.plugin.stash-web-post-receive-hooks-plugin

And the associated Bamboo documentation:

https://confluence.atlassian.com/display/BAMBOO/Repository+triggers+the+build+when+changes+are+committed#Repositorytriggersthebuildwhenchangesarecommitted-2.ConfiguringBambootorespondtopost-commitmessages

You might also be interested in the following Stash feature request which you might want to watch/vote for:

https://jira.atlassian.com/browse/STASH-3885

Cheers,

Charles

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Statuspage

194 years of downtime: looking back on incident data from 2018

Statuspage customers logged more than 194 years of collective incidents in 2018. That’s a whopping 87% increase from the  104 years logged in 2017 , and we aren’t even through December yet....

32 views 1 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