Update CI notifications

This commit is contained in:
Jamie Curnow 2018-07-30 12:47:52 +10:00
parent 1382350d3a
commit 95d9e87f51

5
Jenkinsfile vendored
View File

@ -92,11 +92,11 @@ pipeline {
} }
post { post {
success { success {
slackSend color: "#72c900", message: "SUCCESS: <${BUILD_URL}|${JOB_NAME}> build #${BUILD_NUMBER} - ${currentBuild.durationString}" juxtapose event: success
sh 'figlet "SUCCESS"' sh 'figlet "SUCCESS"'
} }
failure { failure {
slackSend color: "#d61111", message: "FAILED: <${BUILD_URL}|${JOB_NAME}> build #${BUILD_NUMBER} - ${currentBuild.durationString}" juxtapose event: failure
sh 'figlet "FAILURE"' sh 'figlet "FAILURE"'
} }
} }
@ -106,3 +106,4 @@ def getPackageVersion() {
ver = sh(script: 'docker run --rm -v $(pwd)/manager:/data $DOCKER_CI_TOOLS bash -c "cat /data/package.json|jq -r \'.version\'"', returnStdout: true) ver = sh(script: 'docker run --rm -v $(pwd)/manager:/data $DOCKER_CI_TOOLS bash -c "cat /data/package.json|jq -r \'.version\'"', returnStdout: true)
return ver.trim() return ver.trim()
} }