Skip to content

Commit 54b3f45

Browse files
authored
#1809 - Jenkinsfile fixes
Fix syntax issues and update mongod path for MacOS
1 parent 2259ad8 commit 54b3f45

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Jenkinsfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pipeline {
4343
unstash 'buildUbuntu'
4444
sh '''
4545
. $HOME/.bash_profile
46-
if ! /usr/bin/pgrep mongod &>/dev/null;
46+
if ! /usr/bin/pgrep mongod &>/dev/null; then
4747
/usr/bin/mongod -f /etc/mongod.conf > /dev/null 2>&1 &
4848
fi
4949
cd build
@@ -73,8 +73,8 @@ pipeline {
7373
unstash 'buildMacOS'
7474
sh '''
7575
. $HOME/.bash_profile
76-
if ! /usr/bin/pgrep mongod &>/dev/null;
77-
/usr/bin/mongod -f /etc/mongod.conf > /dev/null 2>&1 &
76+
if ! /usr/bin/pgrep mongod &>/dev/null; then
77+
/usr/local/bin/mongod -f /usr/local/etc/mongod.conf > /dev/null 2>&1 &
7878
fi
7979
cd build
8080
ctest --output-on-failure
@@ -89,7 +89,7 @@ pipeline {
8989
}
9090
always {
9191
sh '''
92-
/usr/bin/mongod --shutdown
92+
/usr/local/bin/mongod --shutdown
9393
'''
9494
}
9595
}
@@ -100,7 +100,7 @@ pipeline {
100100
unstash 'buildFedora'
101101
sh '''
102102
. $HOME/.bash_profile
103-
if ! /usr/bin/pgrep mongod &>/dev/null;
103+
if ! /usr/bin/pgrep mongod &>/dev/null; then
104104
/usr/bin/mongod -f /etc/mongod.conf > /dev/null 2>&1 &
105105
fi
106106
cd build

0 commit comments

Comments
 (0)