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:
      Blue Ocean 1.17.0, Pipeline: API 2.34, Pipeline: Basic Steps 2.18, Pipeline: Graph Analysis 1.10, Pipeline: Groovy 2.70, Pipeline: Declarative 1.3.9, JUnit: 1.28, Warnings Next Generation 5.2.0

      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
            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?
            Hide
            dnusbaum Devin Nusbaum added a comment -

            I just published a blog post with an overview of this issue and how to take advantage of the recent changes in your Pipeline to improve the way it is visualized in Blue Ocean: https://jenkins.io/blog/2019/07/05/jenkins-pipeline-stage-result-visualization-improvements/

            Chris Burroughs Yes, feel free to open a new issue for Stage View integration and link it to this one.

            Show
            dnusbaum Devin Nusbaum added a comment - I just published a blog post with an overview of this issue and how to take advantage of the recent changes in your Pipeline to improve the way it is visualized in Blue Ocean:  https://jenkins.io/blog/2019/07/05/jenkins-pipeline-stage-result-visualization-improvements/ .  Chris Burroughs Yes, feel free to open a new issue for Stage View integration and link it to this one.
            Hide
            dnusbaum Devin Nusbaum added a comment -

            Given the core changes have been released, I am closing this issue. As noted in my blog post, if you are still having problems with a Pipeline step from specific please file a new issue with the component set to that plugin (after checking for duplicates), clearly describing which step has the problem and under what circumstances it occurs, and link to the developers section of the post as a reference for how the maintainer might be able to address the problem.
             

            Show
            dnusbaum Devin Nusbaum added a comment - Given the core changes have been released, I am closing this issue. As noted in my blog post, if you are still having problems with a Pipeline step from specific please  file a new issue  with the component set to that plugin (after checking for duplicates), clearly describing which step has the problem and under what circumstances it occurs, and link to the developers section of the post  as a reference for how the maintainer might be able to address the problem.  

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: