X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=jjb%2Fscripts%2Fsetup_vpp_ubuntu_docker_test.sh;h=548ac56601b69d77d1d0caddd0a249c13a0f9eb9;hb=bcb665faab09dc64e11d08a6efb7ed23c7f7a85a;hp=00d14c3ea142d9b74497ce9cbff70f58100eb031;hpb=2db30aa5a938494a710a89cab5943675c1143918;p=ci-management.git diff --git a/jjb/scripts/setup_vpp_ubuntu_docker_test.sh b/jjb/scripts/setup_vpp_ubuntu_docker_test.sh old mode 100644 new mode 100755 index 00d14c3ea..548ac5660 --- a/jjb/scripts/setup_vpp_ubuntu_docker_test.sh +++ b/jjb/scripts/setup_vpp_ubuntu_docker_test.sh @@ -1,7 +1,7 @@ #!/bin/bash ############################################################################## -# Copyright (c) 2018 The Linux Foundation and others. +# Copyright (c) 2021 The Linux Foundation and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public License v1.0 @@ -14,6 +14,7 @@ echo "---> jjb/scripts/setup_vpp_ubuntu_docker_test.sh" set -e -o pipefail OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g') +OS_VERSION_ID=$(grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g') if [ -n ${DOCKER_TEST} ] ; then # for 4 cores: @@ -29,17 +30,3 @@ if [ -n ${DOCKER_TEST} ] ; then sudo mount -o remount /dev/shm -o size=${MEM} || true echo "/dev/shm remounted with size='${MEM}'" fi - -# This will remove any previously installed external packages -# for old branch builds -if [ "${GERRIT_BRANCH}" != "master" ]; then - if [ "${OS_ID,,}" == "ubuntu" ] || [ "${OS_ID,,}" == "debian" ] ; then - [ -n "$(dpkg -l | grep vpp-ext-deps)" ] \ - && sudo apt-get -y remove vpp-ext-deps - elif [ "${OS_ID,,}" == "centos" ]; then - sudo yum -y erase vpp-ext-deps || true - sudo yum clean all || true - else - echo "ERROR: Unsupported OS '$OS_ID'!" - fi -fi