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

New "unstable" step is not visualizing stage as unstable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • pipeline
    • None
    • blue-ocean 1.17.0

      From JENKINS-39203

      Minimal (scripted) pipeline via (e.g. "Pipeline script" of a new job of type "Pipeline"):

      stage('stage') {
        echo('In stage "stage"...')
      }
      
      stage('unstable stage') {
        unstable 'my message for unstable'
      }
      

      The build log is as expected:

      [Pipeline] Start of Pipeline
      [Pipeline] stage
      [Pipeline] { (stage)
      [Pipeline] echo
      In stage "stage"...
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] stage
      [Pipeline] { (unstable stage)
      [Pipeline] unstable
      WARNING: my message for unstable
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] End of Pipeline
      Finished: UNSTABLE
      

      This leads to the stage "unstable stage" rendered wrongly as being successful:

          [JENKINS-57579] New "unstable" step is not visualizing stage as unstable

          Reinhold Füreder created issue -
          Reinhold Füreder made changes -
          Description Original: From JENKINS-39203

          Minimal (scripted) pipeline via (e.g. "Pipeline script" of a new job of type "Pipeline"):
          {code:java}
          stage('stage') {
            echo('In stage "stage"...')
          }

          stage('unstable stage') {
              unstable 'my message for unstable'
          }
          {code}

          The build log is as expected:
          {noformat}
          [Pipeline] Start of Pipeline
          [Pipeline] stage
          [Pipeline] { (stage)
          [Pipeline] echo
          In stage "stage"...
          [Pipeline] }
          [Pipeline] // stage
          [Pipeline] stage
          [Pipeline] { (unstable stage)
          [Pipeline] unstable
          WARNING: my message for unstable
          [Pipeline] }
          [Pipeline] // stage
          [Pipeline] End of Pipeline
          Finished: UNSTABLE
          {noformat}

          This leads to the stage "unstable stage" rendered wrongly as being successful: !image-2019-05-21-12-22-43-337.png|thumbnail!
          New: From JENKINS-39203

          Minimal (scripted) pipeline via (e.g. "Pipeline script" of a new job of type "Pipeline"):
          {code:java}
          stage('stage') {
            echo('In stage "stage"...')
          }

          stage('unstable stage') {
            unstable 'my message for unstable'
          }
          {code}

          The build log is as expected:
          {noformat}
          [Pipeline] Start of Pipeline
          [Pipeline] stage
          [Pipeline] { (stage)
          [Pipeline] echo
          In stage "stage"...
          [Pipeline] }
          [Pipeline] // stage
          [Pipeline] stage
          [Pipeline] { (unstable stage)
          [Pipeline] unstable
          WARNING: my message for unstable
          [Pipeline] }
          [Pipeline] // stage
          [Pipeline] End of Pipeline
          Finished: UNSTABLE
          {noformat}

          This leads to the stage "unstable stage" rendered wrongly as being successful: !image-2019-05-21-12-22-43-337.png|thumbnail!
          Devin Nusbaum made changes -
          Remote Link New: This issue links to "jenkinsci/blueocean-plugin#1954 (Web Link)" [ 23029 ]
          Devin Nusbaum made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Devin Nusbaum made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Devin Nusbaum made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]
          Devin Nusbaum made changes -
          Released As New: blue-ocean 1.17.0
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]

            dnusbaum Devin Nusbaum
            reinholdfuereder Reinhold Füreder
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: