From bc0e402dd093c184c5354387cbb53bd3667b793c Mon Sep 17 00:00:00 2001 From: Joseph Robinson Date: Sat, 16 May 2020 12:08:07 -0700 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c2a24b11a..b30c2503f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,26 +26,22 @@ git submodule update --init --recursive''' stage('Report') { steps { - discordSend "$DISCORD_WEBHOOK_URL" - } - } - - } - post { - always { - script { - withCredentials([string(credentialsId: '3e8105ad-8e03-4550-bc66-a27438ec6fb3', variable: 'discordWebhook')]) { - discordSend( + 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}" + webhookURL: "$DISCORD_WEBHOOK_URL" ) - } - //cleanWs() - } - } + } } + + } + //post { + // always { + // cleanWs() + // } + // } + // } }