3 # Copyright (c) 2016 Cisco and/or its affiliates.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at:
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
18 trap 'rm -f *.deb.md5; exit' EXIT
19 trap 'rm -f *.deb.md5;rm -f *.deb; exit' ERR
23 # Download the latest VPP and VPP plugin .deb packages
24 URL="https://nexus.fd.io/service/local/artifact/maven/content"
26 REPO="fd.io.${STREAM}.${OS}"
28 NSH_GROUP="io.fd.nsh_sfc"
29 VPP_ARTIFACTS="vpp vpp-dbg vpp-dev vpp-dpdk-dev vpp-dpdk-dkms vpp-lib vpp-plugins vpp-api-java"
30 NSH_ARTIFACTS="vpp-nsh-plugin"
32 if [ "${OS}" == "ubuntu1404" ]; then
33 OS="ubuntu.trusty.main"
36 elif [ "${OS}" == "ubuntu1604" ]; then
37 OS="ubuntu.xenial.main"
40 elif [ "${OS}" == "centos7" ]; then
46 for ART in ${VPP_ARTIFACTS}; do
47 for PAC in $PACKAGE; do
48 curl "${URL}?r=${REPO}&g=${VPP_GROUP}&a=${ART}&p=${PAC}&v=${VER}&c=${CLASS}" -O -J || exit
52 for ART in ${NSH_ARTIFACTS}; do
53 for PAC in $PACKAGE; do
54 curl "${URL}?r=${REPO}&g=${NSH_GROUP}&a=${ART}&p=${PAC}&v=${VER}&c=${CLASS}" -O -J || exit
59 echo " "${FILE} >> ${FILE}.md5
62 for MD5FILE in *.md5; do
63 md5sum -c ${MD5FILE} || exit