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

Support the visualization of two levels of parallelity in stages

    Details

    • Similar Issues:

      Description

      Support scripted parallel blocks in parallel stages in a declarative pipeline.

      Example pipeline:

      pipeline {
          agent none
          stages {
              stage('Parallel Stage') {
                  parallel {
                      stage('Stage 1') {
                          steps {
                              echo "Stage 1"
                          }
                      }
                      stage('Stage 2') {
                          steps {
                              script {
                                  parallel (
                                      "Stage 2.1.": {
                                          echo "Stage 2.1."
                                      },
                                      "Stage 2.2.": {
                                          echo "Stage 2.2."
                                      }
                                  )
                              }
                          }
                      }
                  }
              }
          }
      }
      

      Currently it is not properly visualized in blue ocean as shown in parallel-stages.png

       

      The idea how it should be visualized is shown in parallel-stages-new.png

        Attachments

          Issue Links

            Activity

            Hide
            alonmiz alon miz added a comment -

            that's a really important feature for our team as well. we have an optimized ci with multiple parallelized steps, which look really awkward without that capability

            Henry Borchers in your case there's no limitation in using parallelism inside another. the downside is that it's really hard to view the process in the UI and in case of a failure step, the UI just don't understand how to show it.

            Show
            alonmiz alon miz added a comment - that's a really important feature for our team as well. we have an optimized ci with multiple parallelized steps, which look really awkward without that capability Henry Borchers in your case there's no limitation in using parallelism inside another. the downside is that it's really hard to view the process in the UI and in case of a failure step, the UI just don't understand how to show it.
            Hide
            henryborchers Henry Borchers added a comment -

            Having multiple levels of parallel stages would optimize the use of my executors and significantly reduce my pipeline times. 

            This would be very helpful to me for stages that create multiple platform specific artifacts. When I do this now, I have to have one matrix stage that builds Windows and Linux packages (using creative use of Dockerfile agents, I'm able to get these to run in parallel), and one stage dedicated to building Mac packages. Because matrix stages seem to use up a parallel stage under the hood, I can only run these stages one after another, even though the physical servers could easily run these steps independently .  

            Show
            henryborchers Henry Borchers added a comment - Having multiple levels of parallel stages would optimize the use of my executors and significantly reduce my pipeline times.  This would be very helpful to me for stages that create multiple platform specific artifacts. When I do this now, I have to have one matrix stage that builds Windows and Linux packages (using creative use of Dockerfile agents, I'm able to get these to run in parallel), and one stage dedicated to building Mac packages. Because matrix stages seem to use up a parallel stage under the hood, I can only run these stages one after another, even though the physical servers could easily run these steps independently .  
            Hide
            amidar Amit Dar added a comment -

            Hi,

             

            any update regarding this issue?

            Show
            amidar Amit Dar added a comment - Hi,   any update regarding this issue?
            Hide
            rvnairme Rahul Nair added a comment -

            Is there a plan to update the visualization as shown in parallel-stages-new.png ? Or is it available in already in any of the new releases ?

            Show
            rvnairme Rahul Nair added a comment - Is there a plan to update the visualization as shown in parallel-stages-new.png ? Or is it available in already in any of the new releases ?
            Hide
            shanidar1 Shani Dar added a comment -

            Ian Katz I agree, I'm also waiting for this solution, that's what I did meanwhile until this issue will be resolved..

            Show
            shanidar1 Shani Dar added a comment - Ian Katz I agree, I'm also waiting for this solution, that's what I did meanwhile until this issue will be resolved..

              People

              • Assignee:
                Unassigned
                Reporter:
                kurzy Daniel Kurzynski
              • Votes:
                111 Vote for this issue
                Watchers:
                114 Start watching this issue

                Dates

                • Created:
                  Updated: