Details
-
Improvement
-
Status: Fixed but Unreleased (View Workflow)
-
Minor
-
Resolution: Not A Defect
Description
The following pipeline does not trigger the post section:
pipeline { agent any stages { stage('Test') { when { expression { return false; } } steps { echo 'working' } post { always { echo 'post' } } } } }
I expected this to actually echo 'post' and for post to also have a 'skipped' option. Would love to see those.
Attachments
Issue Links
- relates to
-
JENKINS-49944 support some handling for skipped stages
-
- Open
-
Activity
Field | Original Value | New Value |
---|---|---|
Resolution | Not A Defect [ 7 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Link | This issue relates to JENKINS-49944 [ JENKINS-49944 ] |
Resolution | Not A Defect [ 7 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Resolution | Not A Defect [ 7 ] | |
Status | Reopened [ 4 ] | Fixed but Unreleased [ 10203 ] |
post on a stage is part of the stage. So if the stage is skipped due to when, that includes the post.