Skip to content

Commit

Permalink
Merge pull request #3 from MozkaGit/feature/discord-notifier
Browse files Browse the repository at this point in the history
Feature/discord notifier
  • Loading branch information
MozkaGit authored Aug 22, 2023
2 parents 47d924d + 295cfb7 commit 80adea5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pipeline {
script {
sh '''
git checkout main
git merge origin/dev
git merge ${BRANCH_NAME}
'''
}
}
Expand Down Expand Up @@ -131,10 +131,16 @@ 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")
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")
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")
slackSend (color: "#8c8e92", message: "Pipeline aborted")
}
}
}

0 comments on commit 80adea5

Please sign in to comment.