Add -L parameter to curl for download ISO files 69/24769/1
authorJulien <zhang.jun3g@zte.com.cn>
Wed, 23 Nov 2016 14:21:20 +0000 (22:21 +0800)
committerJulien <zhang.jun3g@zte.com.cn>
Wed, 23 Nov 2016 14:30:50 +0000 (22:30 +0800)
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 <zhang.jun3g@zte.com.cn>
jjb/fuel/fuel-download-artifact.sh

index fd824ca..1f4aa8f 100755 (executable)
@@ -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