I want to run the same job N times in parallel, and pass if failures are less than 10% of N.
I have this code to run the parallel jobs:
def paramValues = (1..3)
def testJobs = []
for (param in paramValues) {
def jobParams = [VALUE: param]
def testJob = {
// call build
build(jobParams, "MyJob")
}
println jobParams
testJobs.add(testJob)
}
parallel(testJobs)
This code set the BF to FAILURE if any of the parallel runs failed.
I tried this instead:
ignore(FAILURE) {parallel(testJobs)}
This code ignores all FAILURES, so the BF job is always a success.
Any help would be greatly appreciated.
Thanks,
Mohamed