@@ -43,8 +43,8 @@ pipeline {
43
43
unstash ' buildUbuntu'
44
44
sh '''
45
45
. $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 &
48
48
fi
49
49
cd build
50
50
printf "Waiting for testing to be available..."
@@ -62,7 +62,7 @@ pipeline {
62
62
}
63
63
always {
64
64
sh '''
65
- mongod --shutdown
65
+ /usr/bin/ mongod --shutdown
66
66
'''
67
67
}
68
68
}
@@ -73,8 +73,8 @@ pipeline {
73
73
unstash ' buildMacOS'
74
74
sh '''
75
75
. $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 &
78
78
fi
79
79
cd build
80
80
ctest --output-on-failure
@@ -89,7 +89,7 @@ pipeline {
89
89
}
90
90
always {
91
91
sh '''
92
- mongod --shutdown
92
+ /usr/bin/ mongod --shutdown
93
93
'''
94
94
}
95
95
}
@@ -100,8 +100,8 @@ pipeline {
100
100
unstash ' buildFedora'
101
101
sh '''
102
102
. $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 &
105
105
fi
106
106
cd build
107
107
printf "Waiting for testing to be available..."
@@ -119,7 +119,7 @@ pipeline {
119
119
}
120
120
always {
121
121
sh '''
122
- mongod --shutdown
122
+ /usr/bin/ mongod --shutdown
123
123
'''
124
124
}
125
125
}
0 commit comments