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

Single stage on a parallel branch is shown green instead of skipped

XMLWordPrintable

      consider the following pipeline

      import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
      node(label) {
          stage("A"){
              echo("A")
          }
      
          stage("B"){
              parallel(
                  "B1": {
                      stage("B1.1"){
                          Utils.markStageSkippedForConditional("B1.1")
                      }
                  },
      
                  "B2": {
                      stage("B2.1"){
                          echo("B2.1")
                      }
                      stage("B2.2"){
                          echo("B2.1")
                      }
                  },
                  "B3": {
                      stage("B3.1"){
                          echo("B2.1")
                      }
                      stage("B3.2"){
                          Utils.markStageSkippedForConditional("B3.2")
                      }
                  },
                  "B4": {
                      stage("B4.1"){
                          Utils.markStageSkippedForConditional("B4.1")
                      }
                      stage("B4.2"){
                          Utils.markStageSkippedForConditional("B4.2")
                      }
                  },
              )
          }
      
          stage("C"){
              echo("C")
          }
      

      The stage B1.1 ( the only stage on that branch ) is shown as green instead of skipped.

      see:

            Unassigned Unassigned
            ysmaoui Yacine
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: