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-apps.git
The following commit(s) were added to refs/heads/main by this push:
new 15cdfcf3f kie-issues#767: set user config for git (#1937)
15cdfcf3f is described below
commit 15cdfcf3f25d9d4dd5175273b2523cec68f6a49e
Author: Jan Stastny <[email protected]>
AuthorDate: Thu Dec 14 12:13:23 2023 +0100
kie-issues#767: set user config for git (#1937)
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 34664e57d..f6bb09df3 100644
--- a/.ci/jenkins/Jenkinsfile.deploy
+++ b/.ci/jenkins/Jenkinsfile.deploy
@@ -217,6 +217,7 @@ void commitAndCreatePR() {
} else {
prBody += '\nPlease review and merge.'
}
+ githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId())
githubscm.commitChanges(commitMsg, {
githubscm.findAndStageNotIgnoredFiles('pom.xml') })
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 3978a696e..bfce706ea 100644
--- a/.ci/jenkins/Jenkinsfile.setup-branch
+++ b/.ci/jenkins/Jenkinsfile.setup-branch
@@ -87,6 +87,7 @@ pipeline {
if (githubscm.isThereAnyChanges()) {
def commitMsg = "Update version to
${getKogitoVersion()}"
+
githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId())
githubscm.commitChanges(commitMsg, {
githubscm.findAndStageNotIgnoredFiles('pom.xml') })
githubscm.pushObject('origin', getBuildBranch(),
getGitAuthorPushCredsId())
} else {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]