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

e2e disable rebase for gitops repo

parent 979d977d
No related branches found
No related tags found
No related merge requests found
...@@ -419,6 +419,7 @@ Void pushGitopsRepo() { ...@@ -419,6 +419,7 @@ Void pushGitopsRepo() {
withCredentials([usernamePassword(credentialsId: 'jenkins-gitea-access-token', passwordVariable: 'TOKEN', usernameVariable: 'USER')]) { withCredentials([usernamePassword(credentialsId: 'jenkins-gitea-access-token', passwordVariable: 'TOKEN', usernameVariable: 'USER')]) {
dir('gitops') { dir('gitops') {
if (hasUnpushedCommits()) { if (hasUnpushedCommits()) {
sh 'git config pull.rebase false'
sh 'git pull' sh 'git pull'
sh 'git push https://${USER}:${TOKEN}@git.ozg-sh.de/ozgcloud-devops/gitops.git' sh 'git push https://${USER}:${TOKEN}@git.ozg-sh.de/ozgcloud-devops/gitops.git'
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment