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

Retry build step incompatible with canceling builds

    XMLWordPrintable

Details

    Description

      When I cancel a build and a retry step is currently active, that step gets retried, causing me to have to force kill the entire build. Instead, the retry implementation should rethrow FlowInterruptedException.

      Attachments

        Issue Links

          Activity

            I have the same problem

            bkmeneguello Bruno Meneguello added a comment - I have the same problem
            bkmeneguello Bruno Meneguello added a comment - - edited

            rodrigc I thing this catch block (RetryStepExecution.java#L76) should check for cancel before retry.

            bkmeneguello Bruno Meneguello added a comment - - edited rodrigc I thing this catch block ( RetryStepExecution.java#L76 ) should check for cancel before retry.

            The exception that should be checked seems to be "hudson.AbortException"

            bkmeneguello Bruno Meneguello added a comment - The exception that should be checked seems to be "hudson.AbortException"

            bkmeneguello I don't have the time to investigate this fix.

            Can you submit a pull request against the workflow-basic-steps-plugin with your fix?

            rodrigc Craig Rodrigues added a comment - bkmeneguello I don't have the time to investigate this fix. Can you submit a pull request against the workflow-basic-steps-plugin with your fix?

            People

              abayer Andrew Bayer
              jzila John Zila
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: