Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: workflow-basic-steps-plugin
-
Labels:None
-
Similar Issues:
Description
When using a retry wrapper in Pipeline you cannot abort during the retry, the abort is treated as any other failiure.
Attachments
Issue Links
- is duplicated by
-
JENKINS-37128 Retry build step incompatible with canceling builds
-
- Resolved
-
-
JENKINS-41774 Pipeline executes "retry" when pipeline is aborted
-
- Closed
-
- relates to
-
JENKINS-44379 workflow-basic-steps: retry does not abort when input or milestone try to abort build
-
- Resolved
-
- links to
(3 links to)
Just ran into this and I imagine my scenario is similar to what Bruno Meneguello and Tim Jacomb were getting.
If you have an exception thrown in a finally block it'll win out instead of the FlowInterruptedException
You'll end up losing the abort exception and retrying again even though you aborted. Same thing with timeouts.