From b21d3724e7ef208607dbe4b77c48fbff921b43d3 Mon Sep 17 00:00:00 2001 From: Jan Stastny Date: Wed, 13 Sep 2023 21:07:04 +0200 Subject: [PATCH] PR multibranchPipelineJob (#2975) * PR multibranchPipelineJob * set Jenkinsfile timeout time as int --------- Co-authored-by: jstastny-cz --- .ci/jenkins/Jenkinsfile | 2 +- .ci/jenkins/dsl/jobs.groovy | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.ci/jenkins/Jenkinsfile b/.ci/jenkins/Jenkinsfile index bd14a10ad77..360483fe9d0 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' diff --git a/.ci/jenkins/dsl/jobs.groovy b/.ci/jenkins/dsl/jobs.groovy index 3fd7968a24e..41f0147b80c 100644 --- a/.ci/jenkins/dsl/jobs.groovy +++ b/.ci/jenkins/dsl/jobs.groovy @@ -192,9 +192,7 @@ Map getMultijobPRConfig(JenkinsFolder jobFolder) { } // 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(jobFolder) } +Utils.isMainBranch(this) && KogitoJobTemplate.createPullRequestMultibranchPipelineJob(this, "${jenkins_path}/Jenkinsfile") // Setup branch branch createSetupBranchJob()