Replace the root command with user mode
[ci-management.git] / jjb / iec / iec-compass-build.sh
1 #!/bin/bash
2 set -e
3
4 echo "begin build compass"
5 git clone https://github.com/opnfv/compass4nfv.git
6
7 cd compass4nfv
8
9 COMPASS_WORK_DIR=$WORKSPACE/../compass-work
10
11 mkdir -p $COMPASS_WORK_DIR
12 ln -s $COMPASS_WORK_DIR work
13
14 sudo docker rm -f `docker ps | grep compass | cut -f1 -d' '` || true
15
16 curl -s http://people.linaro.org/~yibo.cai/compass/compass4nfv-arm64-fixup.sh | bash || true
17
18 sed -i "s/sudo pip install pyyaml/python -m pip install pyyaml --user/g" build.sh
19
20 ./build.sh
21
22 exit 0