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

Support parallel execution of sequence of stages

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major Major
    • pipeline
    • None

      As a developer, I want to run multiple sequences of stages in parallel so that I can split up my parallel stages.

      Currently, The Jenkinsfile syntax only allows to run single stages in parallel. I would like to do something like this:

      parallel {
        stages {
          stage('Build on Linux') {
            steps {
              echo 'Building on Linux'
            }
          }
          stage('Test on Linux') {
            steps {
              echo 'Testing on Linux'
            }
          }
        }
        stages {
          stage('Build on macOS') {
            steps {
              echo 'Building on macOS'
            }
          }
          stage('Test on Linux') {
            steps {
              echo 'Testing on macOS'
            }
          }
        }
      }

      However, parallel only support 'stage' as a sub-element, not stages.

            Unassigned Unassigned
            hendrikhalkow Hendrik Halkow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: