]> git.apps.os.sepia.ceph.com Git - autobuild-ceph.git/commitdiff
Keep builds around for 4 days instead of 2.
authorSandon Van Ness <sandon@inktank.com>
Mon, 13 Jan 2014 23:56:40 +0000 (15:56 -0800)
committerSandon Van Ness <sandon@inktank.com>
Mon, 13 Jan 2014 23:56:40 +0000 (15:56 -0800)
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 <sandon@inktank.com>
run-real

index 35b09aea5d6f2a2ed6830298835ed62792558548..9de75285153c94cbca8ee1407a8d8a361e38235e 100755 (executable)
--- 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