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

            jzila John Zila created issue -
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            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?
            abayer Andrew Bayer made changes -
            Component/s workflow-basic-steps-plugin [ 21712 ]
            Component/s build-flow-plugin [ 16533 ]
            Component/s pipeline [ 21692 ]
            abayer Andrew Bayer made changes -
            Assignee Craig Rodrigues [ rodrigc ] Andrew Bayer [ abayer ]
            abayer Andrew Bayer made changes -
            Link This issue duplicates JENKINS-41276 [ JENKINS-41276 ]
            abayer Andrew Bayer made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]

              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: