Skip to content
Snippets Groups Projects

ozg-7493 add send failure message

Merged Bastian Heppener requested to merge OZG-7493-add-matrix-notification into main
1 file
+ 9
1
Compare changes
  • Side-by-side
  • Inline
+ 9
1
@@ -21,6 +21,9 @@
@@ -21,6 +21,9 @@
* Die sprachspezifischen Genehmigungen und Beschränkungen
* Die sprachspezifischen Genehmigungen und Beschränkungen
* unter der Lizenz sind dem Lizenztext zu entnehmen.
* unter der Lizenz sind dem Lizenztext zu entnehmen.
*/
*/
 
 
@Library('ozgcloud-libs') _
 
pipeline {
pipeline {
agent {
agent {
node {
node {
@@ -29,7 +32,7 @@ pipeline {
@@ -29,7 +32,7 @@ pipeline {
}
}
environment {
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+/
RELEASE_REGEX = /\d+.\d+.\d+/
SNAPSHOT_REGEX = /\d+.\d+.\d+-SNAPSHOT/
SNAPSHOT_REGEX = /\d+.\d+.\d+-SNAPSHOT/
FAILED_STAGE = ""
FAILED_STAGE = ""
@@ -129,6 +132,11 @@ pipeline {
@@ -129,6 +132,11 @@ pipeline {
always{
always{
junit testResults: '**/target/surefire-reports/*.xml', skipPublishingChecks: true
junit testResults: '**/target/surefire-reports/*.xml', skipPublishingChecks: true
}
}
 
failure {
 
script {
 
sendMatrixMessage.sendFailureMessage(FAILED_STAGE)
 
}
 
}
}
}
}
}
Loading