diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-01 19:37:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-01 19:37:54 +0300 |
commit | 6b1f40c659dacf8b2bda8f8f96d39fe78e428887 (patch) | |
tree | acaa5631249f8da755b0ee928a602d6d7d2ba8a3 /tools | |
parent | ded470e8756ab9d9c35bdd9bd1f9c5cd9bfd945b (diff) | |
download | manaverse-6b1f40c659dacf8b2bda8f8f96d39fe78e428887.tar.gz manaverse-6b1f40c659dacf8b2bda8f8f96d39fe78e428887.tar.bz2 manaverse-6b1f40c659dacf8b2bda8f8f96d39fe78e428887.tar.xz manaverse-6b1f40c659dacf8b2bda8f8f96d39fe78e428887.zip |
In ci scripts add more protections from network/dns failures in apt get commands.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/ci/scripts/init.sh | 18 |
1 files changed, 17 insertions, 1 deletions
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 } |