File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,11 @@ pipeline {
296
296
script {
297
297
docker. withRegistry(p[' docker.proxy.registry' ], p[' docker.proxy.credentials' ]) {
298
298
docker. image(" springci/spring-data-with-mongodb-7.0:${ p['java.next.tag']} " ). inside(p[' docker.java.inside.docker' ]) {
299
- sh ' ci/start-replica.sh'
299
+ sh ' mkdir -p /tmp/mongodb/db /tmp/mongodb/log'
300
+ sh ' mongod --setParameter transactionLifetimeLimitSeconds=90 --setParameter maxTransactionLockRequestTimeoutMillis=10000 --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &'
301
+ sh ' sleep 10'
302
+ sh ' mongosh --eval "rs.initiate({_id: \' rs0\' , members:[{_id: 0, host: \' 127.0.0.1:27017\' }]});"'
303
+ sh ' sleep 15'
300
304
sh ' MAVEN_OPTS="-Duser.name=' + " ${ p['jenkins.user.name']} " + ' -Duser.home=/tmp/jenkins-home" ' +
301
305
" ./mvnw -s settings.xml -Ddevelocity.storage.directory=/tmp/jenkins-home/.develocity-root -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-mongodb clean dependency:list test -Dsort -U -B"
302
306
}
You can’t perform that action at this time.
0 commit comments