From 1636e376127fbcef3d68fcd6c1b22bbbb193a0c7 Mon Sep 17 00:00:00 2001 From: jstastny-cz Date: Tue, 12 Sep 2023 13:52:41 +0200 Subject: [PATCH 1/2] PR multibranchPipelineJob --- .ci/jenkins/dsl/jobs.groovy | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.ci/jenkins/dsl/jobs.groovy b/.ci/jenkins/dsl/jobs.groovy index 6661371c..591842bc 100644 --- a/.ci/jenkins/dsl/jobs.groovy +++ b/.ci/jenkins/dsl/jobs.groovy @@ -35,9 +35,7 @@ Map getMultijobPRConfig() { } // Optaplanner PR checks -// Deactivated due to ghprb not available on Apache Jenkins -// TODO create PR job with branch source plugin -// KogitoJobUtils.createAllEnvironmentsPerRepoPRJobs(this) { jobFolder -> getMultijobPRConfig() } +Utils.isMainBranch(this) && KogitoJobTemplate.createPullRequestMultibranchPipelineJob(this, "${jenkins_path}/Jenkinsfile") // Init branch createSetupBranchJob() From afd8d6cc1acfc7c9ec80b0fe048ae325a1cfaa1e Mon Sep 17 00:00:00 2001 From: jstastny-cz Date: Wed, 13 Sep 2023 16:27:52 +0200 Subject: [PATCH 2/2] set Jenkinsfile timeout time as int --- .ci/jenkins/Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/jenkins/Jenkinsfile b/.ci/jenkins/Jenkinsfile index 1d209df7..d2722492 100644 --- a/.ci/jenkins/Jenkinsfile +++ b/.ci/jenkins/Jenkinsfile @@ -8,7 +8,7 @@ pipeline { } options { timestamps() - timeout(time: '720', unit: 'MINUTES') + timeout(time: 720, unit: 'MINUTES') } environment { BUILDCHAIN_PROJECT = 'kiegroup/optaplanner-quickstarts'