From ad36d2e1a18b5e40ce9bdb57479a5ec096ccab9e Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Wed, 27 Jul 2016 23:11:37 +0200 Subject: try putting the rsync'd artifacts back under $WORKSPACE Signed-off-by: Holger Levsen --- bin/jenkins_master_wrapper.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/jenkins_master_wrapper.sh b/bin/jenkins_master_wrapper.sh index 319c696c..2701672b 100755 --- a/bin/jenkins_master_wrapper.sh +++ b/bin/jenkins_master_wrapper.sh @@ -70,13 +70,14 @@ ssh -o "BatchMode = yes" -p $PORT $NODE_NAME "$PARAMS" || { # grab artifacts and tidy up at the other end if [ "$RETRIEVE_ARTIFACTS" = "yes" ] ; then - RESULTS="/var/lib/jenkins/jobs/$JOB_NAME/workspace/results" + RESULTS="$WORKSPACE/results" + NODE_RESULTS="/var/lib/jenkins/jobs/$JOB_NAME/workspace/results" 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" + rsync -r -v -e "ssh -o 'Batchmode = yes' -p $PORT" "$NODE_NAME:$NODE_RESULTS/" "$RESULTS/" + ssh -o "BatchMode = yes" -p $PORT $NODE_NAME "rm -r $NODE_RESULTS" fi exit $RETVAL -- cgit v1.2.3-70-g09d2