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

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

XMLWordPrintable

      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') { }
                  }
              }
          }
      }
      

       

       

       

       

            jtaboada Jose Blas Camacho Taboada
            sheeeng Leonard Lee
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: