File tree 1 file changed +34
-1
lines changed
1 file changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ pipeline {
36
36
}
37
37
steps {
38
38
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' ]) {
40
40
sh ' mkdir -p /tmp/mongodb/db /tmp/mongodb/log'
41
41
sh ' mongod --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &'
42
42
sh ' sleep 10'
@@ -48,6 +48,39 @@ pipeline {
48
48
}
49
49
}
50
50
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
+
51
84
stage(' Release to artifactory' ) {
52
85
when {
53
86
beforeAgent(true )
You can’t perform that action at this time.
0 commit comments