For artifcats.opnfv.org is actually domain googleusercontent.com,
and the website is blocked randomly. For labs in area where
google.com/googleuserconent.com can not be accessed, use the
proxy website.
Update proxy wrong URL from build.opnfv.org/artifacts/$PROJECT to
build.opnfv.org/artifacts.opnfv.org/$PROJECT
Change-Id: Iabdbe18937197c79a7d0e31cb0f31f2805a3f35b
Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
set -o errexit
set -o pipefail
+# use proxy url to replace the nomral URL, for googleusercontent.com will be blocked randomly
+[[ "$NODE_NAME" =~ (zte) ]] && GS_URL=$GS_BASE_PROXY
+
if [[ "$JOB_NAME" =~ "merge" ]]; then
echo "Downloading http://$GS_URL/opnfv-gerrit-$GERRIT_CHANGE_NUMBER.properties"
# get the properties file for the Fuel ISO built for a merged change
fi
fi
+[[ "$NODE_NAME" =~ (zte) ]] && OPNFV_ARTIFACT_URL=${GS_BASE_PROXY%%/*}/$OPNFV_ARTIFACT_URL
+
# log info to console
echo "Downloading the $INSTALLER_TYPE artifact using URL http://$OPNFV_ARTIFACT_URL"
echo "This could take some time..."
description: "URL to Google Storage."
- string:
name: GS_BASE_PROXY
- default: build.opnfv.org/artifacts/$PROJECT
+ default: build.opnfv.org/artifacts.opnfv.org/$PROJECT
description: "URL to Google Storage proxy"
- parameter: