ci: changed webhook url to use env var instead [ci skip]
This commit is contained in:
parent
d627b6bed6
commit
a82ff71407
1 changed files with 5 additions and 4 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -9,6 +9,7 @@ pipeline {
|
|||
GITEA_URL = 'https://code.relms.dev/NeonJS/library'
|
||||
GITEA_TOKEN = credentials('GITEA_TOKEN')
|
||||
NPM_TOKEN = credentials('NPM_TOKEN')
|
||||
DISCORD_WEBHOOK = credentials('DISCORD_WEBHOOK')
|
||||
GIT_AUTHOR_NAME = 'JenkinsCI'
|
||||
GIT_AUTHOR_EMAIL = 'jenkins@relms.dev'
|
||||
GIT_COMMITTER_NAME = 'JenkinsCI'
|
||||
|
@ -63,28 +64,28 @@ pipeline {
|
|||
link: env.BUILD_URL,
|
||||
result: 'SUCCESS',
|
||||
title: env.JOB_NAME,
|
||||
webhookURL: 'https://canary.discord.com/api/webhooks/862023194369327124/EZK-yFfzoVIEr5Qjwvb14XLkF1-rtBep7Rkdl4a3aLfSPTvVRAuUGchjDsj2jPPRt3HU'
|
||||
webhookURL: env.DISCORD_WEBHOOK
|
||||
}
|
||||
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'
|
||||
webhookURL: env.DISCORD_WEBHOOK
|
||||
}
|
||||
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'
|
||||
webhookURL: env.DISCORD_WEBHOOK
|
||||
}
|
||||
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'
|
||||
webhookURL: env.DISCORD_WEBHOOK
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue