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

Stage is displayed as failed although it completed successfully after retrying

    Details

    • Similar Issues:

      Description

      We have implemented a retry mechanism in our pipeline and if the step fails in the first run, it is retried and then succeeds, the stage is still shown as failed, but the build is green.

      See the attached screenshot. The second stage is shown as failed which was retried once.

      To reproduce:

      node {
          stage "1"
          stage "2"
          def counter = 0
          waitUntil {
              counter++
              try {
                  if (counter == 1) {
                      sh "false"
                  }
                  return true
              }
              catch (e) {
                  return false
              }
          }
          stage "3"
      }
      

        Attachments

          Issue Links

            Activity

            Hide
            svanoort Sam Van Oort added a comment -

            Reproducing this on my own system, I've confirmed this caused by JENKINS-34212 - and the fix that I have prepared in https://github.com/jenkinsci/pipeline-stage-view-plugin/pull/21 for that issue will also resolve it. You should have your fix next week when it's out of review and I've cut the release.

            Show
            svanoort Sam Van Oort added a comment - Reproducing this on my own system, I've confirmed this caused by JENKINS-34212 - and the fix that I have prepared in https://github.com/jenkinsci/pipeline-stage-view-plugin/pull/21 for that issue will also resolve it. You should have your fix next week when it's out of review and I've cut the release.

              People

              • Assignee:
                svanoort Sam Van Oort
                Reporter:
                ulich Timo Ulich
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: