From be2f7dc795b4f43c2f21a907190f0db3c36b5b3f Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Thu, 16 Jul 2020 11:31:50 -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 417afe20..9cb78f28 100644 --- a/schutzbot/Jenkinsfile +++ b/schutzbot/Jenkinsfile @@ -155,6 +155,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