We have a Jenkins install with lots of different jobs, most of them are triggered by SCM changes. In addition to be able to prune old builds, it would be desirable to be able to clean up the workspace if the last build was more than a specified number of days ago.
- is related to
-
JENKINS-11054 Support policies for workspace cleanup
-
- Open
-
[JENKINS-21322] Cleanup workspace when last build is >X days ago
Link | New: This issue is related to JENKINS-11054 [ JENKINS-11054 ] |
Component/s | New: core [ 15593 ] | |
Component/s | Original: ws-cleanup-plugin [ 15930 ] | |
Assignee | Original: vjuranek [ vjuranek ] | |
Issue Type | Original: New Feature [ 2 ] | New: Improvement [ 4 ] |
Assignee | New: Oliver Gondža [ olivergondza ] |
I don't really understand the use case here. Are you saying that you would like the workspace to be cleaned if the last build was, for example, more than 2 days ago? So then if there is at least one build every day, the workspace is never cleaned?
The use case I have is that I want the workspace to be cleaned every day, but not more than once per day.