New "unstable" step is not visualizing stage as unstable

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • 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:

            Assignee:
            Devin Nusbaum
            Reporter:
            Reinhold Füreder
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: