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

Allow sequential stages inside parallel in Declarative syntax

    XMLWordPrintable

Details

    • Pipeline - April 2018

    Description

      Currently with -JENKINS-41334-, we set one or more stages to be executed in parallel but no "branches". Meaning that we cannot parallelise a sequence of stages.

       

      Example:

      pipeline {
        agent none
        stages {
          stage('Parallel stuff') {
            parallel 'branch 1' : {
              // Sequencial stages
              stage('Branch 1 stage 1'){
                  agent any
                  steps {
                      echo "In branch 1 stage 1"
                  }
              }
              stage('Branch 1 stage 2'){
                  agent none // With that kind of sequencial stage, we can change the agent to run on
                  steps {
                      sleep 30
                  }
              }
            }, 'branch 2': { // Parallel execution
              stage('Branch 2 stage 1'){
                  agent any
                  steps {
                      echo "In branch 2 stage 1"
                      sleep 60
                  }
              }
            }
          }
        }
      }
      

      Blue ocean possible view:

      Attachments

        Issue Links

          Activity

            banst Bastien Arata created issue -
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Issue Type Bug [ 1 ] New Feature [ 2 ]
            abayer Andrew Bayer made changes -
            Link This issue relates to JENKINS-40986 [ JENKINS-40986 ]
            abayer Andrew Bayer made changes -
            Link This issue is duplicated by JENKINS-47532 [ JENKINS-47532 ]
            abayer Andrew Bayer made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "PR #227 (Web Link)" [ 18167 ]
            abayer Andrew Bayer made changes -
            Sprint Pipeline - December [ 446 ]
            bitwiseman Liam Newman made changes -
            Link This issue relates to JENKINS-39119 [ JENKINS-39119 ]
            hendrikhalkow Hendrik Halkow made changes -
            Link This issue is duplicated by JENKINS-48422 [ JENKINS-48422 ]
            abayer Andrew Bayer made changes -
            Link This issue relates to JENKINS-39932 [ JENKINS-39932 ]
            abayer Andrew Bayer made changes -
            Link This issue is duplicated by JENKINS-43336 [ JENKINS-43336 ]
            abayer Andrew Bayer made changes -
            Link This issue is duplicated by JENKINS-47163 [ JENKINS-47163 ]
            abayer Andrew Bayer made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            abayer Andrew Bayer made changes -
            Link This issue relates to JENKINS-49050 [ JENKINS-49050 ]
            abayer Andrew Bayer made changes -
            Link This issue is duplicated by JENKINS-39119 [ JENKINS-39119 ]
            vivek Vivek Pandey made changes -
            Sprint Pipeline - December [ 446 ] Pipeline - March 2018 [ 506 ]
            jamesdumay James Dumay made changes -
            Summary Allow sequencial stages inside parallel in Declarative syntax Allow sequential stages inside parallel in Declarative syntax
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal UX-727 (Web Link)" [ 20815 ]
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal UX-724 (Web Link)" [ 20816 ]
            abayer Andrew Bayer made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            horangs Hokwang Lee made changes -
            Attachment image-2018-06-15-18-09-57-864.png [ 42889 ]
            jbriden Jenn Briden made changes -
            Link This issue relates to JENKINS-52025 [ JENKINS-52025 ]
            adamvoss Adam Voss made changes -
            Link This issue is related to JENKINS-52084 [ JENKINS-52084 ]
            bitwiseman Liam Newman made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              abayer Andrew Bayer
              banst Bastien Arata
              Votes:
              66 Vote for this issue
              Watchers:
              103 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: