diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-07 17:37:09 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-07 17:37:09 +0200 |
commit | 9e7fa862935de1f8dfabbebf3f8e6e4bb63ef684 (patch) | |
tree | 2819bbabfa5ea5bfdb7efb92b2887ebd3d7b20b4 /bin | |
parent | a0eea0e2e743f0798668da61c5acc788e9478168 (diff) | |
download | jenkins.debian.net-9e7fa862935de1f8dfabbebf3f8e6e4bb63ef684.tar.xz |
sleep 5m, before retrying on failures
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/chroot-installation.sh | 5 |
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 |