Hi
Bamboo remote agents do not cleanup after themselves, no matter what cleanup jobs are enabled on the bamboo server. The directory
\xml-data\build-dir
just keeps growing until someone manually deletes old files.
What settings are required for bamboo to cleanup on the remote agents, the same way it does on the server itself? I found some very old feature requests and answers but I don't believe they are representing the current state.
Thanks
Hello @SG
To clean up the build folder after each build you can:
Or, if you prefer cleaning the build folder before each build:
Or you can even set both, just in case.
Kind regards,
Eduardo Alvarenga
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--
Hello Eduardo
Thanks, but shouldn't this data be cleaned up according to the expiry plan? We build on the bamboo server itself and on a remote agent and this build-up of data only happens on the remote agent. I would prefer setting a global expiry instead of adjusting each build plan.
Kind Regards
SG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @SG
Build expiry will only purge artifacts and logs created by Bamboo during the build.
Other files that are created as part of the build process are not controlled by Bamboo and are left in their locations so developers can investigate issues if necessary. This is by design.
Regards,
Eduardo Alvarenga
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a setting you can enable in each build to clean the directory after the build. It's called something like: "clean working directory after build"
I do not have access to a Bamboo instance myselfy immediately but that's how I did it for years.
An alternatvive is to schedule a cronjob at times where you're sure nothing will be running.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.