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

Parallel sequential stages not rendering correctly

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • blueocean-plugin
    • None

      After updating to BlueOcean 1.8 my Jenkinsfile is rendered completly buggy (before 1.8 it didn't show all steps, but atleast wasn't buggy). The graph does look like this:

      The layout of the steps is like this:

      Continuous (children are parallel) ->
        Windows (children are sequential) ->
          Build
          Test
        Linux (children are sequential) ->
          Build
          Test
          Coverage
        MemCheck (children are sequential) ->
          Build
          Memcheck 
        Android (children are sequential) ->
          Build
        iOS (children are sequential) ->
          Build
      

      The entire Jenkinsfile can be viewed here

          [JENKINS-53048] Parallel sequential stages not rendering correctly

          Jenn Briden added a comment -

          nicu is looking into this issue. Thank you.

          Jenn Briden added a comment - nicu is looking into this issue. Thank you.

          Olivier Lamy added a comment -

          backend do not return proper pipeline graph model. So I'm looking at it.

          Olivier Lamy added a comment - backend do not return proper pipeline graph model. So I'm looking at it.

          Olivier Lamy added a comment -

          feliwir well the when block of your original introduce even more issues

          Olivier Lamy added a comment - feliwir well the when block of your original introduce even more issues

          Olivier Lamy added a comment -

          feliwir ok forget the when block it generate issue until I approve the script.

          Olivier Lamy added a comment - feliwir ok forget the when block it generate issue until I approve the script.

          Nicolae Pascu added a comment -

          feliwir Thanks for reporting this, I have found the issue and opened this PR that fixes the problem

          Nicolae Pascu added a comment - feliwir Thanks for reporting this, I have found the issue and opened this PR that fixes the problem

          On a related note:

          I select a specific change, but the console text is wrong. I have a visually completed stage selected, but the text says "Waiting for run to start". It's not possible for me to get the correct output of a selected stage,

          Stephan Vedder added a comment - On a related note: I select a specific change, but the console text is wrong. I have a visually completed stage selected, but the text says "Waiting for run to start". It's not possible for me to get the correct output of a selected stage,

          Olivier Lamy added a comment -

          when is it happening? during build or after or not started yet?

          any change if you reload the page?

          what happen at the end?

          seems to be odd for me. 

          as your build has some when block does it happen when you are in the when cause or not.

          Please note the graph can be sometimes not up2date during a build as we merge with previous build (users can change their pipeline between runs so we need to use such strategy)

          Olivier Lamy added a comment - when is it happening? during build or after or not started yet? any change if you reload the page? what happen at the end? seems to be odd for me.  as your build has some when block does it happen when you are in the when cause or not. Please note the graph can be sometimes not up2date during a build as we merge with previous build (users can change their pipeline between runs so we need to use such strategy)

          olamy this happened during the build. Refreshing the page doesn't change anything. When the build is finished everything displays correctly. The when blocks are all disabled, so e.g. iOS and MemCheck aren't executed/skipped.

          It's not a big deal, but makes it much harder to view the current output of a stage.

          Stephan Vedder added a comment - olamy this happened during the build. Refreshing the page doesn't change anything. When the build is finished everything displays correctly. The when blocks are all disabled, so e.g. iOS and MemCheck aren't executed/skipped. It's not a big deal, but makes it much harder to view the current output of a stage.

          Adam Carroll added a comment -

          I recently updated to use the newest version of BlueOcean (1.9) and this behavior does not work for a scripted pipeline, only declarative. My sequential nodes end up squashed into one stage. Is it expected to work for scripted? 

          My basic scripted pipeline structure looks like this:

          stage("Build and test") {

            parallel linux: {

              node("nodeA")

          {       ...     }

              node("nodeB")

          {       ..     }

            },

            windows: {

              .........

           

          Adam Carroll added a comment - I recently updated to use the newest version of BlueOcean (1.9) and this behavior does not work for a scripted pipeline, only declarative. My sequential nodes end up squashed into one stage. Is it expected to work for scripted?  My basic scripted pipeline structure looks like this: stage("Build and test") {   parallel linux: {     node("nodeA") {       ...     }     node("nodeB") {       ..     }   },   windows: {     .........  

          Olivier Lamy added a comment -

          acarr468  yes it's only supported for declarative

          Olivier Lamy added a comment - acarr468   yes it's only supported for declarative

            nicu Nicolae Pascu
            feliwir Stephan Vedder
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: