Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Duplicate
-
None
Description
This doesn't help and actually looks like a veeery huge hack:
try { sh "bash do_magic.sh" do_another_magic() } catch (hudson.AbortException e) { if (e.getMessage().contains('script returned exit code 143')) { echo "aborted by user" throw e } else { echo "aborted by error, continuing next stage" } }
Attachments
Issue Links
- duplicates
-
JENKINS-28822 Can't distinguish between durable task abort and failure in workflow plugin
-
- Resolved
-
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | workflow-job-plugin [ 21716 ] | |
Component/s | pipeline [ 21692 ] |
Component/s | workflow-durable-task-step-plugin [ 21715 ] | |
Component/s | workflow-job-plugin [ 21716 ] |
Link |
This issue duplicates |
Resolution | Duplicate [ 3 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |