summaryrefslogtreecommitdiffstats
path: root/bin/chroot-installation.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-07 17:37:09 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-07 17:37:09 +0200
commit9e7fa862935de1f8dfabbebf3f8e6e4bb63ef684 (patch)
tree2819bbabfa5ea5bfdb7efb92b2887ebd3d7b20b4 /bin/chroot-installation.sh
parenta0eea0e2e743f0798668da61c5acc788e9478168 (diff)
downloadjenkins.debian.net-9e7fa862935de1f8dfabbebf3f8e6e4bb63ef684.tar.xz
sleep 5m, before retrying on failures
Diffstat (limited to 'bin/chroot-installation.sh')
-rwxr-xr-xbin/chroot-installation.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh
index 82f111bf..cb354124 100755
--- a/bin/chroot-installation.sh
+++ b/bin/chroot-installation.sh
@@ -59,8 +59,9 @@ execute_ctmpfile() {
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."
- echo "Trying to workaround temporarily failure fetching packages, trying again..."
+ echo "$(date -u) - Warning: Network problem detected."
+ echo "$(date -u) - trying to workaround temporarily failure fetching packages, sleeping 5min before trying again..."
+ sleep 5m
echo
sudo chroot $CHROOT_TARGET $TMPFILE
else