${GS_PROXY} does not include branch name in the URL, when use it to
download the latest.properties, it always downloads the master branch
file, not the current release defined in ${gs-pathname}.
In this patch, no longer directly use ${GS_BASE_PROXY}, but join them.
JIRA: FUEL-225
Change-Id: I2566036c174b2f03997669d25a37f1de21ffeac6
Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
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
+[[ "$NODE_NAME" =~ (zte) ]] && GS_URL=${GS_BASE_PROXY%%/*}/$GS_URL
if [[ "$JOB_NAME" =~ "merge" ]]; then
echo "Downloading http://$GS_URL/opnfv-gerrit-$GERRIT_CHANGE_NUMBER.properties"