diff options
-rwxr-xr-x | bin/reproducible_build_service.sh | 3 | ||||
-rwxr-xr-x | bin/reproducible_maintenance.sh | 14 |
2 files changed, 15 insertions, 2 deletions
diff --git a/bin/reproducible_build_service.sh b/bin/reproducible_build_service.sh index bd37621f..0519b680 100755 --- a/bin/reproducible_build_service.sh +++ b/bin/reproducible_build_service.sh @@ -44,8 +44,7 @@ choose_node() { NODE1="" NODE2="" ARCH=i386 -# let's start with two workers only… -for i in $(seq 1 2) ; do +for i in $(seq 1 24) ; do # sleep up to 2.3 seconds (additionally to the random sleep reproducible_build.sh does anyway) /bin/sleep $(echo "scale=1 ; $(shuf -i 1-23 -n 1)/10" | bc ) diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 1c2076ab..066f968c 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -206,6 +206,20 @@ if [ -d /srv/workspace/pbuilder/ ] ; then fi fi +# delete build services logfiles +if [ -d /var/lib/jenkins/userContent/reproducible/debian/build_service/ ] ; then + echo "$(date -u) - Deleting pbuilder build directories, older than 3 days." + OLDSTUFF=$(find /var/lib/jenkins/userContent/reproducible/debian/build_service/ -maxdepth 2 -regex '.*/[0-9]+' -type d -mtime +2 -exec ls -lad {} \; || true) + if [ ! -z "$OLDSTUFF" ] ; then + echo + echo "Old pbuilder build directories found in /var/lib/jenkins/userContent/reproducible/debian/build_service/" + echo -n "$OLDSTUFF" + find /var/lib/jenkins/userContent/reproducible/debian/build_service/ -maxdepth 2 -regex '.*/[0-9]+' -type d -mtime +2 -exec sudo rm -rf --one-file-system {} \; || true + echo + DIRTY=true + fi +fi + # remove old and unused schroot sessions echo "$(date -u) - Removing unused schroot sessions." cleanup_schroot_sessions |