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

Conditional parallel stages are not rendered properly if skipped

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • blueocean-plugin
    • None
    • Blue Ocean 1.4 - beta 3

      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.

        1. 2017-12-28-1-skipped-parallel.png
          12 kB
          Cliff Meyers
        2. expected.png
          13 kB
          Jakub Pawlinski
        3. expected2.png
          7 kB
          Jakub Pawlinski
        4. image-2017-12-09-02-06-05-091.png
          8.17 MB
          Yogesh Kumar
        5. Jenkins-pipeline-failure-skipped-parallel-steps-green.png
          20 kB
          Thomas De Pauw
        6. problem.png
          26 kB
          James Dumay
        7. problem.png
          26 kB
          James Dumay
        8. result.png
          14 kB
          Jakub Pawlinski

            cliffmeyers Cliff Meyers
            quas Jakub Pawlinski
            Votes:
            6 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: