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

parallel stages are displayed as passed even when they are not executed

    Details

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

      Description

      In a pipeline with parallel stages, the parallel stages are shown as "passed" even when they are not executed.  If a preceding stage fails, the parallel stages are still shown as passed.

      Sample pipeline code to reproduce:

      pipeline {
        agent any
          stages {
            stage("first stage") {
              steps {sh "zsleep 5"}
            }
           stage('Three parallel stages with different execution time'){
             parallel{
               stage("One"){
                 steps {sh "sleep 5"}
               }
               stage("Two"){
                 steps {sh "sleep 10"}
                }
                stage("Three"){
                  steps {sh "sleep 15"}
                }
             }
           }
         }
      }
      

        Attachments

          Activity

          Hide
          kshultz Karl Shultz added a comment -

          Testing Notes:

          • Unit tests were included as part of the PR.
          • And they were made super easy to find by the use of the @Issue annotation.
          Show
          kshultz Karl Shultz added a comment - Testing Notes: Unit tests were included as part of the PR . And they were made super easy to find by the use of the @Issue annotation.
          Hide
          vivek Vivek Pandey added a comment -
          Show
          vivek Vivek Pandey added a comment - Looks like Andrew Bayer fixed it as part of PR https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/214 .
          Hide
          kongkoro Idikoro Eradiri added a comment -

          Vivek Pandey James Dumay Is this fixed? I'm currenlty on Jenkins 2.89.4 and running blueocean 1.4.2 and I am still seeing the same issue. The sample pipeline script I posted above still shows parallel stages as passed even though they did not execute.

          Show
          kongkoro Idikoro Eradiri added a comment - Vivek Pandey James Dumay Is this fixed? I'm currenlty on Jenkins 2.89.4 and running blueocean 1.4.2 and I am still seeing the same issue. The sample pipeline script I posted above still shows parallel stages as passed even though they did not execute.
          Hide
          kongkoro Idikoro Eradiri added a comment -

          confirmed it's fixed in 1.5.0

          Show
          kongkoro Idikoro Eradiri added a comment - confirmed it's fixed in 1.5.0
          Hide
          kshultz Karl Shultz added a comment -

          Idikoro Eradiri, many thanks for circling back and confirming that it's been fixed! Much appreciated.

          Show
          kshultz Karl Shultz added a comment - Idikoro Eradiri , many thanks for circling back and confirming that it's been fixed! Much appreciated.

            People

            • Assignee:
              abayer Andrew Bayer
              Reporter:
              kongkoro Idikoro Eradiri
            • Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: