8000 Using Jabba to explicitly enable Java8 (for ccm + Simulacron compat) … · datastax/python-driver@7780e90 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7780e90

Browse files
authored
Using Jabba to explicitly enable Java8 (for ccm + Simulacron compat) before running integration tests (#1202)
1 parent 41f751b commit 7780e90

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Jenkinsfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ def executeStandardTests() {
272272
. ${HOME}/environment.txt
273273
set +o allexport
274274
275+
. ${JABBA_SHELL}
276+
jabba use 1.8
277+
275278
SIMULACRON_JAR="${HOME}/simulacron.jar"
276279
SIMULACRON_JAR=${SIMULACRON_JAR} EVENT_LOOP=${EVENT_LOOP} CASSANDRA_DIR=${CCM_INSTALL_DIR} CCM_ARGS="${CCM_ARGS}" DSE_VERSION=${DSE_VERSION} CASSANDRA_VERSION=${CCM_CASSANDRA_VERSION} MAPPED_CASSANDRA_VERSION=${MAPPED_CASSANDRA_VERSION} VERIFY_CYTHON=${CYTHON_ENABLED} pynose -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --exclude test_backpressure.py --xunit-file=simulacron_results.xml tests/integration/simulacron/ || true
277280
@@ -288,6 +291,9 @@ def executeStandardTests() {
288291
. ${HOME}/environment.txt
289292
set +o allexport
290293
294+
. ${JABBA_SHELL}
295+
jabba use 1.8
296+
291297
EVENT_LOOP=${EVENT_LOOP} CCM_ARGS="${CCM_ARGS}" DSE_VERSION=${DSE_VERSION} CASSANDRA_VERSION=${CCM_CASSANDRA_VERSION} MAPPED_CASSANDRA_VERSION=${MAPPED_CASSANDRA_VERSION} VERIFY_CYTHON=${CYTHON_ENABLED} pynose -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=cqle_results.xml tests/integration/cqlengine/ || true
292298
'''
293299

@@ -297,6 +303,9 @@ def executeStandardTests() {
297303
. ${HOME}/environment.txt
298304
set +o allexport
299305
306+
. ${JABBA_SHELL}
307+
jabba use 1.8
308+
300309
EVENT_LOOP=${EVENT_LOOP} CCM_ARGS="${CCM_ARGS}" DSE_VERSION=${DSE_VERSION} CASSANDRA_VERSION=${CCM_CASSANDRA_VERSION} MAPPED_CASSANDRA_VERSION=${MAPPED_CASSANDRA_VERSION} VERIFY_CYTHON=${CYTHON_ENABLED} pynose -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=standard_results.xml tests/integration/standard/ || true
301310
'''
302311

@@ -311,6 +320,9 @@ def executeStandardTests() {
311320
. ${HOME}/environment.txt
312321
set +o allexport
313322
323+
. ${JABBA_SHELL}
324+
jabba use 1.8
325+
314326
EVENT_LOOP=${EVENT_LOOP} CASSANDRA_DIR=${CCM_INSTALL_DIR} DSE_VERSION=${DSE_VERSION} ADS_HOME="${HOME}/" VERIFY_CYTHON=${CYTHON_ENABLED} pynose -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=dse_results.xml tests/integration/advanced/ || true
315327
'''
316328
}
@@ -322,6 +334,9 @@ def executeStandardTests() {
322334
. ${HOME}/environment.txt
323335
set +o allexport
324336
337+
. ${JABBA_SHELL}
338+
jabba use 1.8
339+
325340
EVENT_LOOP=${EVENT_LOOP} CLOUD_PROXY_PATH="${HOME}/proxy/" CASSANDRA_VERSION=${CCM_CASSANDRA_VERSION} MAPPED_CASSANDRA_VERSION=${MAPPED_CASSANDRA_VERSION} VERIFY_CYTHON=${CYTHON_ENABLED} pynose -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=advanced_results.xml tests/integration/cloud/ || true
326341
'''
327342

@@ -332,6 +347,9 @@ def executeStandardTests() {
332347
. ${HOME}/environment.txt
333348
set +o allexport
334349
350+
. ${JABBA_SHELL}
351+
jabba use 1.8
352+
335353
EVENT_LOOP=${EVENT_LOOP} CCM_ARGS="${CCM_ARGS}" DSE_VERSION=${DSE_VERSION} CASSANDRA_VERSION=${CCM_CASSANDRA_VERSION} MAPPED_CASSANDRA_VERSION=${MAPPED_CASSANDRA_VERSION} VERIFY_CYTHON=${CYTHON_ENABLED} pynose -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --exclude-dir=tests/integration/long/upgrade --with-ignore-docstrings --with-xunit --xunit-file=long_results.xml tests/integration/long/ || true
336354
'''
337355
}
@@ -344,6 +362,9 @@ def executeDseSmokeTests() {
344362
. ${HOME}/environment.txt
345363
set +o allexport
346364
365+
. ${JABBA_SHELL}
366+
jabba use 1.8
367+
347368
EVENT_LOOP=${EVENT_LOOP} CCM_ARGS="${CCM_ARGS}" CASSANDRA_VERSION=${CCM_CASSANDRA_VERSION} DSE_VERSION=${DSE_VERSION} MAPPED_CASSANDRA_VERSION=${MAPPED_CASSANDRA_VERSION} VERIFY_CYTHON=${CYTHON_ENABLED} pynose -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=standard_results.xml tests/integration/standard/test_dse.py || true
348369
'''
349370
}
@@ -355,6 +376,9 @@ def executeEventLoopTests() {
355376
. ${HOME}/environment.txt
356377
set +o allexport
357378
379+
. ${JABBA_SHELL}
380+
jabba use 1.8
381+
358382
EVENT_LOOP_TESTS=(
359383
"tests/integration/standard/test_cluster.py"
360384
"tests/integration/standard/test_concurrent.py"
@@ -628,6 +652,7 @@ pipeline {
628652
OS_VERSION = 'ubuntu/bionic64/python-driver'
629653
CCM_ENVIRONMENT_SHELL = '/usr/local/bin/ccm_environment.sh'
630654
CCM_MAX_HEAP_SIZE = '1536M'
655+
JABBA_SHELL = '/usr/lib/jabba/jabba.sh'
631656
}
632657

633658
stages {

0 commit comments

Comments
 (0)
0