########################################################################## # Cleanup for Jakarta Commons nightly builds # # # # Deletes distributions, snapshots and logs more than a week old # # # ########################################################################## #------------------------------------------------------------------------- # Delete old tarballs/zips from nightly build location #------------------------------------------------------------------------- 07 07 * * * find /www/people.apache.org/builds/commons/nightly -mtime +7 -exec rm \{\} \; >/dev/null 2>&1 #------------------------------------------------------------------------- # Delete old snapshots from maven 1 snapshot repo #------------------------------------------------------------------------- 17 07 * * * find /www/people.apache.org/repo/m1-snapshot-repository/commons-*/*/commons-*-2006* -mtime +7 -user psteitz -exec rm \{\} \; >/dev/null 2>&1 #------------------------------------------------------------------------- # Delete old snapshots from maven 2 snapshot repo #------------------------------------------------------------------------- 27 07 * * * find /www/people.apache.org/repo/m2-snapshot-repository/org/apache/commons -mtime +7 -user psteitz -exec rm \{\} \; >/dev/null 2>&1 #------------------------------------------------------------------------- # Remove old log files #------------------------------------------------------------------------- 37 07 * * * find /home/psteitz/public_html/commons-nightlies -mtime +7 -type d -exec rm -rf \{\} \; >/dev/null 2>&1