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

Blue Ocean shows 'Unknow' status for skipped Stages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Trivial
    • Resolution: Duplicate
    • Component/s: blueocean-plugin, pipeline
    • Labels:
      None
    • Environment:
      Jenkins 2.46.2 on Amazon Linux
      OpenJDK 1.7.0
      Blue Ocean 1.0.1
      Pipeline: Declarative Extension Points API 1.1.3
    • Similar Issues:

      Description

      I am using conditionals in my declarative pipeline.

      For example,

      stage('Clean Deploy (master)') {
          when {
              branch 'master'
          }
          steps {
              echo 'stuff'
          }
      }

      When certain stages are skipped in my pipeline, they still show up in Blue Ocean.  They don't execute which is good, but they show up as a purple dot with a question mark and if i hover over them it says 'Unknow' (i think this is a typo for Unknown).

      I've attached a screenshot.

      I would expect that stages that are skipped do not show up at all.  Note that is the behaviour I am used to when using a Scripted Pipeline with if statements.

      Perhaps there should be a toggle to show them or not.

      If they are shown then i would expect a status of 'Skipped' rather than 'Unknow'. 

       

        Attachments

          Issue Links

            Activity

            Hide
            jamesdumay James Dumay added a comment -

            Rob White thanks for reporting this. We are going to update the visualization here to demonstrate skipped stages as part of JENKINS-39628. Ill close this as a duplicate but feel free to leave comments on the other ticket.

            Show
            jamesdumay James Dumay added a comment - Rob White thanks for reporting this. We are going to update the visualization here to demonstrate skipped stages as part of JENKINS-39628 . Ill close this as a duplicate but feel free to leave comments on the other ticket.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              wimnat Rob White
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: