diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-08-09 23:07:21 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-08-09 23:07:21 +0200 |
commit | 443fdb09aa375d8696a3a631155e700ddbc01d86 (patch) | |
tree | a436386988cf77ea16c47136ece88794d5299ff0 | |
parent | b5983c979149ef0417b8a819c33b42baec194dc8 (diff) | |
download | jenkins.debian.net-443fdb09aa375d8696a3a631155e700ddbc01d86.tar.xz |
lvc: WORKSPACE is correct, magic
-rwxr-xr-x | bin/jenkins_master_wrapper.sh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/jenkins_master_wrapper.sh b/bin/jenkins_master_wrapper.sh index bf06b088..e7d25b5c 100755 --- a/bin/jenkins_master_wrapper.sh +++ b/bin/jenkins_master_wrapper.sh @@ -70,19 +70,15 @@ ssh -o "BatchMode = yes" -p $PORT $NODE_NAME "$PARAMS" || { # grab artifacts and tidy up at the other end if [ "$RETRIEVE_ARTIFACTS" = "yes" ] ; then - echo "debug…" - echo "WORKSPACE=$WORKSPACE" - echo "JOB_NAME=$JOB_NAME" - echo "debug… end." RESULTS="$WORKSPACE/results" NODE_RESULTS="/var/lib/jenkins/jobs/$JOB_NAME/workspace/results" - RESULTS=$NODE_RESULTS # yes, this is redundant. let's see if this works. echo "$(date -u) - retrieving artifacts." set -x mkdir -p "$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" + ls -lad "$RESULTS" ls -la "$RESULTS" fi |