Clean/Expire local maven repositories on agent
Hi,
I found the property that lets me expire old checkouDirs (which can take up a lot of disk space).
For our builds we are also using the feature "Use own local repository for this build configuration" and there are a lot of these repos since we are running a large number of builds on our agents. I was wondering if a similar feature exists for expiring these repos on the build agent or if such a feture is planned in future releases
Right now I am forced to manually clean this from time to time..
Thanks
Carsten
,
Please sign in to leave a comment.
Hi Carsten, sorry for the delay.
I am not aware of such option at the moment. If per-build configuration local maven repository is enabled, then such repo should be cleaned during the usual free disk space procedures on the build agent.
We also have a plugin that can cleanup local maven/gradle repositories if the agent decides it needs to free some space, but it was never bundled with the default installation. You can take it from here: https://github.com/JetBrains/teamcity-caches-cleanup-plugin
Hope this helps.