CSIT-359: adapt vpp download script for usage with 1609 branch too 00/2400/4
authorJan Gelety <jgelety@cisco.com>
Tue, 16 Aug 2016 13:25:23 +0000 (15:25 +0200)
committerPeter Mikus <pmikus@cisco.com>
Thu, 25 Aug 2016 07:30:34 +0000 (07:30 +0000)
- 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>
resources/tools/download_install_vpp_pkgs.sh

index cb1f692..6da3f86 100755 (executable)
@@ -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"

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.