diff --git a/dsl/seed/jenkinsfiles/Jenkinsfile.remove.branches b/dsl/seed/jenkinsfiles/Jenkinsfile.remove.branches index a9e64b0f5..6ef444b29 100644 --- a/dsl/seed/jenkinsfiles/Jenkinsfile.remove.branches +++ b/dsl/seed/jenkinsfiles/Jenkinsfile.remove.branches @@ -134,6 +134,7 @@ void sendErrorNotification() { String commitAndCreatePR(String commitMsg, String localBranch, String targetBranch) { def prBody = "Generated by ${BUILD_URL}" + githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId()) githubscm.commitChanges(commitMsg) githubscm.pushObject('origin', localBranch, getGitAuthorPushCredsId()) return githubscm.createPR(commitMsg, prBody, targetBranch, getGitAuthorCredsId()) diff --git a/dsl/seed/jenkinsfiles/Jenkinsfile.tools.toggle-triggers b/dsl/seed/jenkinsfiles/Jenkinsfile.tools.toggle-triggers index 43793636f..ea3456fe0 100644 --- a/dsl/seed/jenkinsfiles/Jenkinsfile.tools.toggle-triggers +++ b/dsl/seed/jenkinsfiles/Jenkinsfile.tools.toggle-triggers @@ -55,6 +55,7 @@ pipeline { if (githubscm.isThereAnyChanges()) { String commitMsg = "[${getSeedConfigBranch()}] DSL triggers ${DISABLE_TRIGGERS ? 'disabled' : 'enabled'}" githubscm.createBranch(getPRBranch()) + githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId()) githubscm.commitChanges(commitMsg) githubscm.pushObject('origin', getPRBranch(), getSeedConfigAuthorPushCredsId()) diff --git a/dsl/seed/jenkinsfiles/Jenkinsfile.update-dependency-version b/dsl/seed/jenkinsfiles/Jenkinsfile.update-dependency-version index 2e9def853..dca960d79 100644 --- a/dsl/seed/jenkinsfiles/Jenkinsfile.update-dependency-version +++ b/dsl/seed/jenkinsfiles/Jenkinsfile.update-dependency-version @@ -141,6 +141,7 @@ pipeline { dir(getRepoName()) { if (githubscm.isThereAnyChanges()) { String commitMsg = "[${getBuildBranch()}] ${getJiraNumber() ? "[${getJiraNumber()}] " : ''}Bump ${getDependencyName()} version to ${getNewVersion()}" + githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId()) githubscm.commitChanges(commitMsg) githubscm.pushObject('origin', getPRBranch(), getGitAuthorPushCredsId()) diff --git a/dsl/seed/jenkinsfiles/Jenkinsfile.update-quarkus-platform b/dsl/seed/jenkinsfiles/Jenkinsfile.update-quarkus-platform index 575399930..e036518ad 100644 --- a/dsl/seed/jenkinsfiles/Jenkinsfile.update-quarkus-platform +++ b/dsl/seed/jenkinsfiles/Jenkinsfile.update-quarkus-platform @@ -64,6 +64,7 @@ pipeline { def prBody = "Generated by Kogito pipelines" if (githubscm.isThereAnyChanges()) { + githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId()) githubscm.commitChanges(commitMsg, { sh "git add --all" }) githubscm.pushObject('origin', localBranch, "${getGitForkAuthorPushCredsId()}") if (branchCreated) { diff --git a/dsl/seed/jenkinsfiles/Jenkinsfile.update-quarkus-version b/dsl/seed/jenkinsfiles/Jenkinsfile.update-quarkus-version index 61848fe9c..3074c3bfb 100644 --- a/dsl/seed/jenkinsfiles/Jenkinsfile.update-quarkus-version +++ b/dsl/seed/jenkinsfiles/Jenkinsfile.update-quarkus-version @@ -43,6 +43,7 @@ pipeline { if (githubscm.isThereAnyChanges()) { String commitMsg = "[${getSeedConfigFileGitBranch()}] ${getJiraNumber() ? "[${getJiraNumber()}] " : ''}Bump quarkus version to ${getNewVersion()}" + githubscm.setUserConfigFromCreds(getGitAuthorPushCredsId()) githubscm.commitChanges(commitMsg) githubscm.pushObject('origin', prBranch, "${getSeedConfigFileGitAuthorPushCredsId()}")