-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Major
-
Component/s: pipeline-model-definition-plugin
-
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
-