This is an automated email from the ASF dual-hosted git repository.
porcelli pushed a commit to branch apache_migration
in repository https://gitbox.apache.org/repos/asf/incubator-kie-optaplanner.git
The following commit(s) were added to refs/heads/apache_migration by this push:
new b21d3724e7 PR multibranchPipelineJob (#2975)
b21d3724e7 is described below
commit b21d3724e7ef208607dbe4b77c48fbff921b43d3
Author: Jan Stastny <[email protected]>
AuthorDate: Wed Sep 13 21:07:04 2023 +0200
PR multibranchPipelineJob (#2975)
* PR multibranchPipelineJob
* set Jenkinsfile timeout time as int
---------
Co-authored-by: jstastny-cz <[email protected]>
---
.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 bd14a10ad7..360483fe9d 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 3fd7968a24..41f0147b80 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()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]