Send slack message for failed master builds
Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
This commit is contained in:
Родитель
fffbbfaaf0
Коммит
dc0d83c861
|
@ -288,6 +288,16 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
failure {
|
||||
script {
|
||||
if (env.BRANCH_NAME == 'master') {
|
||||
slackSend channel: '#app-def-team', color: 'danger',
|
||||
message: "Build #${env.BUILD_NUMBER} failed: ${env.BUILD_URL}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def release(repo) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче