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

Conditional parallel stages are not rendered properly if skipped

    Details

    • Similar Issues:
    • Sprint:
      Blue Ocean 1.4 - beta 3

      Description

      Problem
      Skipped parallel stages show up as "successful" rather than "not built".

      They also do not have the expected visual treatment (e.g. fadeout the connected line).

      Screenshot

      Jenkinsfile

      pipeline {
          agent any
          stages {
              stage('Run Tests') {
                  parallel {
                      stage('Test On Windows') {
                          when {
                            branch 'cake'
                          }
                          steps {
                              echo 'hello world'
                          }
                      }
                      stage('Test On Linux') {
                          steps {
                              echo 'hello world'
                          }
                      }
                  }
              }
          }
      }
      

      Log

      Started by user admin
      [Pipeline] node
      Running on master in /Users/jdumay/.jenkins/workspace/JENKINS-47219
      [Pipeline] {
      [Pipeline] stage
      [Pipeline] { (Run Tests)
      [Pipeline] parallel
      [Pipeline] [Test On Windows] { (Branch: Test On Windows)
      [Pipeline] [Test On Linux] { (Branch: Test On Linux)
      [Pipeline] [Test On Windows] stage
      [Pipeline] [Test On Windows] { (Test On Windows)
      [Pipeline] [Test On Linux] stage
      [Pipeline] [Test On Linux] { (Test On Linux)
      Stage 'Test On Windows' skipped due to when conditional
      [Pipeline] [Test On Windows] }
      [Pipeline] [Test On Windows] // stage
      [Pipeline] [Test On Windows] }
      [Pipeline] [Test On Linux] echo
      [Test On Linux] hello world
      [Pipeline] [Test On Linux] }
      [Pipeline] [Test On Linux] // stage
      [Pipeline] [Test On Linux] }
      [Pipeline] // parallel
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      Finished: SUCCESS
      

      Original Request
      If conditional step in parallel is skipped, it is still rendered as executed, just without steps.

      See attached images.

        Attachments

        1. 2017-12-28-1-skipped-parallel.png
          2017-12-28-1-skipped-parallel.png
          12 kB
        2. expected.png
          expected.png
          13 kB
        3. expected2.png
          expected2.png
          7 kB
        4. image-2017-12-09-02-06-05-091.png
          8.17 MB
        5. Jenkins-pipeline-failure-skipped-parallel-steps-green.png
          Jenkins-pipeline-failure-skipped-parallel-steps-green.png
          20 kB
        6. problem.png
          problem.png
          26 kB
        7. problem.png
          problem.png
          26 kB
        8. result.png
          result.png
          14 kB

          Issue Links

            Activity

            Hide
            vholer Vlastimil Holer added a comment -

            Is it possible to properly visualize the skipped stages also in the scripted pipeline somehow? Thank you.

            Show
            vholer Vlastimil Holer added a comment - Is it possible to properly visualize the skipped stages also in the scripted pipeline somehow? Thank you.
            Hide
            thdepauw Thomas De Pauw added a comment -

            We tested the latest version (1.6) of the pipeline-graph-analysis-plugin on our pipeline (which has similar structure as example in the description) and noticed the indication for skipped steps is incorrect when the step is "skipped due to earlier failure(s)".

            When the previous stages succeed, the visual indication for the skipped steps is correct.

            Show
            thdepauw Thomas De Pauw added a comment - We tested the latest version (1.6) of the pipeline-graph-analysis-plugin on our pipeline (which has similar structure as example in the description) and noticed the indication for skipped steps is incorrect when the step is "skipped due to earlier failure(s)". When the previous stages succeed, the visual indication for the skipped steps is correct.
            Hide
            jamesdumay James Dumay added a comment -

            Thomas De Pauw can you please provide a simplified Jenkinsfile to reproduce your problem and file a new bug report?

            Show
            jamesdumay James Dumay added a comment - Thomas De Pauw can you please provide a simplified Jenkinsfile to reproduce your problem and file a new bug report?
            Hide
            cliffmeyers Cliff Meyers added a comment -

            Version of pipeline-graph-analysis-plugin will be bumped to 1.6 on master, so the next release of Blue Ocean should include this fix by default.

            Thomas De Pauw please cc me on the other issue once it's filed, thank you.

            Show
            cliffmeyers Cliff Meyers added a comment - Version of pipeline-graph-analysis-plugin will be bumped to 1.6 on master, so the next release of Blue Ocean should include this fix by default. Thomas De Pauw please cc me on the other issue once it's filed, thank you.
            Hide
            thdepauw Thomas De Pauw added a comment -

            Created JENKINS-48884 for my issue reported above.

            Show
            thdepauw Thomas De Pauw added a comment - Created JENKINS-48884 for my issue reported above.

              People

              • Assignee:
                cliffmeyers Cliff Meyers
                Reporter:
                quas Jakub Pawlinski
              • Votes:
                6 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: