Skip to content

Commit 2f9fc16

Browse files
committed
Use mongosh instead of mongo CLI.
Switch from the deprecated command to its replacement. See #4138
1 parent 9e2aecf commit 2f9fc16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jenkinsfile

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

0 commit comments

Comments
 (0)