Stage is displayed as failed although it completed successfully after retrying

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Environment:
      Jenkins 2.11
      pipeline-stage-view-plugin 1.5

      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"
      }
      

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

              Created:
              Updated:
              Resolved: