Add team slack notification on build failure
pipeline {
agent none
+
options {
ansiColor('xterm')
timestamps()
@@ -211,4 +212,12 @@ pipeline {
}
}
}
+
+ post {
+ failure {
+ script {
+ slackSend channel: '#dsg-eng-astcenc', color: 'danger', message: "Build ${JOB_NAME} ${BUILD_NUMBER} failed. (<${BUILD_URL}|Open>)", teamDomain: 'arm-dsg', tokenCredentialId: 'jenkins-slack', username: 'jenkins'
+ }
+ }
+ }
}
