From 645092413275f7212d82ae4ccc401a0c318a8369 Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Wed, 4 Jul 2018 14:26:10 +0200 Subject: Add timeouts and retries to wget calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We have some connection issues in Jenkins and thus add retries and timeouts to wget. Change-Id: I49fbde9ab2e86fa0760635b74d5e7e6010f4abb6 Signed-off-by: Jan-Simon Möller --- INSTALL/tasks.d/30_yocto | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'INSTALL/tasks.d/30_yocto') diff --git a/INSTALL/tasks.d/30_yocto b/INSTALL/tasks.d/30_yocto index bda9332..0edb311 100644 --- a/INSTALL/tasks.d/30_yocto +++ b/INSTALL/tasks.d/30_yocto @@ -1,4 +1,6 @@ #!/bin/bash + +set -e # install prereqs for bitbake (Yocto mega-manual) # http://www.yoctoproject.org/docs/2.2/mega-manual/mega-manual.html#detailed-supported-distros @@ -18,7 +20,7 @@ apt-get install -y git-review apt-get install -y libncurses5-dev # copy meta init script in ~devel/bin: -wget -O $DEVUSER_HOME/bin/prepare_meta https://raw.githubusercontent.com/iotbzh/agl-manifest/master/prepare_meta +wget -t 3 -T 60 -O $DEVUSER_HOME/bin/prepare_meta https://raw.githubusercontent.com/iotbzh/agl-manifest/master/prepare_meta chmod +x $DEVUSER_HOME/bin/* # for image creation and compression @@ -36,6 +38,6 @@ for x in $INSTDIR/tools/scripts_yocto/*; do done # grab and install repo tool -wget -O /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo +wget -t 3 -T 60 -O /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo chmod a+x /usr/local/bin/repo -- cgit