Add stage name to slack error message (#3554)

This commit is contained in:
Matt Robinson 2019-11-12 13:33:47 -05:00 committed by GitHub
parent 168f72d371
commit 28a70200d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
Jenkinsfile vendored
View File

@ -18,7 +18,7 @@ node('node') {
} }
stage('Build Windows Installer') { stage('Build Windows Installer') {
node('windows') { node('windows') {
checkout scm checkout scm
unstash "storagenode-binaries" unstash "storagenode-binaries"
@ -70,7 +70,7 @@ node('node') {
echo "Setting build result to FAILURE" echo "Setting build result to FAILURE"
currentBuild.result = "FAILURE" currentBuild.result = "FAILURE"
slackSend color: 'danger', message: "@channel ${env.BRANCH_NAME} build failed ${env.BUILD_URL}" slackSend color: 'danger', message: "@channel ${env.BRANCH_NAME} build failed during stage ${env.STAGE_NAME} ${env.BUILD_URL}"
mail from: 'builds@storj.io', mail from: 'builds@storj.io',
replyTo: 'builds@storj.io', replyTo: 'builds@storj.io',