Archived
0
0
Fork 0

ci: changed webhook url to use env var instead [ci skip]

This commit is contained in:
Daryl Ronningen 2021-07-06 13:38:35 -05:00
parent d627b6bed6
commit a82ff71407
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B

9
Jenkinsfile vendored
View file

@ -9,6 +9,7 @@ pipeline {
GITEA_URL = 'https://code.relms.dev/NeonJS/library' GITEA_URL = 'https://code.relms.dev/NeonJS/library'
GITEA_TOKEN = credentials('GITEA_TOKEN') GITEA_TOKEN = credentials('GITEA_TOKEN')
NPM_TOKEN = credentials('NPM_TOKEN') NPM_TOKEN = credentials('NPM_TOKEN')
DISCORD_WEBHOOK = credentials('DISCORD_WEBHOOK')
GIT_AUTHOR_NAME = 'JenkinsCI' GIT_AUTHOR_NAME = 'JenkinsCI'
GIT_AUTHOR_EMAIL = 'jenkins@relms.dev' GIT_AUTHOR_EMAIL = 'jenkins@relms.dev'
GIT_COMMITTER_NAME = 'JenkinsCI' GIT_COMMITTER_NAME = 'JenkinsCI'
@ -63,28 +64,28 @@ pipeline {
link: env.BUILD_URL, link: env.BUILD_URL,
result: 'SUCCESS', result: 'SUCCESS',
title: env.JOB_NAME, title: env.JOB_NAME,
webhookURL: 'https://canary.discord.com/api/webhooks/862023194369327124/EZK-yFfzoVIEr5Qjwvb14XLkF1-rtBep7Rkdl4a3aLfSPTvVRAuUGchjDsj2jPPRt3HU' webhookURL: env.DISCORD_WEBHOOK
} }
unstable { unstable {
discordSend description: 'CI build was Unstable.', discordSend description: 'CI build was Unstable.',
link: env.BUILD_URL, link: env.BUILD_URL,
result: 'UNSTABLE', result: 'UNSTABLE',
title: env.JOB_NAME, title: env.JOB_NAME,
webhookURL: 'https://canary.discord.com/api/webhooks/862023194369327124/EZK-yFfzoVIEr5Qjwvb14XLkF1-rtBep7Rkdl4a3aLfSPTvVRAuUGchjDsj2jPPRt3HU' webhookURL: env.DISCORD_WEBHOOK
} }
failure { failure {
discordSend description: 'CI build has Failed.', discordSend description: 'CI build has Failed.',
link: env.BUILD_URL, link: env.BUILD_URL,
result: 'FAILURE', result: 'FAILURE',
title: env.JOB_NAME, title: env.JOB_NAME,
webhookURL: 'https://canary.discord.com/api/webhooks/862023194369327124/EZK-yFfzoVIEr5Qjwvb14XLkF1-rtBep7Rkdl4a3aLfSPTvVRAuUGchjDsj2jPPRt3HU' webhookURL: env.DISCORD_WEBHOOK
} }
aborted { aborted {
discordSend description: 'CI build was Aborted', discordSend description: 'CI build was Aborted',
link: env.BUILD_URL, link: env.BUILD_URL,
result: 'ABORTED', result: 'ABORTED',
title: env.JOB_NAME, title: env.JOB_NAME,
webhookURL: 'https://canary.discord.com/api/webhooks/862023194369327124/EZK-yFfzoVIEr5Qjwvb14XLkF1-rtBep7Rkdl4a3aLfSPTvVRAuUGchjDsj2jPPRt3HU' webhookURL: env.DISCORD_WEBHOOK
} }
} }
} }