From b72d136d8c3a9ab118bf6468333e2850833a3d4c Mon Sep 17 00:00:00 2001 From: Michael Youngstrom Date: Mon, 13 Aug 2018 15:34:52 -0400 Subject: [PATCH] Bump up node install timeout and add verbose --- scripts/jenkins-common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/jenkins-common.sh b/scripts/jenkins-common.sh index fe2e867697..4b4c23b3f5 100644 --- a/scripts/jenkins-common.sh +++ b/scripts/jenkins-common.sh @@ -7,7 +7,7 @@ source $HOME/jenkins_env NODE_ENV_DIR=$HOME/nenv NODE_VERSION=8.9.3 -NODE_INSTALL_COMMAND="nodeenv --node=$NODE_VERSION --prebuilt $NODE_ENV_DIR --force" +NODE_INSTALL_COMMAND="nodeenv --node=$NODE_VERSION --prebuilt $NODE_ENV_DIR --force --verbose" # Clear the mongo database # Note that this prevents us from running jobs in parallel on a single worker. @@ -40,7 +40,7 @@ rm -rf $NODE_ENV_DIR # Occasionally, the command to install node hangs. We need to catch that and retry. # Note that this will retry even if the command itself fails. WAIT_COUNT=0 -until timeout 30s $NODE_INSTALL_COMMAND || [ $WAIT_COUNT -eq 2 ]; do +until timeout 60s $NODE_INSTALL_COMMAND || [ $WAIT_COUNT -eq 2 ]; do echo "re-trying to install node version..." sleep 2 WAIT_COUNT=$((WAIT_COUNT+1))