File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ pipeline {
43
43
unstash ' buildUbuntu'
44
44
sh '''
45
45
. $HOME/.bash_profile
46
+ if ! /usr/bin/pgrep mongod &>/dev/null; then
47
+ /usr/bin/mongod -f /etc/mongod.conf > /dev/null 2>&1 &
48
+ fi
46
49
cd build
47
50
printf "Waiting for testing to be available..."
48
51
while /usr/bin/pgrep -x ctest > /dev/null; do sleep 1; done
@@ -65,10 +68,10 @@ pipeline {
65
68
unstash ' buildMacOS'
66
69
sh '''
67
70
. $HOME/.bash_profile
71
+ if ! /usr/bin/pgrep mongod &>/dev/null; then
72
+ /usr/local/bin/mongod -f /usr/local/etc/mongod.conf > /dev/null 2>&1 &
73
+ fi
68
74
cd build
69
- printf "Waiting for testing to be available..."
70
- while /usr/bin/pgrep -x ctest > /dev/null; do sleep 1; done
71
- echo "OK!"
72
75
ctest --output-on-failure
73
76
'''
74
77
}
@@ -87,6 +90,9 @@ pipeline {
87
90
unstash ' buildFedora'
88
91
sh '''
89
92
. $HOME/.bash_profile
93
+ if ! /usr/bin/pgrep mongod &>/dev/null; then
94
+ /usr/bin/mongod -f /etc/mongod.conf > /dev/null 2>&1 &
95
+ fi
90
96
cd build
91
97
printf "Waiting for testing to be available..."
92
98
while /usr/bin/pgrep -x ctest > /dev/null; do sleep 1; done
You can’t perform that action at this time.
0 commit comments