diff --git a/.ci/jenkins/project/Jenkinsfile.weekly b/.ci/jenkins/project/Jenkinsfile.weekly index d9710e2447..f7e1b2c75c 100644 --- a/.ci/jenkins/project/Jenkinsfile.weekly +++ b/.ci/jenkins/project/Jenkinsfile.weekly @@ -69,15 +69,7 @@ pipeline { def buildParams = getDefaultBuildParams() addSkipTestsParam(buildParams) addSkipIntegrationTestsParam(buildParams) - String quickstartsBranch - switch (getBuildBranch()) { - case 'main': quickstartsBranch = '8.x' - break - case '9.x': quickstartsBranch = 'development' - break - default : quickstartsBranch = getBuildBranch() - } - + String quickstartsBranch = getBuildBranch() == 'main' ? 'development' : getBuildBranch() addStringParam(buildParams, 'QUICKSTARTS_BUILD_BRANCH_NAME', quickstartsBranch) buildJob(OPTAPLANNER_DEPLOY, buildParams)