From 99911cba6f3b36b05f5ee21e3ea984b040a09ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 1 Jun 2023 20:15:45 +0200 Subject: [PATCH] ci: sent Discord notifications for all builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just for more clarity on build status. No more guessing. Signed-off-by: Jakub SokoĊ‚owski --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c5e01c28c..41c11c77e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -83,10 +83,11 @@ pipeline { } } } post { - success { script { + always { script { if (params.DISCORD_WEBHOOK_CRED) { + def result = currentBuild.result.toLowerCase() ?: 'unknown' discordNotify( - header: 'SpiffWorkflow Docker image published!', + header: "SpiffWorkflow Docker image build ${result}!", cred: params.DISCORD_WEBHOOK_CRED, ) }