From caafca472afa5be08b57731da88bc74d2a111418 Mon Sep 17 00:00:00 2001 From: Andrea Lamparelli Date: Mon, 26 Jun 2023 10:29:48 +0200 Subject: [PATCH] Made deploy artifacts on setup-branch configurable (#2866) --- .ci/jenkins/dsl/jobs.groovy | 1 + .ci/jenkins/project/Jenkinsfile.setup-branch | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.ci/jenkins/dsl/jobs.groovy b/.ci/jenkins/dsl/jobs.groovy index e026e5c9d97..dafcaad861c 100644 --- a/.ci/jenkins/dsl/jobs.groovy +++ b/.ci/jenkins/dsl/jobs.groovy @@ -76,6 +76,7 @@ void createProjectSetupBranchJob() { KogitoJobTemplate.createPipelineJob(this, jobParams)?.with { parameters { stringParam('OPTAPLANNER_VERSION', '', 'OptaPlanner version') + booleanParam('DEPLOY_ARTIFACTS', true, 'Deploy artifacts') } } } diff --git a/.ci/jenkins/project/Jenkinsfile.setup-branch b/.ci/jenkins/project/Jenkinsfile.setup-branch index 6ab0ff79077..c3486e649c1 100644 --- a/.ci/jenkins/project/Jenkinsfile.setup-branch +++ b/.ci/jenkins/project/Jenkinsfile.setup-branch @@ -79,6 +79,9 @@ pipeline { // Launch the nightly to deploy all artifacts from the branch stage('Launch the nightly') { + when { + return params.DEPLOY_ARTIFACTS + } steps { script { def buildParams = getDefaultBuildParams()