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

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


The following commit(s) were added to refs/heads/kie-issues_755 by this push:
     new efe760cd set user config for git
efe760cd is described below

commit efe760cdfa4d6d059984c68f7efd95ad8d696fd1
Author: jstastny-cz <[email protected]>
AuthorDate: Thu Dec 14 11:37:18 2023 +0100

    set user config for git
---
 .ci/jenkins/Jenkinsfile.deploy       | 1 +
 .ci/jenkins/Jenkinsfile.promote      | 1 +
 .ci/jenkins/Jenkinsfile.setup-branch | 1 +
 3 files changed, 3 insertions(+)

diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy
index 8ebfc3c9..97378f1f 100644
--- a/.ci/jenkins/Jenkinsfile.deploy
+++ b/.ci/jenkins/Jenkinsfile.deploy
@@ -95,6 +95,7 @@ pipeline {
                 script {
                     runPythonCommand("make bump-version 
new_version=${helper.getProjectVersion()}")
 
+                    githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId())
                     // Commit changes
                     githubscm.commitChanges(getCommitMessage(), {
                         sh '''
diff --git a/.ci/jenkins/Jenkinsfile.promote b/.ci/jenkins/Jenkinsfile.promote
index 2577cff2..02eb68db 100644
--- a/.ci/jenkins/Jenkinsfile.promote
+++ b/.ci/jenkins/Jenkinsfile.promote
@@ -165,6 +165,7 @@ void updateInternalGoModuleWithTag(String moduleName, 
String tagName) {
 
 void commitAndPush(String remote, String commitMsg, Closure preCommit) {
     if (githubscm.isThereAnyChanges()) {
+        githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId())
         githubscm.commitChanges(commitMsg, preCommit)
         githubscm.pushObject(remote, helper.getBuildBranch(), 
helper.getGitAuthorPushCredsId())
     } else {
diff --git a/.ci/jenkins/Jenkinsfile.setup-branch 
b/.ci/jenkins/Jenkinsfile.setup-branch
index 8e4527f6..68cb5822 100644
--- a/.ci/jenkins/Jenkinsfile.setup-branch
+++ b/.ci/jenkins/Jenkinsfile.setup-branch
@@ -69,6 +69,7 @@ pipeline {
                         git checkout -- go.sum
                     '''
                     if (githubscm.isThereAnyChanges()) {
+                        
githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId())
                         githubscm.commitChanges("[${helper.getBuildBranch()}] 
Update version to ${helper.getProjectVersion()}", {
                             sh '''
                                 git add .


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

Reply via email to