@@ -58,17 +58,17 @@ pipeline {
58
58
}
59
59
}
60
60
}
61
- stage(' Publish JDK 15 + MongoDB 4.4' ) {
61
+ stage(' Publish JDK LTS + MongoDB 4.4' ) {
62
62
when {
63
- changeset " ci/openjdk15 -mongodb-4.4/**"
63
+ changeset " ci/openjdk17 -mongodb-4.4/**"
64
64
changeset " ci/pipeline.properties"
65
65
}
66
66
agent { label ' data' }
67
67
options { timeout(time : 30 , unit : ' MINUTES' ) }
68
68
69
69
steps {
70
70
script {
71
- def image = docker. build(" springci/spring-data-with-mongodb-4.4:${ p['java.15 .tag']} " , " --build-arg BASE=${ p['docker.java.15 .image']} --build-arg MONGODB=${ p['docker.mongodb.4.4.version']} ci/openjdk15 -mongodb-4.4/" )
71
+ def image = docker. build(" springci/spring-data-with-mongodb-4.4:${ p['java.lts .tag']} " , " --build-arg BASE=${ p['docker.java.lts .image']} --build-arg MONGODB=${ p['docker.mongodb.4.4.version']} ci/openjdk17 -mongodb-4.4/" )
72
72
docker. withRegistry(p[' docker.registry' ], p[' docker.credentials' ]) {
73
73
image. push()
74
74
}
@@ -140,7 +140,7 @@ pipeline {
140
140
}
141
141
}
142
142
143
- stage(" test: baseline (jdk15 )" ) {
143
+ stage(" test: baseline (LTS )" ) {
144
144
agent {
145
145
label ' data'
146
146
}
@@ -151,13 +151,13 @@ pipeline {
151
151
steps {
152
152
script {
153
153
docker. withRegistry(p[' docker.registry' ], p[' docker.credentials' ]) {
154
- docker. image(" harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-mongodb-4.4:${ p['java.15 .tag']} " ). inside(p[' docker.java.inside.basic' ]) {
154
+ docker. image(" harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-mongodb-4.4:${ p['java.lts .tag']} " ). inside(p[' docker.java.inside.basic' ]) {
155
155
sh ' mkdir -p /tmp/mongodb/db /tmp/mongodb/log'
156
156
sh ' mongod --setParameter transactionLifetimeLimitSeconds=90 --setParameter maxTransactionLockRequestTimeoutMillis=10000 --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &'
157
157
sh ' sleep 10'
158
158
sh ' mongo --eval "rs.initiate({_id: \' rs0\' , members:[{_id: 0, host: \' 127.0.0.1:27017\' }]});"'
159
159
sh ' sleep 15'
160
- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pjava11 clean dependency:list test -Duser.name=jenkins -Dsort -U -B'
160
+ sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml clean dependency:list test -Duser.name=jenkins -Dsort -U -B'
161
161
}
162
162
}
163
163
}
@@ -185,7 +185,7 @@ pipeline {
185
185
steps {
186
186
script {
187
187
docker. withRegistry(p[' docker.registry' ], p[' docker.credentials' ]) {
188
- docker. image(p[' docker.java.main .image' ]). inside(p[' docker.java.inside.basic' ]) {
188
+ docker. image(p[' docker.java.lts .image' ]). inside(p[' docker.java.inside.basic' ]) {
189
189
sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,artifactory ' +
190
190
' -Dartifactory.server=https://repo.spring.io ' +
191
191
" -Dartifactory.username=${ ARTIFACTORY_USR} " +
@@ -199,35 +199,6 @@ pipeline {
199
199
}
200
200
}
201
201
}
202
-
203
- stage(' Publish documentation' ) {
204
- when {
205
- branch ' 3.2.x'
206
- }
207
- agent {
208
- label ' data'
209
- }
210
- options { timeout(time : 20 , unit : ' MINUTES' ) }
211
-
212
- environment {
213
- ARTIFACTORY = credentials(' 02bd1690-b54f-4c9f-819d-a77cb7a9822c' )
214
- }
215
-
216
- steps {
217
- script {
218
- docker. withRegistry(p[' docker.registry' ], p[' docker.credentials' ]) {
219
- docker. image(p[' docker.java.main.image' ]). inside(p[' docker.java.inside.basic' ]) {
220
- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,distribute ' +
221
- ' -Dartifactory.server=https://repo.spring.io ' +
222
- " -Dartifactory.username=${ ARTIFACTORY_USR} " +
223
- " -Dartifactory.password=${ ARTIFACTORY_PSW} " +
224
- " -Dartifactory.distribution-repository=temp-private-local " +
225
- ' -Dmaven.test.skip=true clean deploy -U -B'
226
- }
227
- }
228
- }
229
- }
230
- }
231
202
}
232
203
233
204
post {
0 commit comments