aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xresources/tools/scripts/download_hc_build_pkgs.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/resources/tools/scripts/download_hc_build_pkgs.sh b/resources/tools/scripts/download_hc_build_pkgs.sh
index 15c3d5c9da..48ef1eb4b0 100755
--- a/resources/tools/scripts/download_hc_build_pkgs.sh
+++ b/resources/tools/scripts/download_hc_build_pkgs.sh
@@ -18,9 +18,7 @@ set -ex
STREAM=$1
OS=$2
-# Download the latest VPP and VPP plugin .deb packages
URL="https://nexus.fd.io/service/local/artifact/maven/content"
-VER="RELEASE"
VPP_GROUP="io.fd.vpp"
# TODO(CSIT-994): reenable NSH
# NSH_GROUP="io.fd.nsh_sfc"
@@ -39,6 +37,16 @@ fi
REPO="fd.io.${STREAM}.${OS}"
+# Use vpp packages based on vpp-version file from hc2vpp project
+VER=`../vpp-version`
+if [ "${VER}" != 'RELEASE' ]; then
+ if [ "${OS}" == "centos7" ]; then
+ VER="${VER}.x86_64"
+ else
+ VER="${VER}_amd64"
+ fi
+fi
+
for ART in ${VPP_ARTIFACTS}; do
for PAC in ${PACKAGE}; do
curl "${URL}?r=${REPO}&g=${VPP_GROUP}&a=${ART}&p=${PAC}&v=${VER}&c=${CLASS}" -O -J || exit