From 1225c9a974fd55d974942e89acbb4446f6a670f7 Mon Sep 17 00:00:00 2001 From: Joseph Robinson Date: Sat, 16 May 2020 11:53:48 -0700 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index b19a99fee..c2a24b11a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,4 +31,21 @@ git submodule update --init --recursive''' } } + post { + always { + script { + withCredentials([string(credentialsId: '3e8105ad-8e03-4550-bc66-a27438ec6fb3', variable: 'discordWebhook')]) { + discordSend( + title: "Finished ${currentBuild.currentResult}", + description: '```\n' + getChanges(currentBuild) + '\n```', + successful: currentBuild.resultIsBetterOrEqualTo("SUCCESS"), + result: currentBuild.currentResult, + thumbnail: "https://img.hexeption.co.uk/Magma_Block.png", + webhookURL: "${discordWebhook}" + ) + } + //cleanWs() + } + } + } }