Skip to content

Commit

Permalink
fix string values passing
Browse files Browse the repository at this point in the history
  • Loading branch information
jstastny-cz committed Sep 12, 2023
1 parent 51809af commit d7ca322
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -467,23 +467,23 @@ class KogitoJobTemplate {
}

static def createPullRequestMultibranchPipelineJob(def script, String jenkinsFilePath = '.ci/jenkins/Jenkinsfile') {
script.folder("pullrequest_jobs")
script.folder('pullrequest_jobs')
return script.multibranchPipelineJob("pullrequest_jobs/${Utils.getRepoName(script)}-pr")?.with {
triggers {
cron("*/5 * * * *")
cron('H/5 * * * *')
}
factory {
workflowBranchProjectFactory {
scriptPath("${jenkinsFilePath}")
scriptPath(jenkinsFilePath)
}
}
branchSources {
github {
id("${Utils.getRepoName(script)}") // IMPORTANT: use a constant and unique identifier
repoOwner("${Utils.getGitAuthor(script)}")
repository("${Utils.getRepoName(script)}")
checkoutCredentialsId("${Utils.getGitAuthorCredsId(script)}")
scanCredentialsId("${Utils.getGitAuthorCredsId(script)}")
id(Utils.getRepoName(script)) // IMPORTANT: use a constant and unique identifier
repoOwner(Utils.getGitAuthor(script))
repository(Utils.getRepoName(script))
checkoutCredentialsId(Utils.getGitAuthorCredsId(script))
scanCredentialsId(Utils.getGitAuthorCredsId(script))
// Build fork PRs (unmerged head).
buildForkPRHead(false)
// Build fork PRs (merged with base branch).
Expand Down

0 comments on commit d7ca322

Please sign in to comment.