From 460369b32b06127bc19a4ffd0a703d5797fccf51 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Thu, 16 Jul 2020 11:19:00 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A3=20Notify=20via=20telegram=20on=20m?= =?UTF-8?q?aster=20CI=20failure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- schutzbot/Jenkinsfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/schutzbot/Jenkinsfile b/schutzbot/Jenkinsfile index 57ff44263..4008c48de 100644 --- a/schutzbot/Jenkinsfile +++ b/schutzbot/Jenkinsfile @@ -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