Skip to content
Snippets Groups Projects
Commit 73ab2a9f authored by Bastian Heppener's avatar Bastian Heppener
Browse files

Merge branch 'ozg-7493-matrix-benachrichtigung' into 'main'

ozg-7493 add send failure message

See merge request !1
parents 9c497dd5 ca83a60a
Branches
No related tags found
1 merge request!1ozg-7493 add send failure message
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
* 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,6 +31,7 @@ pipeline { ...@@ -29,6 +31,7 @@ pipeline {
} }
environment { environment {
PIPELINE_NAME = "Code-SH: operator"
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 = ""
...@@ -207,6 +210,13 @@ pipeline { ...@@ -207,6 +210,13 @@ pipeline {
} }
} }
} }
post {
failure {
script {
sendMatrixMessage.sendFailureMessage(FAILED_STAGE)
}
}
}
} }
...@@ -270,12 +280,6 @@ Boolean isReleaseBranch() { ...@@ -270,12 +280,6 @@ Boolean isReleaseBranch() {
return env.BRANCH_NAME == 'release' return env.BRANCH_NAME == 'release'
} }
String getElementAccessToken() {
withCredentials([string(credentialsId: 'element-login-json', variable: 'LOGIN_JSON')]) {
return readJSON ( text: sh (script: '''curl -XPOST -d \"$LOGIN_JSON\" https://matrix.ozg-sh.de/_matrix/client/v3/login''', returnStdout: true)).access_token
}
}
Void doDevRollout() { Void doDevRollout() {
cloneGitopsRepo() cloneGitopsRepo()
setNewOperatorVersion('dev') setNewOperatorVersion('dev')
...@@ -403,4 +407,4 @@ Boolean matchRegexVersion(List versions, String regex) { ...@@ -403,4 +407,4 @@ Boolean matchRegexVersion(List versions, String regex) {
} }
return true return true
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment