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

New "unstable" step is not visualizing stage as unstable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: pipeline
    • Labels:
      None
    • Similar Issues:
    • Released As:
      blue-ocean 1.17.0

      Description

      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:

        Attachments

          Issue Links

            Activity

            Hide
            dnusbaum Devin Nusbaum added a comment -

            Thanks for filing a ticket! What versions of Pipeline Graph Analysis and Blue Ocean do you have installed?

            Show
            dnusbaum Devin Nusbaum added a comment - Thanks for filing a ticket! What versions of Pipeline Graph Analysis and Blue Ocean do you have installed?
            Hide
            reinholdfuereder Reinhold Füreder added a comment -

            Pipeline Graph Analysis Plugin: 1.10
            Blue Ocean: 1.16.0

            Show
            reinholdfuereder Reinhold Füreder added a comment - Pipeline Graph Analysis Plugin: 1.10 Blue Ocean: 1.16.0
            Hide
            dnusbaum Devin Nusbaum added a comment -

            Ok, it turns out that the PR I have open to Blue Ocean to fix the per-step icon also has a fix that matters in some cases for the overall visualization, so this should be fixed once that gets released. This comment on the PR has some technical details.

            Show
            dnusbaum Devin Nusbaum added a comment - Ok, it turns out that the PR I have open to Blue Ocean to fix the per-step icon also has a fix that matters in some cases for the overall visualization, so this should be fixed once that gets released. This comment on the PR has some technical details.
            Hide
            dnusbaum Devin Nusbaum added a comment -

            My PR was merged, but has not yet been released.

            Show
            dnusbaum Devin Nusbaum added a comment - My PR was merged, but has not yet been released.
            Hide
            reinholdfuereder Reinhold Füreder added a comment -

            Thanks: it works like a charm!

            Show
            reinholdfuereder Reinhold Füreder added a comment - Thanks: it works like a charm!
            Hide
            dnusbaum Devin Nusbaum added a comment -

            Sorry, forgot to update the ticket. The fix was released in Blue Ocean 1.17.0.

            Show
            dnusbaum Devin Nusbaum added a comment - Sorry, forgot to update the ticket. The fix was released in Blue Ocean 1.17.0.

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: