From 3f7326f6e566f508214716c2113d1c6b1f7fd1d3 Mon Sep 17 00:00:00 2001 From: jstastny-cz Date: Thu, 14 Dec 2023 11:09:24 +0100 Subject: [PATCH] kie-issues#767: set user config for git --- .ci/jenkins/Jenkinsfile.deploy | 2 +- .ci/jenkins/Jenkinsfile.setup-branch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy index 6aacba6e0f2..b0c01a23c15 100644 --- a/.ci/jenkins/Jenkinsfile.deploy +++ b/.ci/jenkins/Jenkinsfile.deploy @@ -234,7 +234,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.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 f2ec2cc9544..0250479d9a9 100644 --- a/.ci/jenkins/Jenkinsfile.setup-branch +++ b/.ci/jenkins/Jenkinsfile.setup-branch @@ -91,7 +91,7 @@ pipeline { dir(getRepoName()) { if (githubscm.isThereAnyChanges()) { def commitMsg = "Update version to Kogito ${getKogitoVersion()} / Drools ${getDroolsVersion()}" - + githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId()) githubscm.commitChanges(commitMsg, { githubscm.findAndStageNotIgnoredFiles('pom.xml') }) githubscm.pushObject('origin', getBuildBranch(), getGitAuthorPushCredsId()) } else {