Last active
December 16, 2015 19:58
-
-
Save rnorth/5488528 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (job in Hudson.instance.items) { | |
if (! job.logRotator ) { | |
job.logRotator = new hudson.tasks.LogRotator ( 30, 40, 30, 10) // days to keep, num to keep, artifact days to keep, num to keep | |
println "$job.name edited and changed to statement below" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, it's not very idiomatic Groovy - we bashed this together in a hurry...