danielpetisme

Untitled

Dec 5th, 2012
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //In Jenkins, try to rebuild all the job in failure
  2. def jobInFailure = { job -> job.lastBuild.result == Result.FAILURE}
  3.  
  4. Jenkins.instance.items.findAll(​jobInFailure).each{
  5.  println "Let's retry ${it.name}"
  6.  it.scheduleBuild2(0)
  7. }
Advertisement
Add Comment
Please, Sign In to add comment