[Qa-jenkins-scm] [jenkins.debian.net] 05/05: wrapper: path to $RESULTS may not exist, so make it before rsync

Holger Levsen holger at layer-acht.org
Sat Jul 23 22:35:49 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 318b5e67a33f3d9ecb0947cb87fb8f1e74b2c014
Author: Philip Hands <phil at hands.com>
Date:   Sat Jul 23 23:12:03 2016 +0200

    wrapper: path to $RESULTS may not exist, so make it before rsync
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/jenkins_master_wrapper.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bin/jenkins_master_wrapper.sh b/bin/jenkins_master_wrapper.sh
index ea3c638..9bc6e7a 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list