fix duplicate branch name in slack

This commit is contained in:
Grant Limberg 2016-10-25 14:38:57 -07:00
parent 5c476391da
commit 1fcedb8d16

10
Jenkinsfile vendored
View File

@ -1,6 +1,6 @@
#!/usr/bin/env groovy #!/usr/bin/env groovy
slackSend "Building ${env.JOB_NAME}/${env.BRANCH_NAME} #${env.BUILD_NUMBER}" slackSend "Building ${env.JOB_NAME} #${env.BUILD_NUMBER}"
parallel 'centos7': { parallel 'centos7': {
node('centos7') { node('centos7') {
try { try {
@ -12,7 +12,7 @@ parallel 'centos7': {
} }
catch (err) { catch (err) {
currentBuild.result = "FAILURE" currentBuild.result = "FAILURE"
slackSend color: '#ff0000', message: "${env.JOB_NAME}/${env.BRANCH_NAME} broken on Centos 7 (<${env.BUILD_URL}|Open>)" slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on Centos 7 (<${env.BUILD_URL}|Open>)"
throw err throw err
} }
@ -28,7 +28,7 @@ parallel 'centos7': {
} }
catch (err) { catch (err) {
currentBuild.result = "FAILURE" currentBuild.result = "FAILURE"
slackSend color: '#ff0000', message: "${env.JOB_NAME}/${env.BRANCH_NAME} broken on Android NDK (<${env.BUILD_URL}|Open>)" slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on Android NDK (<${env.BUILD_URL}|Open>)"
throw err throw err
} }
@ -48,11 +48,11 @@ parallel 'centos7': {
} }
catch (err) { catch (err) {
currentBuild.result = "FAILURE" currentBuild.result = "FAILURE"
slackSend color: '#ff0000', message: "${env.JOB_NAME}/${env.BRANCH_NAME} broken on macOS (<${env.BUILD_URL}|Open>)" slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on macOS (<${env.BUILD_URL}|Open>)"
throw err throw err
} }
} }
} }
slackSend "${env.JOB_NAME}/${env.BRANCH_NAME} #${env.BUILD_NUMBER} Complete (<${env.BUILD_URL}|Show More...>)" slackSend "${env.JOB_NAME} #${env.BUILD_NUMBER} Complete (<${env.BUILD_URL}|Show More...>)"