💣 Notify via telegram on master CI failure

We've come a long way and we need to triage failures that occur during
CI for the master branch. This will help us find problems with CI as
well as find other issues that could show up in a customer environment.

Also, let's send a happy notification when everything goes well. 💚

Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
Major Hayden 2020-07-16 11:19:00 -05:00 committed by Major Hayden
parent 1280035f8f
commit 460369b32b

12
schutzbot/Jenkinsfile vendored
View file

@ -303,6 +303,18 @@ pipeline {
}
}
}
post {
success {
when { branch 'master' }
telegramSend "💚 CI passed for osbuild-composer master branch!. ${env.BUILD_URL}"
}
unsuccessful {
when { branch 'master' }
telegramSend "💣 CI failed for osbuild-composer master branch! ${env.BUILD_URL}"
}
}
}
// Set up a function to hold the steps needed to run the tests so we don't