From e4f02e89b0a68e51e8e250ea2dd35492530ea22f Mon Sep 17 00:00:00 2001 From: Daryl Ronningen Date: Tue, 6 Jul 2021 12:44:55 -0500 Subject: [PATCH] ci: added discord webhook --- Jenkinsfile | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 90f9304..c0c5bf9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -53,4 +53,42 @@ pipeline { } } } + post { + always { + deleteDir() + cleanWs() + } + success { + discordSend + description: 'CI build was a Success', + link: env.BUILD_URL, + result: 'SUCCESS', + title: env.JOB_NAME, + webhookURL: 'https://canary.discord.com/api/webhooks/862023194369327124/EZK-yFfzoVIEr5Qjwvb14XLkF1-rtBep7Rkdl4a3aLfSPTvVRAuUGchjDsj2jPPRt3HU' + } + unstable { + discordSend + description: 'CI build was Unstable.', + link: env.BUILD_URL, + result: 'UNSTABLE', + title: env.JOB_NAME, + webhookURL: 'https://canary.discord.com/api/webhooks/862023194369327124/EZK-yFfzoVIEr5Qjwvb14XLkF1-rtBep7Rkdl4a3aLfSPTvVRAuUGchjDsj2jPPRt3HU' + } + failure { + discordSend + description: 'CI build has Failed.', + link: env.BUILD_URL, + result: 'FAILURE', + title: env.JOB_NAME, + webhookURL: 'https://canary.discord.com/api/webhooks/862023194369327124/EZK-yFfzoVIEr5Qjwvb14XLkF1-rtBep7Rkdl4a3aLfSPTvVRAuUGchjDsj2jPPRt3HU' + } + aborted { + discordSend + description: 'CI build was Aborted', + link: env.BUILD_URL, + result: 'ABORTED', + title: env.JOB_NAME, + webhookURL: 'https://canary.discord.com/api/webhooks/862023194369327124/EZK-yFfzoVIEr5Qjwvb14XLkF1-rtBep7Rkdl4a3aLfSPTvVRAuUGchjDsj2jPPRt3HU' + } + } }