From 2cc12f02a38483ea88303f2682ae5d0535fdd576 Mon Sep 17 00:00:00 2001 From: Jan Gelety Date: Tue, 16 Aug 2016 15:25:23 +0200 Subject: 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 --- resources/tools/download_install_vpp_pkgs.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'resources/tools') 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" -- cgit 1.2.3-korg