Replace the root command with user mode
[ci-management.git] / jjb / iec / iec-compass-build.sh
index 64cea9e..2014b80 100755 (executable)
@@ -7,6 +7,7 @@ git clone https://github.com/opnfv/compass4nfv.git
 cd compass4nfv
 
 COMPASS_WORK_DIR=$WORKSPACE/../compass-work
+
 mkdir -p $COMPASS_WORK_DIR
 ln -s $COMPASS_WORK_DIR work
 
@@ -14,6 +15,8 @@ sudo docker rm -f `docker ps | grep compass | cut -f1 -d' '` || true
 
 curl -s http://people.linaro.org/~yibo.cai/compass/compass4nfv-arm64-fixup.sh | bash || true
 
+sed -i "s/sudo pip install pyyaml/python -m pip install pyyaml --user/g" build.sh
+
 ./build.sh
 
 exit 0