File tree Expand file tree Collapse file tree 1 file changed +34
-1
lines changed Expand file tree Collapse file tree 1 file changed +34
-1
lines changed Original file line number Diff line number Diff 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 ' mongosh --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 )
You can’t perform that action at this time.
0 commit comments