diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-04-26 12:55:20 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-04-26 12:55:20 +0200 |
commit | 8634f957113ab2596e58bf8c4c2a3708b74dd6a5 (patch) | |
tree | bd525fae0fa301d36d21ea2de5b96efec52aea52 | |
parent | 6448e85c7d7e36f78443591e76c33bb9446ceb36 (diff) | |
download | jenkins.debian.net-8634f957113ab2596e58bf8c4c2a3708b74dd6a5.tar.xz |
reproducible Debian: run 24 i386 builders again…
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-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 |