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

Support the visualization of two levels of parallelity in stages

    XMLWordPrintable

Details

    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

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

        Issue Links

          Activity

            gmtm, I get the feeling the project does not have anybody working on Blue Ocean development anymore. My guess is that whoever was in charge of it has left the company or moved on to other projects because I haven't seen any real improvements done to it in years. It's a shame because Blue Ocean was a GAME CHANGER!!! I personally love how Blue Ocean displays my pipeline and helps me quickly figure out an issue when something goes wrong.  However, it seems to have issues that don't aren't being addressed and missing features (like this one) that could make it much. (In addition, Blue Ocean takes a very long time to load!)

            I would LOVE first-class support for multiple levels of parallelism (such as nested parallel commands or nested matrixes in the declarative pipelines). Having that would let me load-balance and greatly reduce the duration of my pipelines. However, it just doesn't seem like a priority for anybody who has the skills to do anything about it.

            I don't blame anybody working on Jenkins. In fact, I love everything they do regardless if they address stuff that make my life better or someone else's. No, I just wish my own skills included what was needed to help out in the same way the Jenkins has helped me. 

            henryborchers Henry Borchers added a comment - gmtm , I get the feeling the project does not have anybody working on Blue Ocean development anymore. My guess is that whoever was in charge of it has left the company or moved on to other projects because I haven't seen any real improvements done to it in years. It's a shame because Blue Ocean was a GAME CHANGER!!! I personally love how Blue Ocean displays my pipeline and helps me quickly figure out an issue when something goes wrong.  However, it seems to have issues that don't aren't being addressed and missing features (like this one) that could make it much. (In addition, Blue Ocean takes a very long time to load!) I would LOVE first-class support for multiple levels of parallelism (such as nested parallel commands or nested matrixes in the declarative pipelines). Having that would let me load-balance and greatly reduce the duration of my pipelines. However, it just doesn't seem like a priority for anybody who has the skills to do anything about it. I don't blame anybody working on Jenkins. In fact, I love everything they do regardless if they address stuff that make my life better or someone else's. No, I just wish my own skills included what was needed to help out in the same way the Jenkins has helped me. 
            llibicpep Dee Kryvenko added a comment - - edited

            Well said henryborchers. Additionally I would point out that classic UI does not have visualization support for parallel stages at all, in any shape or form, not even single leveled. It is all unreadable linear mess in the classic UI.

            llibicpep Dee Kryvenko added a comment - - edited Well said henryborchers . Additionally I would point out that classic UI does not have visualization support for parallel stages at all, in any shape or form, not even single leveled. It is all unreadable linear mess in the classic UI.
            stuartrowe Stuart Rowe added a comment -

            There hasn't been any active development on Blue Ocean for a while. See https://groups.google.com/g/jenkinsci-users/c/xngZrSsXIjc/m/-_aIrWyICgAJ.

            The pipeline-graph-view-plugin is bringing the pipeline visualization from Blue Ocean into the classic UI. It might be worth creating a new issue for that plugin?

            stuartrowe Stuart Rowe added a comment - There hasn't been any active development on Blue Ocean for a while. See https://groups.google.com/g/jenkinsci-users/c/xngZrSsXIjc/m/-_aIrWyICgAJ. The pipeline-graph-view-plugin  is bringing the pipeline visualization from Blue Ocean into the classic UI. It might be worth creating a new issue for that plugin?
            gl1koz3 Edgars Batna added a comment - - edited

            +100500 Jenkins shared libraries and Jenkinsfiles are awesome, but the UI around them is a terrible mess, especially when it comes to stage display and generally trying to understand what logs are where etc. I think it's easier to rewrite the UI for pipeline builds from scratch to somehow allow browsing through everything in a visually pleasing execution step graph, not a flat representation like a list or a table.

            gl1koz3 Edgars Batna added a comment - - edited +100500 Jenkins shared libraries and Jenkinsfiles are awesome, but the UI around them is a terrible mess, especially when it comes to stage display and generally trying to understand what logs are where etc. I think it's easier to rewrite the UI for pipeline builds from scratch to somehow allow browsing through everything in a visually pleasing execution step graph, not a flat representation like a list or a table.
            dkiaunis Dante Kiaunis added a comment -

            Is this still being worked on?

            dkiaunis Dante Kiaunis added a comment - Is this still being worked on?

            People

              Unassigned Unassigned
              kurzy Daniel Kurzynski
              Votes:
              131 Vote for this issue
              Watchers:
              140 Start watching this issue

              Dates

                Created:
                Updated: