From 97b7155b764af803af113a35e5f709d16ed9841a Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Thu, 29 Sep 2016 00:04:40 +0200 Subject: Preclone a sstate-cache folder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Therefore do the host hack earlier. Change-Id: Ia0b2f67c42fd0f864746c3b1af2af2b7bbfa5c00 Signed-off-by: Jan-Simon Möller --- jenkins-scripts/basic_settings.sh | 8 -------- packer/provision/agl_dependencies.sh | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/jenkins-scripts/basic_settings.sh b/jenkins-scripts/basic_settings.sh index 2b229199..c4def5e9 100755 --- a/jenkins-scripts/basic_settings.sh +++ b/jenkins-scripts/basic_settings.sh @@ -50,12 +50,4 @@ cat < /etc/ssh/ssh_known_hosts vex-yul-agl-download.ci,10.30.72.8 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNaxEOWbShvqQWqS17c123Ct8tBLBVVOPTNYpZSmwd1UKVQi9cF0QMOU7Rc479bHwzuLscvmohpGh2kP0CmHvAo= EOKNOWN - -cat <> /etc/hosts - -# workaround for download-new -199.19.213.77 download-new.automotivelinux.org - -EOFHOSTS - # vim: sw=2 ts=2 sts=2 et : diff --git a/packer/provision/agl_dependencies.sh b/packer/provision/agl_dependencies.sh index ca2a0181..d71c9e58 100644 --- a/packer/provision/agl_dependencies.sh +++ b/packer/provision/agl_dependencies.sh @@ -11,9 +11,27 @@ DEBIAN_FRONTEND=noninteractive apt-get update && \ echo "dash dash/sh boolean false" | debconf-set-selections DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash +cat <> /etc/hosts + +# workaround for download-new +199.19.213.77 download-new.automotivelinux.org +199.19.213.77 download.automotivelinux.org + +EOFHOSTS + + # Preclone the gerrit repos for speed (use with --reference=/opt/AGL/preclone) mkdir -p /opt/AGL/preclone cd /opt/AGL/preclone repo init -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo repo sync cd + +#mirror sstate-cache into /opt/AGL/sstate-mirror +mkdir -p /opt/AGL/sstate-mirror +cd /opt/AGL/sstate-mirror +wget --mirror -np -nH --convert-links "https://download-new.automotivelinux.org/sstate-mirror/" -A siginfo -A tgz --cut-dirs=1 +ls +ls * +cd + -- cgit 1.2.3-korg