Archived
0
0
Fork 0

ci: added discord webhook

This commit is contained in:
Daryl Ronningen 2021-07-06 12:44:55 -05:00
parent 02a9664a4d
commit e4f02e89b0
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B

38
Jenkinsfile vendored
View file

@ -53,4 +53,42 @@ pipeline {
}
}
}
post {
always {
deleteDir()
cleanWs()
}
success {
discordSend
description: 'CI build was a Success',
link: env.BUILD_URL,
result: 'SUCCESS',
title: env.JOB_NAME,
webhookURL: 'https://canary.discord.com/api/webhooks/862023194369327124/EZK-yFfzoVIEr5Qjwvb14XLkF1-rtBep7Rkdl4a3aLfSPTvVRAuUGchjDsj2jPPRt3HU'
}
unstable {
discordSend
description: 'CI build was Unstable.',
link: env.BUILD_URL,
result: 'UNSTABLE',
title: env.JOB_NAME,
webhookURL: 'https://canary.discord.com/api/webhooks/862023194369327124/EZK-yFfzoVIEr5Qjwvb14XLkF1-rtBep7Rkdl4a3aLfSPTvVRAuUGchjDsj2jPPRt3HU'
}
failure {
discordSend
description: 'CI build has Failed.',
link: env.BUILD_URL,
result: 'FAILURE',
title: env.JOB_NAME,
webhookURL: 'https://canary.discord.com/api/webhooks/862023194369327124/EZK-yFfzoVIEr5Qjwvb14XLkF1-rtBep7Rkdl4a3aLfSPTvVRAuUGchjDsj2jPPRt3HU'
}
aborted {
discordSend
description: 'CI build was Aborted',
link: env.BUILD_URL,
result: 'ABORTED',
title: env.JOB_NAME,
webhookURL: 'https://canary.discord.com/api/webhooks/862023194369327124/EZK-yFfzoVIEr5Qjwvb14XLkF1-rtBep7Rkdl4a3aLfSPTvVRAuUGchjDsj2jPPRt3HU'
}
}
}