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

All stages show up as UNSTABLE when only one stage should

    XMLWordPrintable

    Details

    • Sprint:
      Blue Ocean 1.2-beta2, Blue Ocean 1.2-beta3, Blue Ocean 1.2-beta4, Blue Ocean 1.2, Blue Ocean 1.3, Blue Ocean 1.4 - beta 1
    • Similar Issues:
    • Released As:
      Pipeline: API 2.34, Pipeline: Basic Steps 2.16, Pipeline: Graph Analysis 1.10, JUnit: 1.28

      Description

      Problem
      When there is a build which has a stage that marks the build as unstable, all the stages, parallels and steps are marked incorrectly as unstable than just the unstable stage, parallel and step that caused the Pipeline to be unstable.

      To reproduce

      1. Build the multibranch pipeline "kzantow/failure-project" from github
      2. Look at the "michaelneale" branch
      3. Note that all stages are unstable (check the api json, all stages are UNSTABLE but should not be, only the final stage should be).

        Attachments

          Issue Links

            Activity

            Hide
            reinholdfuereder Reinhold Füreder added a comment - - edited

            Hm, while it seems to work fine for junit steps like in the screenshot it does not visualize the unstable stage when using code like Hugo L (in a replayed scripted pipeline):
            How comes!?

            Show
            reinholdfuereder Reinhold Füreder added a comment - - edited Hm, while it seems to work fine for junit steps like in the screenshot it does not visualize the unstable stage when using code like Hugo L (in a replayed scripted pipeline): How comes!?
            Hide
            meneerdaan Daan van den Akker added a comment -

            Torsten Walter: using the fully qualified names like hudson.model.Result.FAILURE works for me.

            Show
            meneerdaan Daan van den Akker added a comment - Torsten Walter : using the fully qualified names like hudson.model.Result.FAILURE works for me.
            Hide
            dnusbaum Devin Nusbaum added a comment - - edited

            Torsten Walter I just tested your code and it works ok for me in some basic tests. Please open a new issue for your problem, assign it to me, add any additional information or context that might be useful and include a list of all plugins you have installed and their versions. Thanks!

            Reinhold Füreder Can you please open a new issue, including a minimal Pipeline that reproduces the issue and assign the issue to me? Thanks!

            Also I was not explicit in my original post that these fixes do not currently affect Stage View at all, they only affect Blue Ocean, so I will update my post to make that clear.

            Show
            dnusbaum Devin Nusbaum added a comment - - edited Torsten Walter I just tested your code and it works ok for me in some basic tests. Please open a new issue for your problem, assign it to me, add any additional information or context that might be useful and include a list of all plugins you have installed and their versions. Thanks! Reinhold Füreder Can you please open a new issue, including a minimal Pipeline that reproduces the issue and assign the issue to me? Thanks! Also I was not explicit in my original post that these fixes do not currently affect Stage View at all, they only affect Blue Ocean, so I will update my post to make that clear.
            Hide
            reinholdfuereder Reinhold Füreder added a comment - - edited
            Show
            reinholdfuereder Reinhold Füreder added a comment - - edited Devin Nusbaum Please see JENKINS-57579
            Hide
            cburroughs Chris Burroughs added a comment -

            The visualization provided by Pipeline: Stage View Plugin has not been integrated with the new API added in Pipeline: API 2.34, and so that visualization is not currently affected by these changes.

            I looked but could not find one; is the intention to have a separate ticket for the Stage View plugin integration?

            Show
            cburroughs Chris Burroughs added a comment - The visualization provided by Pipeline: Stage View Plugin has not been integrated with the new API added in Pipeline: API 2.34, and so that visualization is not currently affected by these changes. I looked but could not find one; is the intention to have a separate ticket for the Stage View plugin integration?

              People

              • Assignee:
                dnusbaum Devin Nusbaum
                Reporter:
                michaelneale Michael Neale
              • Votes:
                232 Vote for this issue
                Watchers:
                237 Start watching this issue

                Dates

                • Created:
                  Updated: