Skip to content

Commit

Permalink
update jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
radtriste committed Oct 17, 2023
1 parent 9c6f9fc commit 11822f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .ci/jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pipeline {
sh 'printenv'

dir(getRepoName()) {
githubscm.checkoutIfExists(getRepoName(), getChangeAuthor(), getChangeBranch(), 'apache', getChangeTarget(), true)
githubscm.checkoutIfExists(getRepoName(), getChangeAuthor(), getChangeBranch(), 'apache', getChangeTarget(), true, credentials = [token: getGitAuthorCredentialsId(), usernamePassword: 'kie-ci'])
}
}
}
Expand Down Expand Up @@ -95,15 +95,15 @@ String[] getImages() {
}

String getChangeAuthor() {
return env.ghprbAuthorRepoGitUrl ? util.getGroup(env.ghprbAuthorRepoGitUrl) : (env.ghprbPullAuthorLogin ?: CHANGE_AUTHOR)
return CHANGE_AUTHOR
}

String getChangeBranch() {
return env.ghprbSourceBranch ?: CHANGE_BRANCH
return CHANGE_BRANCH
}

String getChangeTarget() {
return env.ghprbTargetBranch ?: CHANGE_TARGET
return CHANGE_TARGET
}

String getRepoName() {
Expand Down

0 comments on commit 11822f9

Please sign in to comment.