Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
pipeline-model-definition 1.1.6
Description
A pipeline like this will never actually retry - it'll just run once and fail.
pipeline { agent any options { retry (3) } stages { stage("foo") { steps { echo "hello" error "Failing - retry me!" } } } }
This is because the error thrown in the stage is caught and not rethrown again until the end of the build, bypassing the retry step's execution completely.
Attachments
Issue Links
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Review [ 10005 ] |
Remote Link | This issue links to "PR #164 (Web Link)" [ 17200 ] |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10005 ] | Resolved [ 5 ] |
Remote Link | This issue links to "CloudBees Internal OSS-2371 (Web Link)" [ 18331 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
PR up at https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/164