From 82988500f99b663631f7c4f11101d1b4a5181694 Mon Sep 17 00:00:00 2001 From: Bastian <bastian.heppener@mgm-tp.com> Date: Fri, 7 Mar 2025 13:53:37 +0100 Subject: [PATCH] ozg-7493 add send failure message --- Jenkinsfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 02d5b39..d16ed6a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,6 +21,9 @@ * Die sprachspezifischen Genehmigungen und Beschränkungen * unter der Lizenz sind dem Lizenztext zu entnehmen. */ + +@Library('ozgcloud-libs') _ + pipeline { agent { node { @@ -29,7 +32,7 @@ pipeline { } environment { - JENKINS_URL = "https://jenkins.infra.ozg-cloud.systems/job/codeSH_processor-manager/job/${env.BRANCH_NAME}/${env.BUILD_NUMBER}/" + PIPELINE_NAME = "Code-SH: processor-manager" RELEASE_REGEX = /\d+.\d+.\d+/ SNAPSHOT_REGEX = /\d+.\d+.\d+-SNAPSHOT/ FAILED_STAGE = "" @@ -129,6 +132,11 @@ pipeline { always{ junit testResults: '**/target/surefire-reports/*.xml', skipPublishingChecks: true } + failure { + script { + sendMatrixMessage.sendFailureMessage(FAILED_STAGE) + } + } } } -- GitLab