You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2022/01/18 04:41:36 UTC

[couchdb] 02/02: Fix failFast config for scripted pipeline

This is an automated email from the ASF dual-hosted git repository.

kocolosk pushed a commit to branch jenkins-dynamic-matrix
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit c6f53cf09e298a2379a301798a847965d5c07baa
Author: Adam Kocoloski <ko...@apache.org>
AuthorDate: Mon Jan 17 23:41:24 2022 -0500

    Fix failFast config for scripted pipeline
---
 build-aux/Jenkinsfile.full | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/build-aux/Jenkinsfile.full b/build-aux/Jenkinsfile.full
index f22dadd..51642dd 100644
--- a/build-aux/Jenkinsfile.full
+++ b/build-aux/Jenkinsfile.full
@@ -238,7 +238,8 @@ def generateContainerStage(platform) {
   }
 }
 
-def parallelStagesMap = meta.collectEntries { key, values ->
+// Including failFast: true in map fails the build immediately if any parallel step fails
+def parallelStagesMap = meta.collectEntries( [failFast: true] ) { key, values ->
   if (values.image) {
     ["${key}": generateContainerStage(key)]
   }
@@ -268,8 +269,6 @@ pipeline {
 
   options {
     buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
-    // This fails the build immediately if any parallel step fails
-    parallelsAlwaysFailFast()
     preserveStashes(buildCount: 10)
     timeout(time: 3, unit: 'HOURS')
     timestamps()