From e421eec7c3e6cd0b51dda6038f6f58279880ce69 Mon Sep 17 00:00:00 2001 From: jstastny-cz Date: Thu, 14 Dec 2023 11:35:14 +0100 Subject: [PATCH] kie-issues#767: set user config for git --- .ci/jenkins/Jenkinsfile.deploy | 1 + .ci/jenkins/Jenkinsfile.setup-branch | 1 + 2 files changed, 2 insertions(+) diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy index 776766b35..224d74c26 100644 --- a/.ci/jenkins/Jenkinsfile.deploy +++ b/.ci/jenkins/Jenkinsfile.deploy @@ -261,6 +261,7 @@ void checkoutRepo() { } void commitAndPushChanges(String commitMsg) { + githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId()) githubscm.commitChanges(commitMsg) githubscm.pushObject('origin', getPRBranch(), getGitAuthorPushCredsId()) changesDone = true diff --git a/.ci/jenkins/Jenkinsfile.setup-branch b/.ci/jenkins/Jenkinsfile.setup-branch index ea5a9cce4..7b834ae62 100644 --- a/.ci/jenkins/Jenkinsfile.setup-branch +++ b/.ci/jenkins/Jenkinsfile.setup-branch @@ -86,6 +86,7 @@ pipeline { script { dir(getRepoName()) { if (githubscm.isThereAnyChanges()) { + githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId()) githubscm.commitChanges("[${getBuildBranch()}] Update version to ${getKogitoVersion()}") githubscm.pushObject('origin', getBuildBranch(), getGitAuthorPushCredsId()) } else {