Skip to content

Commit

Permalink
Reposition the post block outside of the inner-stages block
Browse files Browse the repository at this point in the history
  • Loading branch information
dtwaddle2-r7 committed Nov 17, 2023
1 parent acc972e commit 358b6d1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ pipeline {
// for the "Validation failed" response with status code 422 Unprocessable Entity
RELEASE_ERROR_MSG=sh( script: 'cat recog-content-releases-response.json | jq -r .message', returnStdout: true).trim()
echo "[DEBUG] RELEASE_ERROR_MSG = ${RELEASE_ERROR_MSG}"

if (RELEASE_ERROR_MSG != 'null') {
echo 'Failed to create release.'
sh 'cat recog-content-releases-response.json'
Expand Down Expand Up @@ -123,21 +124,19 @@ pipeline {
}
}
}

/**

post {
success {
script {
pipelineUtils.sendSlackNotification([message: "S3 Release to ${S3_RELEASE_DESTINATION} Successful", color: 'good'])
pipelineUtils.sendSlackNotification([message: "Released Recog successfully", color: 'good'])
}
}
failure {
script {
pipelineUtils.sendSlackNotification([message: "S3 Release to ${S3_RELEASE_DESTINATION} failed", color: 'bad'])
pipelineUtils.sendSlackNotification([message: "Failed to release Recog", color: 'bad'])
}
}
}
**/
}
}
}

0 comments on commit 358b6d1

Please sign in to comment.