@@ -20,25 +20,6 @@ pipeline {
20
20
stages {
21
21
stage(" Docker images" ) {
22
22
parallel {
23
- stage(' Publish JDK (main) + MongoDB 4.0' ) {
24
- when {
25
- anyOf {
26
- changeset " ci/openjdk8-mongodb-4.0/**"
27
- changeset " ci/pipeline.properties"
28
- }
29
- }
30
- agent { label ' data' }
31
- options { timeout(time : 30 , unit : ' MINUTES' ) }
32
-
33
- steps {
34
- script {
35
- def image = docker. build(" springci/spring-data-with-mongodb-4.0:${ p['java.main.tag']} " , " --build-arg BASE=${ p['docker.java.main.image']} --build-arg MONGODB=${ p['docker.mongodb.4.0.version']} ci/openjdk8-mongodb-4.0/" )
36
- docker. withRegistry(p[' docker.registry' ], p[' docker.credentials' ]) {
37
- image. push()
38
- }
39
- }
40
- }
41
- }
42
23
stage(' Publish JDK (main) + MongoDB 4.4' ) {
43
24
when {
44
25
anyOf {
@@ -116,7 +97,7 @@ pipeline {
116
97
}
117
98
steps {
118
99
script {
119
- docker. image(" harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-mongodb-4.0 :${ p['java.main.tag']} " ). inside(p[' docker.java.inside.basic' ]) {
100
+ 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' ]) {
120
101
sh ' mkdir -p /tmp/mongodb/db /tmp/mongodb/log'
121
102
sh ' mongod --setParameter transactionLifetimeLimitSeconds=90 --setParameter maxTransactionLockRequestTimeoutMillis=10000 --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &'
122
103
sh ' sleep 10'
@@ -137,28 +118,6 @@ pipeline {
137
118
}
138
119
}
139
120
parallel {
140
- stage(" test: mongodb 4.4 (main)" ) {
141
- agent {
142
- label ' data'
143
- }
144
- options { timeout(time : 30 , unit : ' MINUTES' ) }
145
- environment {
146
- ARTIFACTORY = credentials(" ${ p['artifactory.credentials']} " )
147
- }
148
- steps {
149
- script {
150
- 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' ]) {
151
- sh ' mkdir -p /tmp/mongodb/db /tmp/mongodb/log'
152
- sh ' mongod --setParameter transactionLifetimeLimitSeconds=90 --setParameter maxTransactionLockRequestTimeoutMillis=10000 --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &'
153
- sh ' sleep 10'
154
- sh ' mongo --eval "rs.initiate({_id: \' rs0\' , members:[{_id: 0, host: \' 127.0.0.1:27017\' }]});"'
155
- sh ' sleep 15'
156
- 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'
157
- }
158
- }
159
- }
160
- }
161
-
162
121
stage(" test: mongodb 5.0 (main)" ) {
163
122
agent {
164
123
label ' data'
0 commit comments