diff options
-rw-r--r-- | jjb/hc2vpp/include-raw-hc2vpp-integration-prebuild.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/jjb/hc2vpp/include-raw-hc2vpp-integration-prebuild.sh b/jjb/hc2vpp/include-raw-hc2vpp-integration-prebuild.sh index 1e54750b2..dc4ca43de 100644 --- a/jjb/hc2vpp/include-raw-hc2vpp-integration-prebuild.sh +++ b/jjb/hc2vpp/include-raw-hc2vpp-integration-prebuild.sh @@ -21,6 +21,14 @@ echo DISTRIB_RELEASE: ${DISTRIB_RELEASE} echo DISTRIB_CODENAME: ${DISTRIB_CODENAME} echo DISTRIB_DESCRIPTION: ${DISTRIB_DESCRIPTION} +if [[ "$VERSION" == *"-release" ]]; then + # at the time when HC2VPP release packages are being build, + # jvpp release packages are already promoted to release repository. + # Therefore we need to switch to release repository in order to download + # correct jvpp package versions + STREAM="release" +fi + echo "----- DOWNLOADING PACKAGES -----" if ! [[ -z ${REPO_NAME} ]]; then REPO_URL="https://packagecloud.io/fdio/${STREAM}" @@ -30,6 +38,10 @@ if ! [[ -z ${REPO_NAME} ]]; then echo "Deleting: /etc/apt/sources.list.d/99fd.io.list" sudo rm /etc/apt/sources.list.d/99fd.io.list fi + if ! [[ "${STREAM}" == "master" ]]; then + echo "stable branch - clearing all fdio repos. new one will be installed." + sudo rm -f /etc/apt/sources.list.d/fdio_*.list + fi curl -s https://packagecloud.io/install/repositories/fdio/${STREAM}/script.deb.sh | sudo bash if [[ "${VERSION}" != 'RELEASE' ]]; then # download specific version if set |