Merge "Adding GS_PROXY prefix to GS_URL in proxy scenario"
authorSerena Feng <feng.xiaowei@zte.com.cn>
Fri, 25 Nov 2016 01:47:50 +0000 (01:47 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Fri, 25 Nov 2016 01:47:50 +0000 (01:47 +0000)
jjb/fuel/fuel-download-artifact.sh

index 1f4aa8f..2a0f09a 100755 (executable)
@@ -11,7 +11,7 @@ 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
+[[ "$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"