Skip to content

Commit 33b6e3e

Browse files
committed
Fix CI server startup.
See: #4529
1 parent 4ebcdf5 commit 33b6e3e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Jenkinsfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,11 @@ pipeline {
296296
script {
297297
docker.withRegistry(p['docker.proxy.registry'], p['docker.proxy.credentials']) {
298298
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'
300304
sh 'MAVEN_OPTS="-Duser.name=' + "${p['jenkins.user.name']}" + ' -Duser.home=/tmp/jenkins-home" ' +
301305
"./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"
302306
}

0 commit comments

Comments
 (0)