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

Your Points Tracker
Challenges
Leaderboard
  • 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
Recognition
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?
Kudos
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

Cleanup xml-data directory on remote agent

Hi,

we are encountering some cleapnup / expiry issues on remote agents (6.0.3 and 6.2.2).

Global expiry settings do not seem to purge xml-data dirs on remote agents, even if the settings should find several files.

Now we are looking for a best (or recommended) practise solution to get some free disk space.

Would a script like this be useful and secure in consistency matters?

find /srv/bamboo/bamboo-agent-home/xml-data/build-dir/ -maxdepth 1 -type d -mtime +14 |xargs rm -rf

Ralf

1 answer

1 vote
robhit Atlassian Team Nov 16, 2017

Hi Ralf,

 

Build expiry doesn't clean off the data from the remote agents. It looks after the bamboo server data only.

 

There are few improvement requests already in the system for the same:

https://jira.atlassian.com/browse/BAM-13680

https://jira.atlassian.com/browse/BAM-13589

Since the agents transfer the build artifacts and other data to Bamboo, there is no relation so you can use the command which you have mentioned to clean the data which is 14 days older or whatever your requirement is.

I believe that Clean working directory after each build option in the Plan configuration is the proper solution for this problem.

 

Thanks

Hi Robhit,

thank you heaps for the hints. I was aware of the "Clean working directory after each build" options but we were looking for a more global solution. To prevent to reconfigure every single build plan.

robhit Atlassian Team Nov 16, 2017

Hi Ralf,

 

I was thinking of having a script in the machine where the remote agent is.

Then use this script to check for disk usage at a certain time interval.

If the disk usage reaches 80% or whatever, execute the command which you mentioned earlier to delete the data from the agent directories.

 

Thanks

Suggest an answer

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

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

223 views 4 6
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