You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by js...@apache.org on 2023/11/13 15:01:33 UTC
(incubator-kie-kogito-pipelines) 02/07: parameterize PR check job folder
This is an automated email from the ASF dual-hosted git repository.
jstastnycz pushed a commit to branch radtriste-fix-pipelines
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git
commit 22139820c633848105102d0a205646ab9f02c56c
Author: jstastny-cz <ja...@ibm.com>
AuthorDate: Wed Nov 8 10:21:11 2023 +0100
parameterize PR check job folder
---
.../src/main/groovy/org/kie/jenkins/jobdsl/KogitoJobTemplate.groovy | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl/KogitoJobTemplate.groovy b/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl/KogitoJobTemplate.groovy
index 44b2e808..f7c2ceed 100644
--- a/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl/KogitoJobTemplate.groovy
+++ b/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl/KogitoJobTemplate.groovy
@@ -466,11 +466,11 @@ class KogitoJobTemplate {
return "(.*${RegexUtils.getRegexFirstLetterCase('jenkins')},?.*(rerun|run) ${idStr}${testType}.*)"
}
- static def createPullRequestMultibranchPipelineJob(def script, String jenkinsFilePath = '.ci/jenkins/Jenkinsfile') {
+ static def createPullRequestMultibranchPipelineJob(def script, String jenkinsFilePath = '.ci/jenkins/Jenkinsfile', String folderName='pullrequest_jobs') {
String jobName = "${Utils.getJobDisplayName(script)}-pr"
PrintUtils.debug(script, "Create pull request multibranch job ${jobName}")
- script.folder('pullrequest_jobs')
- return script.multibranchPipelineJob("pullrequest_jobs/${Utils.getJobDisplayName(script)}-pr")?.with {
+ script.folder(folderName)
+ return script.multibranchPipelineJob("${folderName}/${Utils.getJobDisplayName(script)}-pr")?.with {
triggers {
periodicFolderTrigger {
// The maximum amount of time since the last indexing that is allowed to elapse before an indexing is triggered.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org