Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • ozg-cloud/devops/operator
1 result
Show changes
Commits on Source (4)
......@@ -21,6 +21,8 @@
* Die sprachspezifischen Genehmigungen und Beschränkungen
* unter der Lizenz sind dem Lizenztext zu entnehmen.
*/
@Library('ozgcloud-libs') _
pipeline {
agent {
node {
......@@ -29,6 +31,7 @@ pipeline {
}
environment {
PIPELINE_NAME = "Code-SH: operator"
RELEASE_REGEX = /\d+.\d+.\d+/
SNAPSHOT_REGEX = /\d+.\d+.\d+-SNAPSHOT/
FAILED_STAGE = ""
......@@ -207,6 +210,13 @@ pipeline {
}
}
}
post {
failure {
script {
sendMatrixMessage.sendFailureMessage(FAILED_STAGE)
}
}
}
}
......@@ -270,12 +280,6 @@ Boolean isReleaseBranch() {
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() {
cloneGitopsRepo()
setNewOperatorVersion('dev')
......@@ -403,4 +407,4 @@ Boolean matchRegexVersion(List versions, String regex) {
}
return true
}
}
\ No newline at end of file