This is an automated email from the ASF dual-hosted git repository.

jstastnycz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-optaplanner.git


The following commit(s) were added to refs/heads/main by this push:
     new fdbfa616f9 [incubator-kie-issues#655] Build optaplanner quickstarts 
from correct branch
fdbfa616f9 is described below

commit fdbfa616f932cc276ab5145cf95bfbffcd593479
Author: cimbalek <[email protected]>
AuthorDate: Wed Nov 29 14:15:47 2023 +0100

    [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 63234592fb..de12457ed7 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)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to