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

Aborting durable task step doesn't work with Retry

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Easy to reproduce with a simple pipeline:

      node("windows") {
          retry(2) {
              bat("ping 127.0.0.1 -n 60 > nul")
          }
      }
      

      Manually abort the job during the first execution of the bat step - notice that the body of the retry is ran again rather than the entire job aborting.

      It appears that the FlowInterruptedException caused by the CauseOfInterruption.UserInterruption is suppressed by the bat step which only kills the underlying process.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              stuartrowe Stuart Rowe
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: