[BuildFlow] How can I set a custom combine policy for parallel jobs

7 views
Skip to first unread message

Mohamed Mansour

unread,
Jul 20, 2015, 6:45:41 PM7/20/15
to jenkins...@googlegroups.com
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


Reply all
Reply to author
Forward
0 new messages