Configuring Ubuntu mirror 88/4988/3
authorVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Wed, 1 Feb 2017 19:47:27 +0000 (13:47 -0600)
committerVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Wed, 1 Feb 2017 20:59:40 +0000 (14:59 -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: I748db723c536eb96cb980c3921edf7be346a9b7a
Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
jenkins-scripts/basic_settings.sh

index 37ca057..7c44d36 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/ubuntu/ } }' /etc/apt/sources.list
     ;;
   *)
     # Do nothing on other distros for now