4
votes

We are using the jenkins build flow plugin(https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin) to run our test cases by dividing them into small sub test cases and test them in parallel.

The current problem is even one of the job fails, the other parallel jobs and the hosting flow job will continue running, which is a big waste of resources.

I checked the doc there is no place to control the jobs inside the parallel {}. Any ideas how to deal with that?

3
Unbelievable. This is still not resolved.azizbekian

3 Answers

1
votes

Looking at the code, I don't see a way to achieve that. I would ask the user mailing list for help.

-1
votes

I am thinking to use Guard / Rescue imbedded in Parallel to do this.

-1
votes

Adding failFast: true within parallel block would cause the build to fail as soon as one of the parallel nodes fails.

You can view this as an example.