From a82ff7140784ec754ac237f9dafc05b617094792 Mon Sep 17 00:00:00 2001 From: Daryl Ronningen Date: Tue, 6 Jul 2021 13:38:35 -0500 Subject: [PATCH] ci: changed webhook url to use env var instead [ci skip] --- Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e02208b..6872a73 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 } } }