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
25 sudo docker rm -f `sudo docker ps | grep compass | cut -f1 -d' '` || true
30 echo "Clone compass4nfv"
31 git clone -b CompassinAkrainoIEC https://github.com/iecedge/compass4nfv.git
35 COMPASS_WORK_DIR=$WORKSPACE/../compass-work
37 mkdir -p $COMPASS_WORK_DIR
38 ln -snf $COMPASS_WORK_DIR work
48 # Fix permissions so we can archive log files before pushing to Nexus
49 sudo chown $(id -u):$(id -g) -R "${WORKSPACE}"