fi
}
+checkout_arm64(){
+ VERSION="dcc6d07"
+ git checkout ${VERSION}
+ sed -i 's:opnfv/:cyb70289/:' build/build-aarch64.yaml
+}
+
check_env
echo "begin build compass"
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
if [ "$(uname -m)" = 'aarch64' ]; then
LAB_NAME='arm'
# shellcheck disable=SC2153
- POD_NAME=${NODE_NAME/*ubuntu1604-dev-48c-256g-/virtual}
+ POD_NAME=${NODE_NAME/*ubuntu1804-dev-48c-256g-/virtual}
else
echo "Unavailable hardware. Cannot continue!"
exit 1
set +f # Ensure filename expansion (globbing) is enabled
NEXUS_REPO=images-snapshots
-release_path=TA/release-1
+release_path=TA/images/${JOB_NAME##*-}
repo_dir="$WORKSPACE/work/nexus/$NEXUS_REPO"
-upload_dir1="$repo_dir/$release_path/images/$BUILD_ID"
-upload_dir2="$repo_dir/$release_path/images/latest"
+upload_dir1="$repo_dir/$release_path/$BUILD_ID"
+upload_dir2="$repo_dir/$release_path/latest"
nexus_repo_url="$NEXUS_URL/content/repositories/$NEXUS_REPO"
mkdir -p "$upload_dir1"
echo "-----> Upload ISOs to Nexus"
lftools deploy nexus "$nexus_repo_url" "$repo_dir"
+rm -rf "$repo_dir"
set +x # Disable trace since we no longer need it.
echo "ISOs location: <a href=\"$nexus_repo_url\">$nexus_repo_url</a>"