diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy index 776766b35..224d74c26 100644 --- a/.ci/jenkins/Jenkinsfile.deploy +++ b/.ci/jenkins/Jenkinsfile.deploy @@ -261,6 +261,7 @@ void checkoutRepo() { } void commitAndPushChanges(String commitMsg) { + githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId()) githubscm.commitChanges(commitMsg) githubscm.pushObject('origin', getPRBranch(), getGitAuthorPushCredsId()) changesDone = true diff --git a/.ci/jenkins/Jenkinsfile.setup-branch b/.ci/jenkins/Jenkinsfile.setup-branch index ea5a9cce4..7b834ae62 100644 --- a/.ci/jenkins/Jenkinsfile.setup-branch +++ b/.ci/jenkins/Jenkinsfile.setup-branch @@ -86,6 +86,7 @@ pipeline { script { dir(getRepoName()) { if (githubscm.isThereAnyChanges()) { + githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId()) githubscm.commitChanges("[${getBuildBranch()}] Update version to ${getKogitoVersion()}") githubscm.pushObject('origin', getBuildBranch(), getGitAuthorPushCredsId()) } else {