summaryrefslogtreecommitdiffstats
path: root/jjb/fuel/fuel-download-artifact.sh
diff options
context:
space:
mode:
authorwu.zhihui <wu.zhihui1@zte.com.cn>2016-11-16 15:12:25 +0800
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>2016-11-18 14:08:01 +0000
commit956b45c6cda30baea8f8e41b33e8b49a684f12bd (patch)
tree5479b618f5c45aed128c64685dc6ce25582a9cc7 /jjb/fuel/fuel-download-artifact.sh
parent4b7eec61896662e456bc185852c0fdcf961e04c8 (diff)
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 <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'jjb/fuel/fuel-download-artifact.sh')
-rwxr-xr-xjjb/fuel/fuel-download-artifact.sh4
1 files changed, 2 insertions, 2 deletions
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