Skip to content

Commit f767bcc

Browse files
authored
Using Jabba to explicitly select Java8 before running tests (for ccm support). (#420)
1 parent eac0fbf commit f767bcc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Jenkinsfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ def executeTests() {
8282
. ${HOME}/environment.txt
8383
set +o allexport
8484
85+
# Fix Java version at Java8 for now because of dependencies in DSE.
86+
# TODO: This should last us through testing against Cassandra 4.1.x at least but
87+
# will eventually need to be made more generic.
88+
. ${JABBA_SHELL}
89+
jabba use 1.8
90+
8591
npm run ci_jenkins
8692
'''
8793
}
@@ -302,6 +308,7 @@ pipeline {
302308
SIMULACRON_PATH = '/home/jenkins/simulacron.jar'
303309
CCM_PATH = '/home/jenkins/ccm'
304310
CCM_ENVIRONMENT_SHELL = '/usr/local/bin/ccm_environment.sh'
311+
JABBA_SHELL = '/usr/lib/jabba/jabba.sh'
305312
}
306313

307314
stages {

0 commit comments

Comments
 (0)