From 8634f957113ab2596e58bf8c4c2a3708b74dd6a5 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 26 Apr 2017 12:55:20 +0200 Subject: reproducible Debian: run 24 i386 builders again… MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Holger Levsen --- bin/reproducible_build_service.sh | 3 +-- bin/reproducible_maintenance.sh | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2