aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/download_install_vpp_pkgs.sh
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2016-08-16 15:25:23 +0200
committerPeter Mikus <pmikus@cisco.com>2016-08-25 07:30:34 +0000
commit2cc12f02a38483ea88303f2682ae5d0535fdd576 (patch)
tree4a01ce05a31fd35ced61b09ac58018b0407b8fee /resources/tools/download_install_vpp_pkgs.sh
parent19452714266d7683a294e1c817993ea51b805503 (diff)
CSIT-359: adapt vpp download script for usage with 1609 branch too
- script downloads the latest vpp release from Nexus repository of the branch based on data in VPP_REPO_URL file stored in csit directory; default repo is fd.io.master.ubuntu.trusty.main Change-Id: I254801d74fe2ef7f5e87e2c64f5619bef0709944 Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/tools/download_install_vpp_pkgs.sh')
-rwxr-xr-xresources/tools/download_install_vpp_pkgs.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/resources/tools/download_install_vpp_pkgs.sh b/resources/tools/download_install_vpp_pkgs.sh
index cb1f692c66..6da3f86736 100755
--- a/resources/tools/download_install_vpp_pkgs.sh
+++ b/resources/tools/download_install_vpp_pkgs.sh
@@ -20,7 +20,16 @@ trap 'rm -f *.deb.md5;rm -f *.deb; exit' ERR
URL="https://nexus.fd.io/service/local/artifact/maven/content"
VER="RELEASE"
-REPO="fd.io.master.ubuntu.trusty.main"
+
+VPP_REPO_URL_PATH="./VPP_REPO_URL"
+if [ -e "$VPP_REPO_URL_PATH" ]; then
+ VPP_REPO_URL=$(cat $VPP_REPO_URL_PATH)
+ REPO=$(echo ${VPP_REPO_URL#https://nexus.fd.io/content/repositories/})
+ REPO=$(echo ${REPO%/io/fd/vpp/})
+else
+ REPO='fd.io.master.ubuntu.trusty.main'
+fi
+
GROUP="io.fd.vpp"
ARTIFACTS="vpp vpp-dbg vpp-dev vpp-dpdk-dev vpp-dpdk-dkms vpp-lib vpp-plugins"
PACKAGE="deb deb.md5"