From 8486afa9e52f96361cbf2c822258d6c5799c47d8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Apr 2016 03:12:43 +0300 Subject: Into ci scripts add another one try level if network error happend. --- tools/ci/scripts/init.sh | 10 +++++++++- 1 file changed, 9 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 949204de3..b588192da 100755 --- a/tools/ci/scripts/init.sh +++ b/tools/ci/scripts/init.sh @@ -22,8 +22,12 @@ function aptget_update { sleep 1s apt-get update if [ "$?" != 0 ]; then - sleep 1s + sleep 2s apt-get update + if [ "$?" != 0 ]; then + sleep 5s + apt-get update + fi fi fi } @@ -36,6 +40,10 @@ function aptget_install { apt-get -y -qq install $* if [ "$?" != 0 ]; then sleep 2s + if [ "$?" != 0 ]; then + sleep 5s + apt-get -y -qq install $* + fi apt-get -y -qq install $* fi fi -- cgit v1.2.3-60-g2f50