Advertisement
Guest User

Force cleanup of Jenkins artifacts according to config

a guest
Jul 9th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.10 KB | None | 0 0
  1. import hudson.model.*
  2. for(job in Jenkins.instance.getAllItems(Job.class)) {
  3.    job.logRotate()
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement