Skip to content

Commit

Permalink
kie-issues#767: set user config for git
Browse files Browse the repository at this point in the history
  • Loading branch information
jstastny-cz authored and jstastny-cz committed Dec 14, 2023
1 parent a0ed6ba commit 496a015
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .ci/jenkins/Jenkinsfile.bump-up-version
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ void checkoutRepo(String repository, String branch) {

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())
Expand Down

0 comments on commit 496a015

Please sign in to comment.