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

fix jenkinsfile gitops

parent 72f61afd
Branches
Tags
No related merge requests found
...@@ -259,7 +259,7 @@ Void pushNewGitopsVersion(String environment) { ...@@ -259,7 +259,7 @@ Void pushNewGitopsVersion(String environment) {
} }
withCredentials([usernamePassword(credentialsId: 'jenkins-gitea-access-token', passwordVariable: 'TOKEN', usernameVariable: 'USER')]) { withCredentials([usernamePassword(credentialsId: 'jenkins-gitea-access-token', passwordVariable: 'TOKEN', usernameVariable: 'USER')]) {
sh "git add ${environment}/application/values/*-adapter-values.yaml" sh "git add ${environment}/application/values/ozg-operator-values.yaml"
sh "git commit -m 'jenkins rollout ${environment} afm-adapter fs-adapter version ${IMAGE_TAG}'" sh "git commit -m 'jenkins rollout ${environment} afm-adapter fs-adapter version ${IMAGE_TAG}'"
sh 'git push https://${USER}:${TOKEN}@git.ozg-sh.de/mgm/gitops.git' sh 'git push https://${USER}:${TOKEN}@git.ozg-sh.de/mgm/gitops.git'
...@@ -268,7 +268,7 @@ Void pushNewGitopsVersion(String environment) { ...@@ -268,7 +268,7 @@ Void pushNewGitopsVersion(String environment) {
} }
Boolean hasAdapterValuesFileChanged(String environment) { Boolean hasAdapterValuesFileChanged(String environment) {
return sh (script: "git status | grep '${environment}/application/values/.*-adapter-values.yaml'", returnStatus: true) == env.SH_SUCCESS_STATUS_CODE as Integer return sh (script: "git status | grep '${environment}/application/values/ozg-operator-values.yaml'", returnStatus: true) == env.SH_SUCCESS_STATUS_CODE as Integer
} }
Void configureGit() { Void configureGit() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment