Skip to content

Commit 0ebe878

Browse files
committed
Test against Java 20 on CI.
See #2244.
1 parent 0225ec1 commit 0ebe878

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

Jenkinsfile

+34-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pipeline {
3636
}
3737
steps {
3838
script {
39-
docker.image("springci/spring-data-with-mongodb-4.4:${p['java.main.tag']}").inside(p['docker.java.inside.basic']) {
39+
docker.image("harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-mongodb-4.4:${p['java.main.tag']}").inside(p['docker.java.inside.basic']) {
4040
sh 'mkdir -p /tmp/mongodb/db /tmp/mongodb/log'
4141
sh 'mongod --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &'
4242
sh 'sleep 10'
@@ -48,6 +48,39 @@ pipeline {
4848
}
4949
}
5050

51+
stage("Test other configurations") {
52+
when {
53+
beforeAgent(true)
54+
allOf {
55+
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
56+
not { triggeredBy 'UpstreamCause' }
57+
}
58+
}
59+
parallel {
60+
stage("test: baseline (next)") {
61+
agent {
62+
label 'data'
63+
}
64+
options { timeout(time: 30, unit: 'MINUTES') }
65+
environment {
66+
ARTIFACTORY = credentials("${p['artifactory.credentials']}")
67+
}
68+
steps {
69+
script {
70+
docker.image("harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-mongodb-6.0:${p['java.next.tag']}").inside(p['docker.java.inside.basic']) {
71+
sh 'mkdir -p /tmp/mongodb/db /tmp/mongodb/log'
72+
sh 'mongod --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &'
73+
sh 'sleep 10'
74+
sh 'mongo --eval "rs.initiate({_id: \'rs0\', members:[{_id: 0, host: \'127.0.0.1:27017\'}]});"'
75+
sh 'sleep 15'
76+
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml clean dependency:list test -Dsort -U -B -Pit'
77+
}
78+
}
79+
}
80+
}
81+
}
82+
}
83+
5184
stage('Release to artifactory') {
5285
when {
5386
beforeAgent(true)

0 commit comments

Comments
 (0)