This is an automated email from the ASF dual-hosted git repository.

jstastnycz pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-images.git


The following commit(s) were added to refs/heads/main by this push:
     new 26fd4be7 kie-issues#767: set user config for git
26fd4be7 is described below

commit 26fd4be77cca528fab326f4875225854d18f4964
Author: jstastny-cz <[email protected]>
AuthorDate: Thu Dec 14 11:35:14 2023 +0100

    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 776766b3..224d74c2 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 ea5a9cce..7b834ae6 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 {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to