import hudson.AbortException
import hudson.console.HyperlinkNote
import java.util.concurrent.CancellationException
+import java.util.Random
+Random random = new Random()
def jobs = hudson.model.Hudson.instance.items
def fail = false
def jobStartWith = "dsl-kernel-"
ongoingBuild.push(job.scheduleBuild2(0))
println "\\t trigering" + HyperlinkNote.encodeTo('/' + job.url, job.fullDisplayName)
} else {
+ wait(random.nextInt(120000)
ongoingBuild.removeAll{ it.isCancelled() || it.isDone() }
}
}
import hudson.AbortException
import hudson.console.HyperlinkNote
import java.util.concurrent.CancellationException
+import java.util.Random
+Random random = new Random()
def jobs = hudson.model.Hudson.instance.items
def fail = false
def jobStartWith = "JOBPREFIX"
ongoingBuild.push(job.scheduleBuild2(0))
println "\\t trigering " + HyperlinkNote.encodeTo('/' + job.url, job.fullDisplayName)
} else {
+ wait(random.nextInt(60000)
ongoingBuild.removeAll{ it.isCancelled() || it.isDone() }
}
}