Skip to content

Commit a4175f3

Browse files
SiyaoIsHidingmichaelsembwever
authored andcommitted
Automate latest Cassandra versions when running CI
patch by Siyao (Jane) He; reviewed by Mick Semb Wever for CASSJAVA-25
1 parent 7877837 commit a4175f3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Jenkinsfile-asf

+4-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ pipeline {
3939
}
4040
axis {
4141
name 'SERVER_VERSION'
42-
values '3.11.17',
43-
'4.0.13',
44-
'5.0-beta1'
42+
values '3.11',
43+
'4.0',
44+
'4.1',
45+
'5.0'
4546
}
4647
}
4748
stages {

ci/run-tests.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ cd $(dirname "$(readlink -f "$0")")/..
66
printenv | sort
77
mvn -B -V install -DskipTests -Dmaven.javadoc.skip=true
88
jabba use ${TEST_JAVA_VERSION}
9+
# Find out the latest patch version of Cassandra
10+
PATCH_SERVER_VERSION=$(curl -s https://downloads.apache.org/cassandra/ | grep -oP '(?<=href=\")[0-9]+\.[0-9]+\.[0-9]+(?=)' | sort -rV | uniq -w 3 | grep $SERVER_VERSION)
911
printenv | sort
10-
mvn -B -V verify -T 1 -Ptest-jdk-${TEST_JAVA_MAJOR_VERSION} -DtestJavaHome=$(jabba which ${TEST_JAVA_VERSION}) -Dccm.version=${SERVER_VERSION} -Dccm.dse=false -Dmaven.test.failure.ignore=true -Dmaven.javadoc.skip=true
12+
mvn -B -V verify -T 1 -Ptest-jdk-${TEST_JAVA_MAJOR_VERSION} -DtestJavaHome=$(jabba which ${TEST_JAVA_VERSION}) -Dccm.version=${PATCH_SERVER_VERSION} -Dccm.dse=false -Dmaven.test.failure.ignore=true -Dmaven.javadoc.skip=true

0 commit comments

Comments
 (0)