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 
<https://gist.github.com/rb2k/8372402> 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

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/76a42ac6-c827-4fe9-974c-5f6383954f65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to