Merge pull request #9 from SupremeMortal/notify-discord

Notify discord
This commit is contained in:
EOT3000 2019-07-24 16:48:05 -04:00 committed by GitHub
commit 0c34fcad8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

3
Jenkinsfile vendored
View file

@ -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
}
}
}
}