diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-02-17 12:50:18 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-02-17 12:50:18 +0100 |
commit | 9f9767e0ce3f8692cb263ae04b534800f107cc1b (patch) | |
tree | e5a8b5bef1d33579baabbfb825f41be5e68c0d30 /bin | |
parent | ecc74ecf666041d0a35ae7a4cad1a89ba15dbeb8 (diff) | |
download | jenkins.debian.net-9f9767e0ce3f8692cb263ae04b534800f107cc1b.tar.xz |
reproducible: discard jenkins html logs of builder jobs
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_maintainance.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh index f5dea7d8..98187496 100755 --- a/bin/reproducible_maintainance.sh +++ b/bin/reproducible_maintainance.sh @@ -36,6 +36,16 @@ fi # provide copy for external backups cp -v $PACKAGES_DB /var/lib/jenkins/userContent/ +# delete jenkins html logs from reproducible_builder_* jobs as they are mostly redundant +# (they only provide the extended value of parsed console output, which we dont need here.) +OLDSTUFF=$(find /var/lib/jenkins/jobs/reproducible_builder_* -maxdepth 3 -mtime +0 -name log_content.html -exec rm -v {} \;) +if [ ! -z "$OLDSTUFF" ] ; then + echo + echo "Cleaning jenkins html logs:" + echo "$OLDSTUFF" + echo +fi + # delete old temp directories OLDSTUFF=$(find $REP_RESULTS -maxdepth 1 -type d -name "tmp.*" -mtime +2 -exec ls -lad {} \;) if [ ! -z "$OLDSTUFF" ] ; then @@ -52,7 +62,7 @@ OLDSTUFF=$(find /schroots/ -maxdepth 1 -type d -name "reproducible*" -mtime +2 - if [ ! -z "$OLDSTUFF" ] ; then echo echo "Warning: old schroots found in /schroots" - echo $OLDSTUFF + echo "$OLDSTUFF" echo "TODO: automatically delete them, please cleanup manually for now..." echo DIRTY=true |