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