Skip to content

Instantly share code, notes, and snippets.

@rnorth
Last active December 16, 2015 19:58
Show Gist options
  • Save rnorth/5488528 to your computer and use it in GitHub Desktop.
Save rnorth/5488528 to your computer and use it in GitHub Desktop.
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"
}
}
@rnorth
Copy link
Author

rnorth commented Apr 30, 2013

Yeah, it's not very idiomatic Groovy - we bashed this together in a hurry...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment