-
Type:
Improvement
-
Resolution: Not A Defect
-
Priority:
Minor
-
Component/s: pipeline
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.
- relates to
-
JENKINS-49944 support some handling for skipped stages
-
- Open
-