From: Sandon Van Ness Date: Mon, 13 Jan 2014 23:56:40 +0000 (-0800) Subject: Keep builds around for 4 days instead of 2. X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0842afea3da2354db8ed4ed381e445d649a13e25;p=autobuild-ceph.git Keep builds around for 4 days instead of 2. Gitbuilder-archive should have enough space and this will help jobs to complete running if they get delayed over the weekend. Signed-off-by: Sandon Van Ness --- diff --git a/run-real b/run-real index 35b09ae..9de7528 100755 --- a/run-real +++ b/run-real @@ -75,10 +75,10 @@ if [ -n "$target" ]; then rsync -auv --delete -e "ssh -i ../rsync-key -o StrictHostKeyChecking=no" \ "$REF_OUTDIR/" $target/ref - # touch any active sha1 dirs, and remove any older than 2 days. + # touch any active sha1 dirs, and remove any older than 4 days. echo "removing old builds" ssh -i ../rsync-key -o StrictHostKeyChecking=no $target_host \ touch $target_dir/ref/\*/. \; \ - find $target_dir/sha1 -mindepth 1 -maxdepth 1 -mtime +1 \| \ + find $target_dir/sha1 -mindepth 1 -maxdepth 1 -mtime +3 \| \ xargs --no-run-if-empty -- rm -rfv -- fi