From fdbfa616f932cc276ab5145cf95bfbffcd593479 Mon Sep 17 00:00:00 2001 From: cimbalek Date: Wed, 29 Nov 2023 14:15:47 +0100 Subject: [PATCH] [incubator-kie-issues#655] Build optaplanner quickstarts from correct branch --- .ci/jenkins/project/Jenkinsfile.nightly | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.ci/jenkins/project/Jenkinsfile.nightly b/.ci/jenkins/project/Jenkinsfile.nightly index 63234592fb6..de12457ed7a 100644 --- a/.ci/jenkins/project/Jenkinsfile.nightly +++ b/.ci/jenkins/project/Jenkinsfile.nightly @@ -67,8 +67,15 @@ pipeline { def buildParams = getDefaultBuildParams(getBuildBranch()) addSkipTestsParam(buildParams) addSkipIntegrationTestsParam(buildParams) - def quickstartsBranch = getBuildBranch() == 'main' || getBuildBranch() == '9.x' - ? 'development' : getBuildBranch() + String quickstartsBranch + switch (getBuildBranch()) { + case 'main': quickstartsBranch = '8.x' + break + case '9.x': quickstartsBranch = 'development' + break + default : quickstartsBranch = getBuildBranch() + } + addStringParam(buildParams, 'QUICKSTARTS_BUILD_BRANCH_NAME', quickstartsBranch) buildJob(OPTAPLANNER_DEPLOY, buildParams)