[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Debian: run 24 i386 builders again…
Holger Levsen
holger at layer-acht.org
Wed Apr 26 10:55:31 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 8634f957113ab2596e58bf8c4c2a3708b74dd6a5
Author: Holger Levsen <holger at layer-acht.org>
Date: Wed Apr 26 12:55:20 2017 +0200
reproducible Debian: run 24 i386 builders again…
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_build_service.sh | 3 +--
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 bd37621..0519b68 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 1c2076a..066f968 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list