X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fbash%2Ffunction%2Fartifacts.sh;h=6695b4d977796b6e58028a5dfec1d95a22e56b8e;hb=287406e3097d8409bcf12cba3eb3304f91857e90;hp=07a04c4b73330504cca4f24c10e15cfb25fba7fd;hpb=3bd92c7d17d20cf949c20e5d0324323e5c612631;p=csit.git diff --git a/resources/libraries/bash/function/artifacts.sh b/resources/libraries/bash/function/artifacts.sh index 07a04c4b73..6695b4d977 100644 --- a/resources/libraries/bash/function/artifacts.sh +++ b/resources/libraries/bash/function/artifacts.sh @@ -18,6 +18,8 @@ set -exuo pipefail function download_artifacts () { # Get and/or install VPP artifacts from packagecloud.io. # + # Variables read: + # - CSIT_DIR - Path to existing root of local CSIT git repository. # Variables set: # - REPO_URL - FD.io Packagecloud repository. @@ -27,7 +29,7 @@ function download_artifacts () { die "Get OS release failed." } - repo_url_path="./VPP_REPO_URL" + repo_url_path="${CSIT_DIR}/VPP_REPO_URL" if [ -e "${repo_url_path}" ]; then REPO_URL="$(<${repo_url_path})" || { die "Read repo URL from ${repo_url_path} failed." @@ -53,7 +55,6 @@ function download_ubuntu_artifacts () { # Variables read: # - REPO_URL - FD.io Packagecloud repository. # - VPP_VERSION - VPP version. - # - DKMS_VERSION - DKMS version. # - INSTALL - If install packages or download only. Default: download set -exuo pipefail @@ -63,18 +64,12 @@ function download_ubuntu_artifacts () { } # If version is set we will add suffix. artifacts=() - vpp=(vpp vpp-dbg vpp-dev vpp-lib vpp-plugins) + vpp=(vpp vpp-dbg vpp-dev vpp-lib vpp-plugins vpp-api-python) if [ -z "${VPP_VERSION-}" ]; then artifacts+=(${vpp[@]}) else artifacts+=(${vpp[@]/%/=${VPP_VERSION-}}) fi - dkms=(vpp-ext-deps) - if [ -z "${DKMS_VERSION-}" ]; then - artifacts+=(${dkms[@]}) - else - artifacts+=(${dkms[@]/%/=${DKMS_VERSION-}}) - fi if [ "${INSTALL:-false}" = true ]; then sudo apt-get -y install "${artifacts[@]}" || { @@ -102,7 +97,7 @@ function download_centos_artifacts () { } # If version is set we will add suffix. artifacts=() - vpp=(vpp vpp-selinux-policy vpp-devel vpp-lib vpp-plugins) + vpp=(vpp vpp-selinux-policy vpp-devel vpp-lib vpp-plugins vpp-api-python) if [ -z "${VPP_VERSION-}" ]; then artifacts+=(${vpp[@]}) else