Skip to content

Commit

Permalink
Fix weekly Jenkins job build params
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigonull committed Jun 20, 2024
1 parent 9e978e9 commit acf88fc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .ci/jenkins/project/Jenkinsfile.weekly
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ 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()
}

addStringParam(buildParams, 'QUICKSTARTS_BUILD_BRANCH_NAME', quickstartsBranch)

buildJob(OPTAPLANNER_DEPLOY, buildParams)
}
Expand Down Expand Up @@ -153,7 +163,6 @@ List getDefaultBuildParams() {
List params = []
addStringParam(params, 'DISPLAY_NAME', "${env.WEEKLY_TAG}")
addStringParam(params, 'GIT_CHECKOUT_DATETIME', getCheckoutDatetime())
addStringParam(params, 'QUICKSTARTS_BUILD_BRANCH_NAME', getBuildBranch())
addBooleanParam(params, 'SEND_NOTIFICATION', true)

return params
Expand Down

0 comments on commit acf88fc

Please sign in to comment.