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

Retry build step incompatible with canceling builds

    XMLWordPrintable

    Details

    • Similar Issues:

      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

            Hide
            bkmeneguello Bruno Meneguello added a comment -

            I have the same problem

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

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

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

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

            Show
            bkmeneguello Bruno Meneguello added a comment - The exception that should be checked seems to be "hudson.AbortException"
            Hide
            rodrigc Craig Rodrigues added a comment -

            Bruno Meneguello 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?

            Show
            rodrigc Craig Rodrigues added a comment - Bruno Meneguello 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

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

                Dates

                Created:
                Updated:
                Resolved: