automatic workspace cleanup

52 views
Skip to first unread message

Shirhen Ince

unread,
Jul 4, 2014, 4:59:33 PM7/4/14
to jenkin...@googlegroups.com
Hi,
 I'm looking for a way to remove the workspaces automatic
 without relying on the user to choose the delete worksace option 
is there an exiting plugin that does that ? 


Daniel Beck

unread,
Jul 4, 2014, 5:35:48 PM7/4/14
to jenkin...@googlegroups.com
Not a dev list question. Also, at least try to search once before asking.
> --
> 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 jenkinsci-de...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Shirhen Ince

unread,
Jul 4, 2014, 5:57:08 PM7/4/14
to jenkin...@googlegroups.com
I did searched but I didnt found something that does it automatic , and if there is and I didnt notice it I would like for someone to tell me but if there isnt something like this I will write it by myselef ...


You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/XZ3NcKUCGLg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.

Richard Bywater

unread,
Jul 4, 2014, 11:56:29 PM7/4/14
to jenkin...@googlegroups.com

Shirhen Ince

unread,
Jul 5, 2014, 2:05:00 AM7/5/14
to jenkin...@googlegroups.com

I want it to be automatic not that every user will need to chose to do so... this plugin does not do it.

בתאריך 5 ביול 2014 06:56, "Richard Bywater" <ric...@byh2o.com> כתב:

ogondza

unread,
Jul 5, 2014, 2:25:27 AM7/5/14
to jenkin...@googlegroups.com
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 

Benjamin Lau

unread,
Jul 5, 2014, 2:44:26 AM7/5/14
to jenkin...@googlegroups.com
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

David Shaw

unread,
Feb 23, 2015, 8:51:07 AM2/23/15
to jenkin...@googlegroups.com
Did you get a solution to this?

I'm trying to prod groovy with my very basic java knowledge into enabling this on all our flow jobs.

Thanks


On Saturday, 5 July 2014 07:05:00 UTC+1, 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.

בתאריך 5 ביול 2014 06:56, "Richard Bywater" <ric...@byh2o.com> כתב:
Richard.

On Saturday, July 5, 2014, Shirhen Ince <shir...@gmail.com> wrote:
I did searched but I didnt found something that does it automatic , and if there is and I didnt notice it I would like for someone to tell me but if there isnt something like this I will write it by myselef ...
2014-07-05 0:32 GMT+03:00 Daniel Beck <m...@beckweb.net>:
Not a dev list question. Also, at least try to search once before asking.

On 04.07.2014, at 22:59, Shirhen Ince <shir...@gmail.com> wrote:

> Hi,
>  I'm looking for a way to remove the workspaces automatic
>  without relying on the user to choose the delete worksace option
> is there an exiting plugin that does that ?
>
>
>
> --
> 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 jenkinsci-dev+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/XZ3NcKUCGLg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.

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 jenkinsci-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ioannis Moutsatsos

unread,
Feb 23, 2015, 9:08:22 AM2/23/15
to jenkin...@googlegroups.com
Hmm... yes it does.
When you configure a post build WS cleanup it is automatic for all the builds based on that job.

I use the WS cleanup plugin all the time for this exact purpose you are describing. It is quite useful and works as advertised.

Hope this helps
Ioannis


On Saturday, July 5, 2014 at 2:05:00 AM UTC-4, 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.

בתאריך 5 ביול 2014 06:56, "Richard Bywater" <ric...@byh2o.com> כתב:
Richard.

On Saturday, July 5, 2014, Shirhen Ince <shir...@gmail.com> wrote:
I did searched but I didnt found something that does it automatic , and if there is and I didnt notice it I would like for someone to tell me but if there isnt something like this I will write it by myselef ...
2014-07-05 0:32 GMT+03:00 Daniel Beck <m...@beckweb.net>:
Not a dev list question. Also, at least try to search once before asking.

On 04.07.2014, at 22:59, Shirhen Ince <shir...@gmail.com> wrote:

> Hi,
>  I'm looking for a way to remove the workspaces automatic
>  without relying on the user to choose the delete worksace option
> is there an exiting plugin that does that ?
>
>
>
> --
> 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 jenkinsci-dev+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/XZ3NcKUCGLg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.

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 jenkinsci-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Shirhen Ince

unread,
Feb 23, 2015, 11:20:38 PM2/23/15
to jenkin...@googlegroups.com

No I didn't get a solution .
But if you do something can you post it? Thankyou :)

בתאריך 23 בפבר 2015 15:51, ‏"David Shaw" <daves...@gmail.com> כתב:
Reply all
Reply to author
Forward
0 new messages