Nightly Slave workspace cleanup - unintentional

22 views
Skip to first unread message

Jaap de Jong

unread,
Jun 23, 2017, 5:26:59 AM6/23/17
to Jenkins Users
Hi All,

Every night old workspaces on my jenkins slave are cleaned and I have not configured this, never!
I can not find where this is configured. Is this perhaps new default behavior?
Not sure when this started, but might be since installing 2.64.

Any help is appreciated!

Thanks in advance
Jaap de Jong

Baptiste Mathus

unread,
Jun 23, 2017, 5:50:32 AM6/23/17
to jenkins...@googlegroups.com
https://wiki.jenkins-ci.org/display/JENKINS/Features+controlled+by+system+properties apparently nothing changed recently, introduced in 1.608.

Though, beware this IMO: I would possibly raise the timing if you have data size issues and cannot improve it in the short term, but disabling this seems *very* dangerous to me, and is likely to lead to make your agents become snowflake and encourage config drift.

Wiping out everything and starting from scratch as often as possible is the only way to make sure your testing are stable and you're not going to hit the flaky tests/build wall when you expect it the least...


--
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 jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/42d52a0b-7145-40ed-99fa-3978f83706c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Baptiste Mathus

unread,
Jun 23, 2017, 6:03:21 AM6/23/17
to jenkins...@googlegroups.com
BTW the default behaviour is actually already what you want: hudson.model.WorkspaceCleanupThread.retainForDays is 30 days, so it's very conservative.

So either something changed on your side, or you're seeing a bug that may need to be reported (with reproduction steps, as always, if you want to raise your chance to see it fixed reasonably quickly).

Jaap de Jong

unread,
Jun 23, 2017, 6:19:47 AM6/23/17
to Jenkins Users, m...@batmat.net
Thanks Mathus
This is really helpful for the short term. 
Changes on my side? Yeah, its probably more than the 30 days ago when building the projects...
And yes, you are right, building from scratch is better, at least every now and then.
J.


Op vrijdag 23 juni 2017 12:03:21 UTC+2 schreef Baptiste Mathus:
BTW the default behaviour is actually already what you want: hudson.model.WorkspaceCleanupThread.retainForDays is 30 days, so it's very conservative.

So either something changed on your side, or you're seeing a bug that may need to be reported (with reproduction steps, as always, if you want to raise your chance to see it fixed reasonably quickly).
2017-06-23 11:49 GMT+02:00 Baptiste Mathus <m...@batmat.net>:
https://wiki.jenkins-ci.org/display/JENKINS/Features+controlled+by+system+properties apparently nothing changed recently, introduced in 1.608.

Though, beware this IMO: I would possibly raise the timing if you have data size issues and cannot improve it in the short term, but disabling this seems *very* dangerous to me, and is likely to lead to make your agents become snowflake and encourage config drift.

Wiping out everything and starting from scratch as often as possible is the only way to make sure your testing are stable and you're not going to hit the flaky tests/build wall when you expect it the least...

2017-06-23 11:26 GMT+02:00 Jaap de Jong <jpd...@gmail.com>:
Hi All,

Every night old workspaces on my jenkins slave are cleaned and I have not configured this, never!
I can not find where this is configured. Is this perhaps new default behavior?
Not sure when this started, but might be since installing 2.64.

Any help is appreciated!

Thanks in advance
Jaap de Jong

--
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 jenkinsci-use...@googlegroups.com.

Jaap de Jong

unread,
Jun 23, 2017, 6:21:04 AM6/23/17
to Jenkins Users, m...@batmat.net
And yes, you are right, building from scratch is better, at least every now and then.
It would even be better to always start from scratch! 
Reply all
Reply to author
Forward
0 new messages