From 7018c74884dae9b137124ae14c1f4899841bb52d Mon Sep 17 00:00:00 2001 From: Jared Date: Tue, 1 Jul 2025 07:07:07 +0200 Subject: [PATCH] added webhook to get discrod message --- Jenkinsfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ede5ffb..ef6e229 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -59,14 +59,14 @@ pipeline { // } // } // } - } + // } post { success { - echo 'Pipeline erfolgreich!' - } + echo 'Pipeline erfolgreich!', + discordSend description: "Running ${env.BUILD_ID} on ${env.JENKINS_URL}", footer: "Building", link: env.BUILD_URL, result: currentBuild.currentResult, title: env.JOB_NAME, webhookURL: "https://discordapp.com/api/webhooks/1389470542691831819/NdMO17sLBG2dplp_-oh6Ff0cbPOoADl0QwXKM9UzduxU44av_ZQkQjKTmpdK7YuwcZDc"} + failure { - echo 'Pipeline fehlgeschlagen!' - } + echo 'Pipeline fehlgeschlagen!', + discordSend description: "Running ${env.BUILD_ID} on ${env.JENKINS_URL}", footer: "Building", link: env.BUILD_URL, result: currentBuild.currentResult, title: env.JOB_NAME, webhookURL: "https://discordapp.com/api/webhooks/1389470542691831819/NdMO17sLBG2dplp_-oh6Ff0cbPOoADl0QwXKM9UzduxU44av_ZQkQjKTmpdK7YuwcZDc"} } -}