diff options
author | Philip Hands <phil@hands.com> | 2016-10-04 10:19:55 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-10-04 10:43:10 +0200 |
commit | 45e5567e71db1fd9968cf3da1ec4cea41fb3a0b8 (patch) | |
tree | 61763064551bea93af2ef9d9ca86018d7a365828 | |
parent | 41c28adfbc8f0dd6f0742557f0afeeb2024c37d3 (diff) | |
download | jenkins.debian.net-45e5567e71db1fd9968cf3da1ec4cea41fb3a0b8.tar.xz |
discard old retrieved artifacts (with rsync --delete)
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | bin/jenkins_master_wrapper.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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" |