Skip to content
Snippets Groups Projects
Commit 856cfb1b authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4624 adjust gitops repo; fix naming

parent e34ec7d1
No related branches found
No related tags found
No related merge requests found
...@@ -259,7 +259,7 @@ Void setNewTestVersion() { ...@@ -259,7 +259,7 @@ Void setNewTestVersion() {
Void setNewOzgOperatorVersion(String environment) { Void setNewOzgOperatorVersion(String environment) {
dir("gitops") { dir("gitops") {
def envFile = "${environment}/application/values/ozg-operator-values.yaml" def envFile = "${environment}/application/values/ozgcloud-keycloak-operator-values.yaml"
def envVersions = readYaml file: envFile def envVersions = readYaml file: envFile
envVersions.ozg_operator.image.tag = IMAGE_TAG envVersions.ozg_operator.image.tag = IMAGE_TAG
...@@ -287,7 +287,7 @@ Void pushNewGitopsVersion(String environment) { ...@@ -287,7 +287,7 @@ Void pushNewGitopsVersion(String environment) {
sh "git add ${environment}/application/values/ozg-operator-values.yaml" sh "git add ${environment}/application/values/ozg-operator-values.yaml"
sh "git commit -m 'jenkins rollout ${environment} ozg-operator version ${IMAGE_TAG}'" sh "git commit -m 'jenkins rollout ${environment} ozg-operator version ${IMAGE_TAG}'"
sh 'git push https://${USER}:${TOKEN}@git.ozg-sh.de/ozgcloud-gitops/gitops.git' sh 'git push https://${USER}:${TOKEN}@git.ozg-sh.de/ozgcloud-devops/gitops.git'
} }
} }
} }
...@@ -308,7 +308,7 @@ Void configureGit() { ...@@ -308,7 +308,7 @@ Void configureGit() {
Void cloneGitopsRepo() { Void cloneGitopsRepo() {
withCredentials([usernamePassword(credentialsId: 'jenkins-gitea-access-token', passwordVariable: 'TOKEN', usernameVariable: 'USER')]) { withCredentials([usernamePassword(credentialsId: 'jenkins-gitea-access-token', passwordVariable: 'TOKEN', usernameVariable: 'USER')]) {
sh 'git clone https://${USER}:${TOKEN}@git.ozg-sh.de/ozgcloud-gitops/gitops.git' sh 'git clone https://${USER}:${TOKEN}@git.ozg-sh.de/ozgcloud-devops/gitops.git'
} }
configureGit() configureGit()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment