Or you could put something like this into a cron job: curl -k --silent --show-error -X POST https://<user>:<userapitoken>@<jenkins server>/job/<jobname>/doWipeOutWorkspace
See http://stackoverflow.com/a/14863116/1650982 for details on how to obtain the userapi token. And you might need to adjust the protocol (https/http) depending on how your server is set up. And you could get a list of all the job urls for the server like this: curl -k --silent --show-error https://<user>:<userapitoken>@<jenkins server>/api/xml | xmlstarlet sel -t -m "//job/url" -v "text()" -n I'll leave the conversion of the two techniques into a script to wipe out all the work spaces as an exercise for the reader since I need to finish making dinner. Cheers, Ben On Fri, Jul 4, 2014 at 11:25 PM, ogondza <[email protected]> wrote: > On Saturday, July 5, 2014 8:05:00 AM UTC+2, Shirhen Ince wrote: >> >> I want it to be automatic not that every user will need to chose to do >> so... this plugin does not do it. > > > This is valid feature request for WS Cleanup plugin. > > -- > oliver > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
