Skip to content

Commit

Permalink
Merge pull request #4 from MozkaGit/discord
Browse files Browse the repository at this point in the history
Add Discord integration for notifications
  • Loading branch information
MozkaGit authored Aug 22, 2023
2 parents 80adea5 + 4279b11 commit eef1543
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ pipeline {
}
post {
success {
discordSend (description: "Discord Notifier test succeed", title: "${JOB_NAME}", result: "green", webhookURL: "https://discord.com/api/webhooks/1143345873309413447/CP2upEWbggVA4T3vShFrz280xJhAHHkti_UVG0g5FPJ0ZWwD4B57MijN_TAagLbKRh-J")
discordSend (description: "NetDevOps pipeline succeed", title: "${JOB_NAME}", result: "SUCCESS", webhookURL: "https://discord.com/api/webhooks/1143345873309413447/CP2upEWbggVA4T3vShFrz280xJhAHHkti_UVG0g5FPJ0ZWwD4B57MijN_TAagLbKRh-J")
slackSend (color: "#028000", message: "Pipeline succeed")
}
failure {
discordSend (description: "Discord Notifier test failed", title: "${JOB_NAME}", result: "red", webhookURL: "https://discord.com/api/webhooks/1143345873309413447/CP2upEWbggVA4T3vShFrz280xJhAHHkti_UVG0g5FPJ0ZWwD4B57MijN_TAagLbKRh-J")
discordSend (description: "NetDevOps pipeline failed", title: "${JOB_NAME}", result: "FAILURE", webhookURL: "https://discord.com/api/webhooks/1143345873309413447/CP2upEWbggVA4T3vShFrz280xJhAHHkti_UVG0g5FPJ0ZWwD4B57MijN_TAagLbKRh-J")
slackSend (color: "#c70039", message: "Pipeline failed")
}
aborted {
discordSend (description: "Discord Notifier test aborted", title: "${JOB_NAME}", result: "grey", webhookURL: "https://discord.com/api/webhooks/1143345873309413447/CP2upEWbggVA4T3vShFrz280xJhAHHkti_UVG0g5FPJ0ZWwD4B57MijN_TAagLbKRh-J")
discordSend (description: "NetDevOps pipeline aborted", title: "${JOB_NAME}", result: "ABORTED", webhookURL: "https://discord.com/api/webhooks/1143345873309413447/CP2upEWbggVA4T3vShFrz280xJhAHHkti_UVG0g5FPJ0ZWwD4B57MijN_TAagLbKRh-J")
slackSend (color: "#8c8e92", message: "Pipeline aborted")
}
}
Expand Down

0 comments on commit eef1543

Please sign in to comment.