From 4da12f732e8aa918719c2a8c30e7a78dc0b15428 Mon Sep 17 00:00:00 2001 From: Julien Date: Wed, 23 Nov 2016 22:21:20 +0800 Subject: 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 --- jjb/fuel/fuel-download-artifact.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jjb') 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 -- cgit 1.2.3-korg