diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-03 14:37:58 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-03 14:37:58 +0200 |
commit | f83266c124b31810bfa674f54a87511fbec07512 (patch) | |
tree | a0f9881039c7b2477572c87e50778c7ad968bf3b /bin | |
parent | afb0bbbe627230be1a8313e51c533e0fe56c79a8 (diff) | |
download | jenkins.debian.net-f83266c124b31810bfa674f54a87511fbec07512.tar.xz |
detect more reasons for apt failing
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/chroot-installation.sh | 2 | ||||
-rwxr-xr-x | bin/reproducible_maintenance.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh index 370f7ed4..82f111bf 100755 --- a/bin/chroot-installation.sh +++ b/bin/chroot-installation.sh @@ -56,7 +56,7 @@ execute_ctmpfile() { (sudo chroot $CHROOT_TARGET $TMPFILE 2>&1 | tee $TMPLOG) || true RESULT=$(grep "xxxxxSUCCESSxxxxx" $TMPLOG || true) if [ -z "$RESULT" ] ; then - RESULT=$(egrep "Failed to fetch.*(Unable to connect to|Connection failed)" $TMPLOG || true) + RESULT=$(egrep "Failed to fetch.*(Unable to connect to|Connection failed|Size mismatch|Cannot initiate the connection to|Bad Gateway)" $TMPLOG || true) if [ ! -z "$RESULT" ] ; then echo echo "Warning: Network problem detected." diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 7b3ae8bc..d8883ffb 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -76,7 +76,7 @@ if [ "$HOSTNAME" = "jenkins" ] ; then # only grep through the last 5h (300 minutes) of builds... # (ignore "*None.rbuild.log" because these are build which were just started) # this job runs every 4h - FAILED_BUILDS=$(find $BASE/rbuild -type f ! -name "*None.rbuild.log" ! -mmin +300 -exec zgrep -l -E 'E: Failed to fetch.*(Connection failed|Size mismatch|Cannot initiate the connection to|Bad Gateway)' {} \; || true) + FAILED_BUILDS=$(find $BASE/rbuild -type f ! -name "*None.rbuild.log" ! -mmin +300 -exec zgrep -l -E 'E: Failed to fetch.*(Unable to connect to|Connection failed|Size mismatch|Cannot initiate the connection to|Bad Gateway)' {} \; || true) if [ ! -z "$FAILED_BUILDS" ] ; then echo echo "The following builds have failed due to network problems and will be rescheduled now:" |