From: Julien Date: Wed, 23 Nov 2016 14:21:20 +0000 (+0800) Subject: Add -L parameter to curl for download ISO files X-Git-Tag: danube.1.0~632 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=releng.git;a=commitdiff_plain;h=4da12f732e8aa918719c2a8c30e7a78dc0b15428 Add -L parameter to curl for download ISO files same as patch 24385, which just fixed the latest.properties file curl: -L, --location (HTTP/HTTPS) If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response code), this option will make curl redo the request on the new place. without -L, curl just download the redirects info not the file. JIRA: FUEL-225 Change-Id: I20a01b628ca1545def68bd4e0b24594c24ee7f85 Signed-off-by: Julien-zte --- diff --git a/jjb/fuel/fuel-download-artifact.sh b/jjb/fuel/fuel-download-artifact.sh index fd824ca44..1f4aa8f85 100755 --- a/jjb/fuel/fuel-download-artifact.sh +++ b/jjb/fuel/fuel-download-artifact.sh @@ -59,7 +59,7 @@ echo "--------------------------------------------------------" echo # download the file -curl -s -o $WORKSPACE/opnfv.iso http://$OPNFV_ARTIFACT_URL > gsutil.iso.log 2>&1 +curl -L -s -o $WORKSPACE/opnfv.iso http://$OPNFV_ARTIFACT_URL > gsutil.iso.log 2>&1 # list the file ls -al $WORKSPACE/opnfv.iso