From b2467147ae489bd549be7199eda81b831806c17d Mon Sep 17 00:00:00 2001 From: Ben Patterson Date: Thu, 13 Oct 2016 12:05:18 -0400 Subject: [PATCH] Script should exit non-zero if there is an error raised. Also, help with an echo. --- scripts/jenkins-common.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/jenkins-common.sh b/scripts/jenkins-common.sh index 3cfff5bebf..375eba3a0a 100644 --- a/scripts/jenkins-common.sh +++ b/scripts/jenkins-common.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -e + source $HOME/jenkins_env # Clear the mongo database @@ -27,4 +29,5 @@ PATH=$PATH:node_modules/.bin # Manage the npm cache on Jenkins. # (In this case, remove it. That ensures from run-to-run, it is a clean npm environment) +echo "--> Cleaning npm cache" npm cache clean