message: Spin up mongod for Jenkins tests
diff: @@ -43,6 +43,7 @@ pipeline {
  unstash 'buildUbuntu'
  sh '''
  . $HOME/.bash_profile
  + mongod -f /etc/mongod.conf > /dev/null 2>&1 &
  cd build
  printf "Waiting for testing to be available..."
  while /usr/bin/pgrep -x ctest > /dev/null; do sleep 1; done
  @@ -57,6 +58,11 @@ pipeline {
  archiveArtifacts 'build/tn_data_00/stderr.txt'
  archiveArtifacts 'build/test_walletd_output.log'
  }
  + always {
  + sh '''
  + mongod --shutdown
  + '''
  + }
  }
  }
  stage('MacOS') {
  @@ -65,10 +71,8 @@ pipeline {
  unstash 'buildMacOS'
  sh '''
  . $HOME/.bash_profile
  + mongod -f /usr/local/etc/mongod.conf > /dev/null 2>&1 &
  cd build
  - printf "Waiting for testing to be available..."
  - while /usr/bin/pgrep -x ctest > /dev/null; do sleep 1; done
  - echo "OK!"
  ctest --output-on-failure
  '''
  }
  @@ -79,6 +83,11 @@ pipeline {
  archiveArtifacts 'build/tn_data_00/stderr.txt'
  archiveArtifacts 'build/test_walletd_output.log'
  }
  + always {
  + sh '''
  + mongod --shutdown
  + '''
  + }
  }
  }
  stage('Fedora') {
  @@ -87,6 +96,7 @@ pipeline {
  unstash 'buildFedora'
  sh '''
  . $HOME/.bash_profile
  + mongod -f /etc/mongod.conf > /dev/null 2>&1 &
  cd build
  printf "Waiting for testing to be available..."
  while /usr/bin/pgrep -x ctest > /dev/null; do sleep 1; done
  @@ -101,6 +111,11 @@ pipeline {
  archiveArtifacts 'build/tn_data_00/stderr.txt'
  archiveArtifacts 'build/test_walletd_output.log'
  }
  + always {
  + sh '''
  + mongod --shutdown
  + '''
  + }
  }
  }
  }
  