NO-ISSUE - Jenkins slack message distinction between failure and user abort
Users may abort Jenkins jobs, it would be nice to know whether a job was
aborted or whether it actually failed in the Slack message.
@@ -84,7 +84,7 @@ pipeline {
script {
if ((env.BRANCH_NAME == 'master') && (currentBuild.currentResult == "ABORTED" || currentBuild.currentResult == "FAILURE")){
script {
- def data = [text: "Attention! ${BUILD_TAG} job failed, see: ${BUILD_URL}"]
+ def data = [text: "Attention! ${BUILD_TAG} job ${currentBuild.currentResult}, see: ${BUILD_URL}"]
writeJSON(file: 'data.txt', json: data, pretty: 4)
}
