In compass building script, the curl command gets file as
an incorrectly format from URL which finally results in
the compass building failure.
In this patch, the script file will be download by wget.
Then it will be run as a scripts by bash.
Signed-off-by: Jingzhao <Jingzhao.Ni@arm.com>
Change-Id: I8bd49cb818a3c67a7e752a6a1e5521dc570e57b9
+checkout_arm64(){
+ VERSION="dcc6d07"
+ git checkout ${VERSION}
+ sed -i 's:opnfv/:cyb70289/:' build/build-aarch64.yaml
+}
+
check_env
echo "begin build compass"
check_env
echo "begin build compass"
+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
COMPASS_WORK_DIR=$WORKSPACE/../compass-work
mkdir -p $COMPASS_WORK_DIR