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

Improved visualization for multiple "parallel"s within the same stage block

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • blueocean-plugin
    • None

      Improved visualization for multiple "parallel"s within the same stage block isn't planned at this time

      There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.

      The current behaviour in Blue Ocean is to show all the parallels belonging to a stage under the same stage. However, this is currently not working due to a bug in pipeline - see JENKINS-39839.

      The following pipeline

      node {
        stage('S1') {  
          parallel 'S1.0': { sh('sleep 10') }
          
          parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
        }
          stage('S2') {  
          parallel 'S2.0': { sh('sleep 10') }
          
          parallel 'S2.1': { sh('sleep 10') }
        }
      }
      

      Is represented as this:

      • S1.0 is not displayed
      • S2.0 and S2.1 should be under stage 2
      • S2.0 and S2.1 are not marked as finished

      Additional note:
      Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605

          [JENKINS-39847] Improved visualization for multiple "parallel"s within the same stage block

          Julien Pivotto created issue -
          Julien Pivotto made changes -
          Description Original: The following pipeline

          {code}
          node {
            stage('S1') {
              parallel 'S1.0': { sh('sleep 10') }
              
              parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
            }
              stage('S2') {
              parallel 'S2.0': { sh('sleep 10') }
              
              parallel 'S2.1': { sh('sleep 10') }
            }
          }
          {code}


          Is represented as this: !piprep.png|thumbnail!

          - S2.0 and S2.1 should be under stage 2
          - S2.0 and S2.1 are not marked as finished


          Additional note:
          Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
          New: The following pipeline

          {code}
          node {
            stage('S1') {
              parallel 'S1.0': { sh('sleep 10') }
              
              parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
            }
              stage('S2') {
              parallel 'S2.0': { sh('sleep 10') }
              
              parallel 'S2.1': { sh('sleep 10') }
            }
          }
          {code}


          Is represented as this: !piprep.png|thumbnail!

          - S1.0 is not displayed
          - S2.0 and S2.1 should be under stage 2
          - S2.0 and S2.1 are not marked as finished


          Additional note:
          Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
          Vivek Pandey made changes -
          Link New: This issue is blocked by JENKINS-39839 [ JENKINS-39839 ]
          Michael Neale made changes -
          Epic Link New: JENKINS-35750 [ 171713 ]
          Vivek Pandey made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Sam Van Oort made changes -
          Assignee New: Sam Van Oort [ svanoort ]
          Sam Van Oort made changes -
          Assignee Original: Sam Van Oort [ svanoort ]
          James Dumay made changes -
          Description Original: The following pipeline

          {code}
          node {
            stage('S1') {
              parallel 'S1.0': { sh('sleep 10') }
              
              parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
            }
              stage('S2') {
              parallel 'S2.0': { sh('sleep 10') }
              
              parallel 'S2.1': { sh('sleep 10') }
            }
          }
          {code}


          Is represented as this: !piprep.png|thumbnail!

          - S1.0 is not displayed
          - S2.0 and S2.1 should be under stage 2
          - S2.0 and S2.1 are not marked as finished


          Additional note:
          Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
          New: {panel:title=Support for multiple "parallel" within the same stage block isn't planned at this time |titleBGColor=lightgrey}
          There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.
          {panel}


          The following pipeline

          {code}
          node {
            stage('S1') {
              parallel 'S1.0': { sh('sleep 10') }
              
              parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
            }
              stage('S2') {
              parallel 'S2.0': { sh('sleep 10') }
              
              parallel 'S2.1': { sh('sleep 10') }
            }
          }
          {code}


          Is represented as this: !piprep.png|thumbnail!

          - S1.0 is not displayed
          - S2.0 and S2.1 should be under stage 2
          - S2.0 and S2.1 are not marked as finished


          Additional note:
          Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
          James Dumay made changes -
          Description Original: {panel:title=Support for multiple "parallel" within the same stage block isn't planned at this time |titleBGColor=lightgrey}
          There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.
          {panel}


          The following pipeline

          {code}
          node {
            stage('S1') {
              parallel 'S1.0': { sh('sleep 10') }
              
              parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
            }
              stage('S2') {
              parallel 'S2.0': { sh('sleep 10') }
              
              parallel 'S2.1': { sh('sleep 10') }
            }
          }
          {code}


          Is represented as this: !piprep.png|thumbnail!

          - S1.0 is not displayed
          - S2.0 and S2.1 should be under stage 2
          - S2.0 and S2.1 are not marked as finished


          Additional note:
          Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
          New: {panel:title=Improved visualization for multiple "parallel"s within the same stage block isn't planned at this time |titleBGColor=lightgrey}
          There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.
          {panel}


          The following pipeline

          {code}
          node {
            stage('S1') {
              parallel 'S1.0': { sh('sleep 10') }
              
              parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
            }
              stage('S2') {
              parallel 'S2.0': { sh('sleep 10') }
              
              parallel 'S2.1': { sh('sleep 10') }
            }
          }
          {code}


          Is represented as this: !piprep.png|thumbnail!

          - S1.0 is not displayed
          - S2.0 and S2.1 should be under stage 2
          - S2.0 and S2.1 are not marked as finished


          Additional note:
          Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
          James Dumay made changes -
          Summary Original: Misrepresentation of multiple parallels New: Improved visualization for multiple "parallel"s within the same stage block
          James Dumay made changes -
          Description Original: {panel:title=Improved visualization for multiple "parallel"s within the same stage block isn't planned at this time |titleBGColor=lightgrey}
          There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.
          {panel}


          The following pipeline

          {code}
          node {
            stage('S1') {
              parallel 'S1.0': { sh('sleep 10') }
              
              parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
            }
              stage('S2') {
              parallel 'S2.0': { sh('sleep 10') }
              
              parallel 'S2.1': { sh('sleep 10') }
            }
          }
          {code}


          Is represented as this: !piprep.png|thumbnail!

          - S1.0 is not displayed
          - S2.0 and S2.1 should be under stage 2
          - S2.0 and S2.1 are not marked as finished


          Additional note:
          Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605
          New: {panel:title=Improved visualization for multiple "parallel"s within the same stage block isn't planned at this time |titleBGColor=lightgrey}
          There is some debate on how this concept can be visualised in Blue Ocean. Much like nesting stages (see JENKINS-38442) this is difficult for us to visualize in a consistent way that meets user expectations.

          The current behaviour in Blue Ocean is to show all the parallels belonging to a stage under the same stage.
          {panel}


          The following pipeline

          {code}
          node {
            stage('S1') {
              parallel 'S1.0': { sh('sleep 10') }
              
              parallel 'S1.1.1': { sh('sleep 10') }, 'S1.1.2': { sh('sleep 10') }
            }
              stage('S2') {
              parallel 'S2.0': { sh('sleep 10') }
              
              parallel 'S2.1': { sh('sleep 10') }
            }
          }
          {code}


          Is represented as this: !piprep.png|thumbnail!

          - S1.0 is not displayed
          - S2.0 and S2.1 should be under stage 2
          - S2.0 and S2.1 are not marked as finished


          Additional note:
          Made with Pipeline plugin patched with https://github.com/jenkinsci/blueocean-plugin/pull/605

            Unassigned Unassigned
            roidelapluie Julien Pivotto
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: