From 837d1107b30ee527847e044a59a14f267d538beb Mon Sep 17 00:00:00 2001 From: SupremeMortal Date: Wed, 24 Jul 2019 21:35:55 +0100 Subject: [PATCH] Notify discord --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 96ff1b016..3055316c7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -44,6 +44,9 @@ pipeline { post { always { deleteDir() + withCredentials([string(credentialsId: 'geyser-discord-webhook', variable: 'DISCORD_WEBHOOK')]) { + discordSend description: "**Build:** [${currentBuild.id}](${env.BUILD_URL})\n**Status:** [${currentBuild.currentResult}](${env.BUILD_URL})\n\n[**Artifacts on Jenkins**](https://ci.nukkitx.com/job/Geyser)", footer: 'NukkitX Jenkins', link: env.BUILD_URL, successful: currentBuild.resultIsBetterOrEqualTo('SUCCESS'), title: "${env.JOB_NAME} #${currentBuild.id}", webhookURL: DISCORD_WEBHOOK + } } } } \ No newline at end of file