5 #Checking python-pip software status. If failed, reinstall it.
14 #Check command result, if failed, reinstall the pip
15 if [ ${CHECK_PIP_SUDO} -ne 0 ] || [ ${CHECK_PIP_USER} -ne 0 ]; then
17 sudo python -m pip uninstall -y pip
18 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
19 sudo python get-pip.py pip
27 git checkout ${VERSION}
28 sed -i 's:opnfv/:cyb70289/:' build/build-aarch64.yaml
33 echo "begin build compass"
34 git clone https://github.com/opnfv/compass4nfv.git
38 if [ "$(uname -m)" = 'aarch64' ]; then
39 echo "Checkout compass4nfv to Arm64 version"
43 COMPASS_WORK_DIR=$WORKSPACE/../compass-work
45 mkdir -p $COMPASS_WORK_DIR
46 ln -s $COMPASS_WORK_DIR work
48 sudo docker rm -f `sudo docker ps | grep compass | cut -f1 -d' '` || true
50 curl -sL http://people.linaro.org/~yibo.cai/compass/compass4nfv-arm64-fixup.sh | bash || true
54 # Fix permissions so we can archive log files before pushing to Nexus
55 sudo chown $(id -u):$(id -g) -R "${WORKSPACE}"