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>
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