From 8a362f326b3eb08042bb185f40f50c98faf41a55 Mon Sep 17 00:00:00 2001 From: radtriste Date: Wed, 13 Sep 2023 11:26:36 +0200 Subject: [PATCH 1/2] small correction --- dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl/Utils.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl/Utils.groovy b/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl/Utils.groovy index bf00e0ca9..91b30f042 100644 --- a/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl/Utils.groovy +++ b/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl/Utils.groovy @@ -228,11 +228,11 @@ class Utils { } static String getJenkinsAgentDockerImage(def script, String imageId) { - return getBindingValue(script, 'JENKINS_AGENT_DOCKER_${imageId.toUpperCase()}_IMAGE') + return getBindingValue(script, "JENKINS_AGENT_DOCKER_${imageId.toUpperCase()}_IMAGE") } static String getJenkinsAgentDockerArgs(def script, String imageId) { - return getBindingValue(script, 'JENKINS_AGENT_DOCKER_${imageId.toUpperCase()}_ARGS') + return getBindingValue(script, "JENKINS_AGENT_DOCKER_${imageId.toUpperCase()}_ARGS") } static String getSeedJenkinsfilePath(def script, String jenkinsfileName) { From e36792ba12bcb6efbac4e415292dc24e2886dd6b Mon Sep 17 00:00:00 2001 From: Jan Stastny Date: Wed, 13 Sep 2023 13:20:32 +0200 Subject: [PATCH 2/2] PR jobs configure periodicFolderTrigger (#1083) Co-authored-by: jstastny-cz --- .../groovy/org/kie/jenkins/jobdsl/KogitoJobTemplate.groovy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 f369088f8..9e8751df4 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 @@ -471,7 +471,10 @@ class KogitoJobTemplate { script.folder('pullrequest_jobs') return script.multibranchPipelineJob("pullrequest_jobs/${Utils.getJobDisplayName(script)}-pr")?.with { triggers { - cron('H/5 * * * *') + periodicFolderTrigger { + // The maximum amount of time since the last indexing that is allowed to elapse before an indexing is triggered. + interval('5m') + } } factory { workflowBranchProjectFactory {