Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Need a solution to clean up Bamboo remote agent boxes

Hello Everyone,

Our bamboo remote agents are running out of space quite often and we are seeing that "/xml-data/build-dir" is using around 26G.

Whats the best way to clean up this this directory ? 

FYI: We've enabled force clean build on source code checkout task on all build jobs.

And we would like to enable "Override global build expiry configuration" does it help cleaning up existing files in "/xml-data/build-dir" ?






1 answer

2 votes

Hi @Nikhil Kumar

All the content from xml-data/build-dir can be removed if there is no build running there. This is the data stored there:

  • Build files created during the build, along with a local copy of the latest changes of the affected source repositories
  • Agent cache for each source repository that eventually was run in the remote agent
    • build-dir/_git-repositories-cache
    • build-dir/_hg-repositories-cache
    • ...

The Bamboo build expiry does not remove files from remote agents. We do have a feature request for this: [BAM-13679] Optional build expiry for remote agents.

Plans and deployments that were removed from the server are also not removed from the remote agents. This is another feature request, but more popular: [BAM-13589] Agents should remove workspaces for plans that no longer exist.


From time to time stop the agent and remove the content from xml-data/build-dir that is not used for a long time. It can include the repository cache folders. If you accidentally remove a repository cache that is still used the only penalty you will suffer is a long build time when you run the next build. This will happen because the agent will need to recreate the cache.

Please let me know if you have more questions on this matter.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo Data Center - Early Access Program

G’day Bamboo customers, The wait is almost over! We are in the final stages of work on the first release of Bamboo Data Center, our self-managed enterprise offering of Bamboo. This Data Center offe...

1,103 views 0 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you