From 6b1f40c659dacf8b2bda8f8f96d39fe78e428887 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 1 May 2016 19:37:54 +0300 Subject: In ci scripts add more protections from network/dns failures in apt get commands. --- tools/ci/scripts/init.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'tools/ci/scripts/init.sh') diff --git a/tools/ci/scripts/init.sh b/tools/ci/scripts/init.sh index 8cde42088..64e11f3b0 100755 --- a/tools/ci/scripts/init.sh +++ b/tools/ci/scripts/init.sh @@ -29,6 +29,14 @@ function aptget_update { if [ "$?" != 0 ]; then sleep 5s apt-get update + if [ "$?" != 0 ]; then + sleep 10s + apt-get update + if [ "$?" != 0 ]; then + sleep 15s + apt-get update + fi + fi fi fi fi @@ -42,11 +50,19 @@ function aptget_install { apt-get -y -qq install $* if [ "$?" != 0 ]; then sleep 2s + apt-get -y -qq install $* if [ "$?" != 0 ]; then sleep 5s apt-get -y -qq install $* + if [ "$?" != 0 ]; then + sleep 10s + apt-get -y -qq install $* + if [ "$?" != 0 ]; then + sleep 15s + apt-get -y -qq install $* + fi + fi fi - apt-get -y -qq install $* fi fi } -- cgit v1.2.3-60-g2f50