From: Jingzhao.Ni Date: Mon, 27 May 2019 12:31:16 +0000 (+0800) Subject: Replace the root command with user mode X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=commitdiff_plain;h=67927999de6f8c75dc21059b3935279913855931 Replace the root command with user mode The "sudo pip install" command cause some error when deploying compass. So replace the "sudo pip install" with the "python -m pip install pyyaml" command. Signed-off-by: Jingzhao.Ni Change-Id: Ia86e5a8b1c75e6367d044e94e356f7d1a855418e --- diff --git a/jjb/iec/iec-compass-build.sh b/jjb/iec/iec-compass-build.sh index 64cea9e..2014b80 100755 --- a/jjb/iec/iec-compass-build.sh +++ b/jjb/iec/iec-compass-build.sh @@ -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