Merge "Fix HC2VPP linting"
[ci-management.git] / jenkins-scripts / basic_settings.sh
index 37ca057..56ae20d 100755 (executable)
 
 case "$(facter operatingsystem)" in
   Ubuntu)
-    apt-get update
     # make sure that the ca-certs are properly updated
     /usr/sbin/update-ca-certificates
 
     # attach to the fd.io.dev apt repo
-    echo 'deb http://nexus.fd.io/content/repositories/fd.io.dev/ ./' >> /etc/apt/sources.list
+#    echo 'deb http://nexus.fd.io/content/repositories/fd.io.dev/ ./' >> /etc/apt/sources.list
+
+    # Configure Ubuntu mirror
+    perl -pi -e 'unless(m{fd\.io}){ s{://[^/]+/}{://ca.archive.ubuntu.com/} }' /etc/apt/sources.list
     ;;
   *)
     # Do nothing on other distros for now