aboutsummaryrefslogtreecommitdiffstats
path: root/INSTALL/tasks.d
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2018-07-04 14:26:10 +0200
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2018-07-04 14:28:37 +0200
commit645092413275f7212d82ae4ccc401a0c318a8369 (patch)
tree2682f0a17ce4ab7eb229ee71d504d54f4c86b3d2 /INSTALL/tasks.d
parentdfdf89f2311db675bf3cfc1162572b19e8a681f1 (diff)
Add timeouts and retries to wget calls
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 <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'INSTALL/tasks.d')
-rw-r--r--INSTALL/tasks.d/30_yocto6
-rw-r--r--INSTALL/tasks.d/80_xds2
2 files changed, 5 insertions, 3 deletions
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
diff --git a/INSTALL/tasks.d/80_xds b/INSTALL/tasks.d/80_xds
index f3d9477..b3a709d 100644
--- a/INSTALL/tasks.d/80_xds
+++ b/INSTALL/tasks.d/80_xds
@@ -2,7 +2,7 @@
export DISTRO="Debian_8.0"
-wget -O - http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/app-Development/${DISTRO}/Release.key | apt-key add -
+wget -t 3 -T 60 -O - http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/app-Development/${DISTRO}/Release.key | apt-key add -
cat >> /etc/apt/sources.list.d/AGL.list <<EOF
deb http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/app-Development/${DISTRO}/ ./