[Qa-jenkins-scm] [jenkins.debian.net] 01/01: use `rsync --delete` instead of `cp` while copying jenkins scripts so old files can be removed from the target directory
Holger Levsen
holger at layer-acht.org
Fri Jun 17 19:08:42 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 4c33d419b112e4c276456da5c054755e07dd400f
Author: Mattia Rizzolo <mattia at debian.org>
Date: Fri Jun 17 19:01:43 2016 +0000
use `rsync --delete` instead of `cp` while copying jenkins scripts so old files can be removed from the target directory
use -n for the first run, to see what would actually be removed
---
update_jdn.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/update_jdn.sh b/update_jdn.sh
index e99bf87..cc91ab5 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -445,7 +445,7 @@ explain "packages configured."
cd $BASEDIR
[ -d /srv/jenkins/features ] && sudo rm -rf /srv/jenkins/features
for dir in bin logparse cucumber live ; do
- sudo cp --preserve=mode,timestamps -r $dir /srv/jenkins/
+ sudo rsync -rpt --delete -n $dir /srv/jenkins/
sudo chown -R jenkins-adm.jenkins-adm /srv/jenkins/$dir
done
HOST_JOBS="hosts/$HOSTNAME/job-cfg"
--
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