7 echo "Downloading the $INSTALLER_TYPE artifact. This could take some time..."
8 echo "--------------------------------------------------------"
11 # get the latest.properties file in order to get info regarding latest artifact
12 [[ -d $BUILD_DIRECTORY ]] || mkdir -p $BUILD_DIRECTORY
13 curl -s -o $BUILD_DIRECTORY/latest.properties http://$GS_URL/latest.properties
15 # check if we got the file
16 [[ -f $BUILD_DIRECTORY/latest.properties ]] || exit 1
18 # source the file so we get OPNFV vars
19 source $BUILD_DIRECTORY/latest.properties
21 if [[ "$BRANCH" == 'stable/danube' ]]; then
23 curl -s -o $BUILD_DIRECTORY/compass.iso http://$OPNFV_ARTIFACT_URL > gsutil.iso.log 2>&1
25 ls -al $BUILD_DIRECTORY/compass.iso
28 curl -s -o $BUILD_DIRECTORY/compass.tar.gz http://$OPNFV_ARTIFACT_URL > gsutil.tar.gz.log 2>&1
30 ls -al $BUILD_DIRECTORY/compass.tar.gz
34 echo "--------------------------------------------------------"