Configure Ubuntu mirror 90/4990/1
authorVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Wed, 1 Feb 2017 22:22:25 +0000 (16:22 -0600)
committerVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Wed, 1 Feb 2017 22:22:25 +0000 (16:22 -0600)
The Vexxhost mirror continues to cause build failures due to 404 errors.
We are configuring the Ubuntu mirror to point to a more stable mirror.

Change-Id: I700d1b72d3df993996f7d64cec61c5e9baf90f8c
Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
jenkins-scripts/basic_settings.sh

index 37ca057..7790496 100755 (executable)
@@ -17,6 +17,9 @@ case "$(facter operatingsystem)" in
 
     # attach to the fd.io.dev apt repo
     echo 'deb http://nexus.fd.io/content/repositories/fd.io.dev/ ./' >> /etc/apt/sources.list
+
+    # Configure Ubuntu mirror
+    perl -pi -e 'unless(m{(security|fd\.io)}){ s{://[^/]+/}{://ca.archive.ubuntu.com/} }' /etc/apt/sources.list
     ;;
   *)
     # Do nothing on other distros for now