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-examples.git


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

commit 1a545c483a722c0c60729f878849ca2e4416dce2
Author: Jan Stastny <[email protected]>
AuthorDate: Thu Dec 14 12:13:27 2023 +0100

    kie-issues#767: set user config for git (#1844)
    
    Co-authored-by: jstastny-cz <[email protected]>
---
 .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 8f6b5263b..732c3dc4d 100644
--- a/.ci/jenkins/Jenkinsfile.deploy
+++ b/.ci/jenkins/Jenkinsfile.deploy
@@ -271,6 +271,7 @@ void commitAndCreatePR() {
     // Not using githubscm.commitChanges() because globbing won't work.
     // See: 
https://github.com/apache/incubator-kie-kogito-runtimes/pull/570#discussion_r449268738
     addNotIgnoredPoms()
+    githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId())
     sh "git commit -m '${commitMsg}'"
     githubscm.pushObject('origin', getPRBranch(), getGitAuthorPushCredsId())
     deployProperties["${getRepoName()}.pr.link"] = 
githubscm.createPRWithLabels(commitMsg, prBody, getBuildBranch(), ['skip-ci'] 
as String[], getGitAuthorCredsId())
diff --git a/.ci/jenkins/Jenkinsfile.setup-branch 
b/.ci/jenkins/Jenkinsfile.setup-branch
index e7981113b..226a4d9be 100644
--- a/.ci/jenkins/Jenkinsfile.setup-branch
+++ b/.ci/jenkins/Jenkinsfile.setup-branch
@@ -148,6 +148,7 @@ pipeline {
                         if (githubscm.isThereAnyChanges()) {
                             def commitMsg = "Update version to Kogito 
${getKogitoVersion()} / Drools ${getDroolsVersion()}"
 
+                            
githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId())
                             githubscm.commitChanges(commitMsg)
                             githubscm.pushObject('origin', getBuildBranch(), 
getGitAuthorPushCredsId())
                         } else {


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

Reply via email to