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()