summaryrefslogtreecommitdiffstats
path: root/jjb/daisy4nfv
diff options
context:
space:
mode:
authorJulien <zhang.jun3g@zte.com.cn>2017-02-24 20:04:38 +0800
committerAric Gardner <agardner@linuxfoundation.org>2017-02-24 21:54:09 +0000
commitd22a0be616fb01a3239fed87df9e7145381234a6 (patch)
tree19f945387d9a52514d9ffe9baff1853fb9dc1f8f /jjb/daisy4nfv
parentc9663a366bab59d56f938dbfb9d8eb0dffafebfc (diff)
add -L para to curl for download bin file
without -L, curl just download the redirects info not the file. same to https://gerrit.opnfv.org/gerrit/#/c/24769/ Change-Id: Ib40c6bf27651860c7d590ee021064e1245004fb9 Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
Diffstat (limited to 'jjb/daisy4nfv')
-rwxr-xr-xjjb/daisy4nfv/daisy4nfv-download-artifact.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/jjb/daisy4nfv/daisy4nfv-download-artifact.sh b/jjb/daisy4nfv/daisy4nfv-download-artifact.sh
index 90b5fa62f..b9af2e8ad 100755
--- a/jjb/daisy4nfv/daisy4nfv-download-artifact.sh
+++ b/jjb/daisy4nfv/daisy4nfv-download-artifact.sh
@@ -12,7 +12,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"
@@ -43,7 +43,7 @@ echo "--------------------------------------------------------"
echo
# download the file
-curl -s -o $WORKSPACE/opnfv.bin http://$OPNFV_ARTIFACT_URL > gsutil.bin.log 2>&1
+curl -L -s -o $WORKSPACE/opnfv.bin http://$OPNFV_ARTIFACT_URL > gsutil.bin.log 2>&1
# list the file
ls -al $WORKSPACE/opnfv.bin