Skip to content

Commit 2259ad8

Browse files
author
Eric Iles
committed
#1809 - Use full path to pgrep and mongod
1 parent 7ecc721 commit 2259ad8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Jenkinsfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ pipeline {
4343
unstash 'buildUbuntu'
4444
sh '''
4545
. $HOME/.bash_profile
46-
if ! pgrep mongod &>/dev/null;
47-
mongod -f /etc/mongod.conf > /dev/null 2>&1 &
46+
if ! /usr/bin/pgrep mongod &>/dev/null;
47+
/usr/bin/mongod -f /etc/mongod.conf > /dev/null 2>&1 &
4848
fi
4949
cd build
5050
printf "Waiting for testing to be available..."
@@ -62,7 +62,7 @@ pipeline {
6262
}
6363
always {
6464
sh '''
65-
mongod --shutdown
65+
/usr/bin/mongod --shutdown
6666
'''
6767
}
6868
}
@@ -73,8 +73,8 @@ pipeline {
7373
unstash 'buildMacOS'
7474
sh '''
7575
. $HOME/.bash_profile
76-
if ! pgrep mongod &>/dev/null;
77-
mongod -f /etc/mongod.conf > /dev/null 2>&1 &
76+
if ! /usr/bin/pgrep mongod &>/dev/null;
77+
/usr/bin/mongod -f /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-
mongod --shutdown
92+
/usr/bin/mongod --shutdown
9393
'''
9494
}
9595
}
@@ -100,8 +100,8 @@ pipeline {
100100
unstash 'buildFedora'
101101
sh '''
102102
. $HOME/.bash_profile
103-
if ! pgrep mongod &>/dev/null;
104-
mongod -f /etc/mongod.conf > /dev/null 2>&1 &
103+
if ! /usr/bin/pgrep mongod &>/dev/null;
104+
/usr/bin/mongod -f /etc/mongod.conf > /dev/null 2>&1 &
105105
fi
106106
cd build
107107
printf "Waiting for testing to be available..."
@@ -119,7 +119,7 @@ pipeline {
119119
}
120120
always {
121121
sh '''
122-
mongod --shutdown
122+
/usr/bin/mongod --shutdown
123123
'''
124124
}
125125
}

0 commit comments

Comments
 (0)