[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible Debian: notify the irc channel if the proxy is gone, which seems to be an i386 only problem which needs a bug report…

Holger Levsen holger at layer-acht.org
Mon Oct 17 08:49:05 UTC 2016


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 353173391ff28ab971ac2d0b91f35fbcaf31721c
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Oct 17 10:47:25 2016 +0200

    reproducible Debian: notify the irc channel if the proxy is gone, which seems to be an i386 only problem which needs a bug report…
---
 bin/reproducible_maintenance.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 08ccad4..c9be3d1 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -42,8 +42,15 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then
 fi
 
 # for Debian, first run some checks…
+set +e
+# check for working proxy
 echo "$(date -u) - testing whether the proxy works..."
 curl http://www.debian.org > /dev/null
+if [ $? -eq 1 ] ; then
+	irc_message debian-reproducible "Proxy is down for $HOSTNAME, please tell the jenkins admins to fix this. (sudo service squid3 restart)"
+	exit 1
+fi
+# check for correct MTU
 echo "$(date -u) - testing whether the network interfaces MTU is 1500..."
 if [ "$(ip link | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' | sort -u)" != "1500" ] ; then
 	ip link
@@ -51,7 +58,6 @@ if [ "$(ip link | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' | sort
 	irc_message debian-reproducible "$HOSTNAME has wrong MTU, please tell the jenkins admins to fix this.  (sudo ifconfig eth0 mtu 1500)"
 	exit 1
 fi
-set +e
 
 echo "$(date -u) - updating the schroots and pbuilder now..."
 # use host architecture (only)

-- 
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