Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53558

Apply top level failFast option to all parallel stages inside Jenkinsfile.

    Details

    • Similar Issues:

      Description

      We would like to have a top-level option failFast true for all parallel stages inside a single Jenkinsfile.

      pipeline {
          agent any
          options {
              parallelsAlwaysFailFast()
          }
          stages {
              stage('Parallel Stage One') {
                  // failFast true
                  parallel {
                      stage('Stage A') { }
                      stage('Stage B') { }
                      stage('Stage C') { }
                  }
              }
              stage('Parallel Stage Two') {
                  // failFast true
                  parallel {
                      stage('Stage D') { }
                      stage('Stage E') { }
                      stage('Stage F') { }
                  }
              }
              stage('Parallel Stage Three') {
                  // failFast true
                  parallel {
                      stage('Stage G') { }
                      stage('Stage H') { }
                      stage('Stage I') { }
                  }
              }
          }
      }
      

       

       

       

       

        Attachments

          Activity

          Hide
          abayer Andrew Bayer added a comment -

          I'd say the way to do this would be to have a top level-only option called something like parallelAlwaysFailsFast, and if it's set and there isn't an explicit failFast setting on a parallel block, we would make every parallel within the pipeline fail fast.

          Show
          abayer Andrew Bayer added a comment - I'd say the way to do this would be to have a top level-only option called something like parallelAlwaysFailsFast , and if it's set and there isn't an explicit failFast setting on a parallel block, we would make every parallel within the pipeline fail fast.
          Hide
          abayer Andrew Bayer added a comment -

          Will be in 1.3.3.

          Show
          abayer Andrew Bayer added a comment - Will be in 1.3.3.

            People

            • Assignee:
              jtaboada Jose Blas Camacho Taboada
              Reporter:
              sheeeng Leonard Lee
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: