Merge "Reduce job log retention to 45 days"

This commit is contained in:
Jenkins 2017-03-03 16:46:13 +00:00 committed by Gerrit Code Review
commit 9fd23023f8
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ find -O3 /srv/static/logs/ -depth -not -name robots.txt -not -name lost+found \
\( -type f -mmin +10 -not -name \*\[.-\]gz -not -name \*\[._-\]\[zZ\] \
\( -name \*.txt -or -name \*.html -or -name tmp\* \) \
-exec gzip \{\} \; \) \
-o \( -type f -mtime +60 -execdir rm \{\} \; \) \
-o \( -type f -mtime +45 -execdir rm \{\} \; \) \
-o \( -type d -empty -mtime +1 -execdir rmdir {} \; \) \)
find -O3 /srv/static/docs-draft/ -depth -not -name lost+found \( \
\( -type f -mtime +21 -execdir rm \{\} \; \) \