In Jenkins build flow plugin, complete all parallel jobs if one of them failed

We use the jenkins build thread plugin ( https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin ) to run our test cases, dividing them into small test cases and testing them in parallel.

The current problem is that even one of the tasks fails, other parallel tasks and work with streaming hosting will continue to work, which is a big waste of resources.

I checked the document, there is no room for job management inside parallel {}. Any ideas how to deal with this?

+4
source share
3 answers

Looking at the code , I see no way to achieve this. I would ask the user mailing list for reference.

+1
source

Adding failFast: true to the parallel block will cause the assembly to fail as soon as one of the parallel nodes fails.

As an example, you can view this one .

0
source

I am thinking of using the Guard / Rescue built into Parallel for this.

-one
source

Source: https://habr.com/ru/post/1499226/


All Articles