Browse Source

Use mongosh instead of mongo CLI.

Switch from the deprecated command to its replacement.

See #4138
pull/4142/head
Mark Paluch 3 years ago
parent
commit
2f9fc1618e
No known key found for this signature in database
GPG Key ID: 4406B84C1661DCD1
  1. 2
      Jenkinsfile

2
Jenkinsfile vendored

@ -155,7 +155,7 @@ pipeline { @@ -155,7 +155,7 @@ pipeline {
sh 'mkdir -p /tmp/mongodb/db /tmp/mongodb/log'
sh 'mongod --setParameter transactionLifetimeLimitSeconds=90 --setParameter maxTransactionLockRequestTimeoutMillis=10000 --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &'
sh 'sleep 10'
sh 'mongo --eval "rs.initiate({_id: \'rs0\', members:[{_id: 0, host: \'127.0.0.1:27017\'}]});"'
sh 'mongosh --eval "rs.initiate({_id: \'rs0\', members:[{_id: 0, host: \'127.0.0.1:27017\'}]});"'
sh 'sleep 15'
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'
}

Loading…
Cancel
Save