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

All stages show up as UNSTABLE when only one stage should

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

      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).

          [JENKINS-39203] All stages show up as UNSTABLE when only one stage should

          Michael Neale created issue -
          Michael Neale made changes -
          Priority Original: Major [ 3 ] New: Minor [ 4 ]

          Michael Neale added a comment -

          A sample response json is:

          {
          "_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl",
          "_links": {},
          "actions": [],
          "displayName": "Checkout",
          "durationInMillis": 8550,
          "id": "5",
          "result": "UNSTABLE",
          "startTime": "2016-10-24T10:37:04.263+1100",
          "state": "FINISHED",
          "edges": [
          {
          "_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl$EdgeImpl",
          "id": "7"
          }
          ]
          }
          

          This is the first stage, which should have succeeded.

          Michael Neale added a comment - A sample response json is: { "_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl", "_links": {}, "actions": [], "displayName": "Checkout", "durationInMillis": 8550, "id": "5", "result": "UNSTABLE", "startTime": "2016-10-24T10:37:04.263+1100", "state": "FINISHED", "edges": [ { "_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl$EdgeImpl", "id": "7" } ] } This is the first stage, which should have succeeded.
          Michael Neale made changes -
          Assignee New: Vivek Pandey [ vivek ]
          Michael Neale made changes -
          Epic Link New: JENKINS-35759 [ 171771 ]
          Michael Neale made changes -
          Description Original: When there is a build which has a stage that marks the build as unstable, all the stages are marked incorrectly as unstable vs just the unstable stage.

          Expected action: only the stage that marked the build is unstable should return as such.

          To reproduce:

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

          This is the same in stage view as well as stage graph incidentally.
          New: When there is a build which has a stage that marks the build as unstable, all the stages are marked incorrectly as unstable vs just the unstable stage.

          Expected action: only the stage that marked the build is unstable should return as such.

          To reproduce:

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

          This is the same in stage view as well as stage graph incidentally.
          James Dumay made changes -
          Sprint New: indian [ 126 ]
          James Dumay made changes -
          Rank New: Ranked higher
          James Dumay made changes -
          Sprint Original: indian [ 126 ] New: arctic [ 131 ]
          James Dumay made changes -
          Rank New: Ranked lower

            dnusbaum Devin Nusbaum
            michaelneale Michael Neale
            Votes:
            233 Vote for this issue
            Watchers:
            237 Start watching this issue

              Created:
              Updated:
              Resolved: