X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fiec%2Fiec-compass-build.sh;h=de560a645c762b320b381ee51181557215500322;hb=8688d25df59d4ad2aa60daa42b19e1dbeb58ebb1;hp=b4032306757fbf8282cd39480de2465c6543933c;hpb=3f07b7f362fcac175e24d1761ed2bbc3120ec216;p=ci-management.git diff --git a/jjb/iec/iec-compass-build.sh b/jjb/iec/iec-compass-build.sh index b403230..de560a6 100755 --- a/jjb/iec/iec-compass-build.sh +++ b/jjb/iec/iec-compass-build.sh @@ -22,6 +22,12 @@ check_env(){ fi } +checkout_arm64(){ + VERSION="dcc6d07" + git checkout ${VERSION} + sed -i 's:opnfv/:cyb70289/:' build/build-aarch64.yaml +} + check_env echo "begin build compass" @@ -29,6 +35,11 @@ git clone https://github.com/opnfv/compass4nfv.git cd compass4nfv +if [ "$(uname -m)" = 'aarch64' ]; then + echo "Checkout compass4nfv to Arm64 version" + checkout_arm64 +fi + COMPASS_WORK_DIR=$WORKSPACE/../compass-work mkdir -p $COMPASS_WORK_DIR @@ -36,8 +47,11 @@ ln -s $COMPASS_WORK_DIR work sudo docker rm -f `sudo docker ps | grep compass | cut -f1 -d' '` || true -curl -s http://people.linaro.org/~yibo.cai/compass/compass4nfv-arm64-fixup.sh | bash || true +curl -sL http://people.linaro.org/~yibo.cai/compass/compass4nfv-arm64-fixup.sh | bash || true ./build.sh +# Fix permissions so we can archive log files before pushing to Nexus +sudo chown $(id -u):$(id -g) -R "${WORKSPACE}" + exit 0