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

Support parallel execution of sequence of stages

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Duplicate
    • pipeline
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: