[Qa-jenkins-scm] [jenkins.debian.net] 01/02: discard old retrieved artifacts (with rsync --delete)
Holger Levsen
holger at layer-acht.org
Tue Oct 4 08:44:03 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 45e5567e71db1fd9968cf3da1ec4cea41fb3a0b8
Author: Philip Hands <phil at hands.com>
Date: Tue Oct 4 10:19:55 2016 +0200
discard old retrieved artifacts (with rsync --delete)
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/jenkins_master_wrapper.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/jenkins_master_wrapper.sh b/bin/jenkins_master_wrapper.sh
index d46b89c..ed9f306 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"
--
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