Code Review
/
ci-management.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Fix HC2VPP linting"
[ci-management.git]
/
jenkins-scripts
/
basic_settings.sh
diff --git
a/jenkins-scripts/basic_settings.sh
b/jenkins-scripts/basic_settings.sh
index
37ca057
..
56ae20d
100755
(executable)
--- a/
jenkins-scripts/basic_settings.sh
+++ b/
jenkins-scripts/basic_settings.sh
@@
-11,12
+11,14
@@
case "$(facter operatingsystem)" in
Ubuntu)
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
# 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
;;
*)
# Do nothing on other distros for now