From b1899884eac02e939c2e503753662a5dcf26ac80 Mon Sep 17 00:00:00 2001 From: Andrea Lamparelli Date: Mon, 5 Jun 2023 12:12:57 +0200 Subject: [PATCH] Made deploy artifacts on setup-branch configurable --- .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 e026e5c9d9..dafcaad861 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 6ab0ff7907..c3486e649c 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()