summaryrefslogtreecommitdiffstats
path: root/bin/jenkins_master_wrapper.sh
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2016-07-23 23:12:03 +0200
committerHolger Levsen <holger@layer-acht.org>2016-07-23 18:34:00 -0400
commit318b5e67a33f3d9ecb0947cb87fb8f1e74b2c014 (patch)
tree33a3c8279e3a87d83230e90a6a79ab8ecbcbac98 /bin/jenkins_master_wrapper.sh
parent19cf94b81b2c22c9baf73190e977cf2bc33d2450 (diff)
downloadjenkins.debian.net-318b5e67a33f3d9ecb0947cb87fb8f1e74b2c014.tar.xz
wrapper: path to $RESULTS may not exist, so make it before rsync
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/jenkins_master_wrapper.sh')
-rwxr-xr-xbin/jenkins_master_wrapper.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/jenkins_master_wrapper.sh b/bin/jenkins_master_wrapper.sh
index ea3c6383..9bc6e7a0 100755
--- a/bin/jenkins_master_wrapper.sh
+++ b/bin/jenkins_master_wrapper.sh
@@ -74,6 +74,7 @@ if [ "$RETRIEVE_ARTIFACTS" = "yes" ] ; then
echo "$(date -u) - retrieving artifacts."
set -x
+ mkdir -p "$RESULTS"
rsync -r -v -e "ssh -o 'Batchmode = yes' -p $PORT" "$NODE_NAME:$RESULTS/" "$RESULTS/"
ssh -o "BatchMode = yes" -p $PORT $NODE_NAME "rm -r '$RESULTS'"
fi