diff options
author | Jan Gelety <jgelety@cisco.com> | 2018-04-24 11:56:03 +0200 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2018-04-24 14:11:52 +0200 |
commit | 34d8447add5ac6708b97f93decb7bc74df433199 (patch) | |
tree | 7a230c94a62cd7236911af1de0a8770e74757d2b /resources | |
parent | f5adaa688995d7f78838ad90be54f0dc0cefdd8a (diff) |
Use stable/1804 vpp builds for NSH_SFC tests
Change-Id: Iaaf1af31fa526108ebdcf3610bca76346d186183
Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources')
-rwxr-xr-x | resources/tools/scripts/download_nsh_sfc_pkgs.sh | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/resources/tools/scripts/download_nsh_sfc_pkgs.sh b/resources/tools/scripts/download_nsh_sfc_pkgs.sh index 2261f084e5..d7a1abc403 100755 --- a/resources/tools/scripts/download_nsh_sfc_pkgs.sh +++ b/resources/tools/scripts/download_nsh_sfc_pkgs.sh @@ -15,9 +15,6 @@ set -ex -trap 'rm -f *.deb.md5; exit' EXIT -trap 'rm -f *.deb.md5;rm -f *.deb; exit' ERR - STREAM=$1 OS=$2 @@ -25,24 +22,29 @@ URL="https://nexus.fd.io/service/local/artifact/maven/content" VER="RELEASE" GROUP="io.fd.vpp" NSH_GROUP="io.fd.nsh_sfc" -VPP_ARTIFACTS="vpp vpp-dbg vpp-dev vpp-dpdk-dkms vpp-lib vpp-plugins vpp-api-java vpp-api-python vpp-api-lua" NSH_ARTIFACTS="vpp-nsh-plugin" -if [ "${OS}" == "ubuntu1404" ]; then - OS="ubuntu.trusty.main" - PACKAGE="deb deb.md5" - CLASS="deb" -elif [ "${OS}" == "ubuntu1604" ]; then - OS="ubuntu.xenial.main" +if [ "${OS}" == "ubuntu1604" ]; then + trap 'rm -f *.deb.md5; exit' EXIT + trap 'rm -f *.deb.md5;rm -f *.deb; exit' ERR + REPO_OS="ubuntu.xenial.main" + VPP_ARTIFACTS="vpp vpp-selinux-policy vpp-devel vpp-lib vpp-plugins vpp-api-java vpp-api-python vpp-api-lua" PACKAGE="deb deb.md5" CLASS="deb" + FILES="*.deb" + MD5FILES="*.deb.md5" elif [ "${OS}" == "centos7" ]; then - OS="centos7" + trap 'rm -f *.rpm.md5; exit' EXIT + trap 'rm -f *.rpm.md5;rm -f *.rpm; exit' ERR + REPO_OS="centos7" + VPP_ARTIFACTS="vpp vpp-dbg vpp-dev vpp-dpdk-dkms vpp-lib vpp-plugins vpp-api-java vpp-api-python vpp-api-lua" PACKAGE="rpm rpm.md5" - CLASS="rpm" + CLASS="" + FILES="*.rpm" + MD5FILES="*.rpm.md5" fi -REPO="fd.io.${STREAM}.${OS}" +REPO="fd.io.${STREAM}.${REPO_OS}" for ART in ${VPP_ARTIFACTS}; do for PAC in $PACKAGE; do @@ -56,10 +58,10 @@ for ART in ${NSH_ARTIFACTS}; do done done -for FILE in *.deb; do +for FILE in ${FILES}; do echo " "${FILE} >> ${FILE}.md5 done -for MD5FILE in *.md5; do +for MD5FILE in ${MD5FILES}; do md5sum -c ${MD5FILE} || exit done |