Hi,
I would like to automatically clean the workspace on slaves since our slaves run out of disk space from time to time.
I saw that there are plugins to clean a job's workspace before or after the execution and I've seem this
groovy script but I'm not really satisfied with those solutions. I would like to only delete a few of the last used workspaces that would bring me back within the free disk space threshold that we've defined. Not delete the whole thing to keep things fast.
For this I'm thinking about using the last access property on the workspace, however this doesn't seem to be available from the Jenkins API.
So I came to the conclusion that a plugin would be the way to do this and before I start building my own I hope that someone can point to an existing solution.
Thanks
Philippe