From 45e5567e71db1fd9968cf3da1ec4cea41fb3a0b8 Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Tue, 4 Oct 2016 10:19:55 +0200 Subject: discard old retrieved artifacts (with rsync --delete) Signed-off-by: Holger Levsen --- bin/jenkins_master_wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/jenkins_master_wrapper.sh b/bin/jenkins_master_wrapper.sh index d46b89c8..ed9f3069 100755 --- a/bin/jenkins_master_wrapper.sh +++ b/bin/jenkins_master_wrapper.sh @@ -75,7 +75,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:$NODE_RESULTS/" "$RESULTS/" + rsync -r --delete -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" -- cgit v1.2.3-70-g09d2