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


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

commit a9830a38346ac01034d0d3fc80be614dedfaef53
Author: jstastny-cz <[email protected]>
AuthorDate: Thu Dec 14 11:41:13 2023 +0100

    kie-issues#767: set user config for git
---
 .ci/jenkins/Jenkinsfile.deploy               | 2 +-
 .ci/jenkins/Jenkinsfile.setup-branch         | 3 ++-
 .ci/jenkins/project/Jenkinsfile.post-release | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy
index 1b3addc2e4..cb3d8f2a83 100644
--- a/.ci/jenkins/Jenkinsfile.deploy
+++ b/.ci/jenkins/Jenkinsfile.deploy
@@ -194,7 +194,7 @@ void checkoutRepo() {
 void commitAndCreatePR() {
     def commitMsg = "[${getBuildBranch()}] Update version to 
${getProjectVersion()}"
     def prBody = "Generated by build ${BUILD_TAG}: ${BUILD_URL}.\nPlease do 
not merge, it should be merged automatically."
-
+    githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId())
     githubscm.commitChanges(commitMsg, {
         githubscm.findAndStageNotIgnoredFiles('pom.xml')
         githubscm.findAndStageNotIgnoredFiles('antora.yml')
diff --git a/.ci/jenkins/Jenkinsfile.setup-branch 
b/.ci/jenkins/Jenkinsfile.setup-branch
index 00174a9ee2..bc492e2f75 100644
--- a/.ci/jenkins/Jenkinsfile.setup-branch
+++ b/.ci/jenkins/Jenkinsfile.setup-branch
@@ -58,7 +58,7 @@ pipeline {
                     dir(getRepoName()) {
                         if (githubscm.isThereAnyChanges()) {
                             def commitMsg = "Update version to 
${getDroolsVersion()}"
-
+                            
githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId())
                             githubscm.commitChanges(commitMsg, {
                                 
githubscm.findAndStageNotIgnoredFiles('pom.xml')
                                 
githubscm.findAndStageNotIgnoredFiles('antora.yml')
@@ -146,6 +146,7 @@ boolean isMainBranch() {
 
 String commitAndCreatePR(String commitMsg, String localBranch, String 
targetBranch) {
     def prBody = "Generated by build ${BUILD_TAG}: ${BUILD_URL}"
+    githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId())
     githubscm.commitChanges(commitMsg)
     githubscm.pushObject('origin', localBranch, getGitAuthorPushCredsId())
     return githubscm.createPR(commitMsg, prBody, targetBranch, 
getGitAuthorCredsId())
diff --git a/.ci/jenkins/project/Jenkinsfile.post-release 
b/.ci/jenkins/project/Jenkinsfile.post-release
index 16fd4f475f..5bfbe78ac3 100644
--- a/.ci/jenkins/project/Jenkinsfile.post-release
+++ b/.ci/jenkins/project/Jenkinsfile.post-release
@@ -123,7 +123,7 @@ void mergeAndPush(String prLink, String targetBranch) {
 
 String commitAndCreatePR(String commitMsg, String localBranch, String 
targetBranch) {
     def prBody = "Generated by build ${BUILD_TAG}: ${BUILD_URL}"
-
+    githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId())
     githubscm.commitChanges(commitMsg)
     githubscm.pushObject('origin', localBranch, getGitAuthorPushCredsId())
     return githubscm.createPR(commitMsg, prBody, targetBranch, 
getGitAuthorCredsId())


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

Reply via email to