-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
-
pipeline-model-definition 1.3.7
Look like after the update of this plug-in, the always step doesn't have the correct currentResult status anymore:
post {
always {
sendSlack(null, null,currentBuild.currentResult)
}
success {
echo 'This will run only if successful' cleanup()
}
failure {
echo 'Notify developer when build failure' printDebug()
}
unstable {
echo 'This will run only if the run was marked as unstable' cleanup()
}
changed {
echo 'This will run only if the state of the Pipeline has changed'
echo 'For example, the Pipeline was previously failing but is now successful' }
}
output:

- duplicates
-
JENKINS-56402 Declarative Pipeline shows SUCCESS even though job FAILED
-
- Reopened
-