From 2e98208af5ed463302c487724c05a5463518f0c0 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 5 Aug 2020 10:39:19 +0100 Subject: [PATCH] build: Alert on Slack when master build regresses or is fixed Signed-off-by: Rob Bradford --- Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 85cef4930..5c09adf37 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -126,6 +126,17 @@ pipeline{ } } } + post { + regression { + when { branch 'master' } + slackSend (color: '#ff0000', message: '"master" branch build is now failing') + } + fixed { + when { branch 'master' } + slackSend (color: '#00ff00', message: '"master" branch build is now fixed') + } + } + } def cancelPreviousBuilds() {