Commit e71e3cf1 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian live-build: cleanup the same way we cleanup the rest



Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent f53a53bf
......@@ -126,7 +126,8 @@ OLDSTUFF=$(find $REP_RESULTS -maxdepth 1 -type d -mtime +0 -name "live-build-*"
if [ ! -z "$OLDSTUFF" ] ; then
echo
echo "Old temp directories for live-build found in $REP_RESULTS"
find $REP_RESULTS -maxdepth 1 -type d -mtime +0 -name "live-build-*" -exec sudo rm -rv --one-file-system {} \; || true
echo -n "$OLDSTUFF"
find $REP_RESULTS -maxdepth 1 -type d -mtime +0 -name "live-build-*" -exec sudo rm -rf --one-file-system {} \; || true
echo "These old temp directories for live-build have been deleted."
echo
DIRTY=true
......@@ -136,7 +137,8 @@ OLDSTUFF=$(find /srv/workspace/live-build -maxdepth 1 -type d -mtime +0 -name "*
if [ ! -z "$OLDSTUFF" ] ; then
echo
echo "Old temp workspace directories for live-build found in /srv/workspace/live-build"
find /srv/workspace/live-build -maxdepth 1 -type d -mtime +0 -name "*.*" -exec sudo rm -rfv --one-file-system {} \; || true
echo -n "$OLDSTUFF"
find /srv/workspace/live-build -maxdepth 1 -type d -mtime +0 -name "*.*" -exec sudo rm -rf --one-file-system {} \; || true
echo "These old temp workspace directories have been deleted."
echo
DIRTY=true
......
......@@ -22,6 +22,7 @@ jenkins ALL= \
/bin/rm -rf --one-file-system /chroots/*, \
/bin/rm -rf --one-file-system /schroots/*, \
/bin/rm -rf --one-file-system /srv/workspace/pbuilder/*, \
/bin/rm -rf --one-file-system /srv/workspace/live-build*, \
/bin/rm -rf --one-file-system /var/lib/sbuild/build/*, \
/bin/rm -rf --one-file-system /var/lib/schroot/union/*, \
/bin/rm -rf --one-file-system /tmp/*, \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment