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

Support the visualization of two levels of parallelity in stages

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • blueocean-plugin
    • None

      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

        1. TwoPipelinesInParallel.png
          TwoPipelinesInParallel.png
          64 kB
        2. TwoPipelinesInSerial.png
          TwoPipelinesInSerial.png
          94 kB
        3. Selection_093.png
          Selection_093.png
          23 kB
        4. Selection_090.png
          Selection_090.png
          80 kB
        5. image-2019-12-18-10-50-54-224.png
          image-2019-12-18-10-50-54-224.png
          41 kB
        6. Screen Shot 2019-05-20 at 8.55.46 PM.png
          Screen Shot 2019-05-20 at 8.55.46 PM.png
          49 kB
        7. Screen Shot 2019-05-14 at 9.49.06 AM.png
          Screen Shot 2019-05-14 at 9.49.06 AM.png
          52 kB
        8. parallel-stages-new.png
          parallel-stages-new.png
          10 kB
        9. parallel-stages.PNG
          parallel-stages.PNG
          9 kB

          [JENKINS-54010] Support the visualization of two levels of parallelity in stages

          Daniel Kurzynski created issue -
          Daniel Kurzynski made changes -
          Description Original: 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
          New: Support scripted parallel blocks in parallel stages in a declarative pipeline.

          Example pipeline:
          {code:java}
          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."
                                          }
                                      )
                                  }
                              }
                          }
                      }
                  }
              }
          }
          {code}

          Currently it is not properly visualized in blue ocean as shown in parallel-stages.png
          Daniel Kurzynski made changes -
          Attachment New: parallel-stages-new.png [ 44753 ]
          Daniel Kurzynski made changes -
          Description Original: Support scripted parallel blocks in parallel stages in a declarative pipeline.

          Example pipeline:
          {code:java}
          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."
                                          }
                                      )
                                  }
                              }
                          }
                      }
                  }
              }
          }
          {code}

          Currently it is not properly visualized in blue ocean as shown in parallel-stages.png
          New: Support scripted parallel blocks in parallel stages in a declarative pipeline.

          Example pipeline:
          {code:java}
          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."
                                          }
                                      )
                                  }
                              }
                          }
                      }
                  }
              }
          }
          {code}
          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
          Daniel Kurzynski made changes -
          Priority Original: Minor [ 4 ] New: Critical [ 2 ]
          Phil Segal made changes -
          Assignee New: Phil Segal [ philsegal ]
          Phil Segal made changes -
          Assignee Original: Phil Segal [ philsegal ]

          Phil Segal added a comment -

          I would hope this would also support the same for scripted pipelines too.

          Phil Segal added a comment - I would hope this would also support the same for scripted pipelines too.
          Daniel Kurzynski made changes -
          Link New: This issue is related to JENKINS-50532 [ JENKINS-50532 ]
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-38442 [ JENKINS-38442 ]

            Unassigned Unassigned
            kurzy Daniel Kurzynski
            Votes:
            132 Vote for this issue
            Watchers:
            141 Start watching this issue

              Created:
              Updated: