What is the git repository cache used for on the bamboo server?

We have the "Default agent" turned off - we only use remote agents. However, the git repository cache on the bamboo server is populated. I'm curious to know if I can delete these caches without affecting our builds. 

4 answers

1 vote

Bamboo checkouts repositories to detect commits and trigger builds, to get list of branches and create/remove plan branches. You can cleanup these caches in case of any issues, Bamboo will create them again when necessary

0 votes

Yes, you can.

Is Alexey's answer correct? Does Bamboo really do full checkouts just to figure out when to trigger builds? That seems incredibly heavy-handed.

I'd like confirmation on this, if possible - ultimately I'd like to know if I can avoid the server making these checkouts at all if we're not using the Default server agent. 

0 votes
Bruno Rosa Atlassian Team Sep 22, 2016

Hi Sam, yes Alexey is right. I'm afraid you won't be able to prevent Bamboo from checking out the repository even if you're not using local agents, Bamboo was designed to work like this as it needs the cache to detect commits, trigger builds and get a list of branches. The answer to your original question would be yes, you can remove the cache without affecting your builds, but Bamboo will automatically create them again when necessary.

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

3,283 views 8 7
View question

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