From 956b45c6cda30baea8f8e41b33e8b49a684f12bd Mon Sep 17 00:00:00 2001 From: "wu.zhihui" Date: Wed, 16 Nov 2016 15:12:25 +0800 Subject: Fuel: run curl command with parameter L to follow redirects Since ZTE PODs use url http://build.opnfv.org/artifacts.opnfv.org/ to download files, it should run curl command with parameter L to follow redirects. It does not affect PODs which use url http://artifacts.opnfv.org/ JIRA: FUEL-225 Change-Id: I63b808657ee4f26b801e492b53bc8e4b27396587 Signed-off-by: wu.zhihui --- jjb/fuel/fuel-download-artifact.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jjb') diff --git a/jjb/fuel/fuel-download-artifact.sh b/jjb/fuel/fuel-download-artifact.sh index 3f691d821..fd824ca44 100755 --- a/jjb/fuel/fuel-download-artifact.sh +++ b/jjb/fuel/fuel-download-artifact.sh @@ -16,11 +16,11 @@ set -o pipefail if [[ "$JOB_NAME" =~ "merge" ]]; then echo "Downloading http://$GS_URL/opnfv-gerrit-$GERRIT_CHANGE_NUMBER.properties" # get the properties file for the Fuel ISO built for a merged change - curl -s -o $WORKSPACE/latest.properties http://$GS_URL/opnfv-gerrit-$GERRIT_CHANGE_NUMBER.properties + curl -L -s -o $WORKSPACE/latest.properties http://$GS_URL/opnfv-gerrit-$GERRIT_CHANGE_NUMBER.properties else # get the latest.properties file in order to get info regarding latest artifact echo "Downloading http://$GS_URL/latest.properties" - curl -s -o $WORKSPACE/latest.properties http://$GS_URL/latest.properties + curl -L -s -o $WORKSPACE/latest.properties http://$GS_URL/latest.properties fi # check if we got the file -- cgit 1.2.3-korg