6 if [[ "$JOB_NAME" =~ "merge" ]]; then
7 # get the properties file for the Fuel ISO built for a merged change
8 curl -s -o $WORKSPACE/latest.properties http://$GS_URL/opnfv-gerrit-$GERRIT_CHANGE_NUMBER.properties
10 # get the latest.properties file in order to get info regarding latest artifact
11 curl -s -o $WORKSPACE/latest.properties http://$GS_URL/latest.properties
14 # check if we got the file
15 [[ -f latest.properties ]] || exit 1
17 # source the file so we get OPNFV vars
18 source latest.properties
21 echo "Downloading the $INSTALLER_TYPE artifact using URL http://$OPNFV_ARTIFACT_URL"
22 echo "This could take some time..."
23 echo "--------------------------------------------------------"
27 curl -s -o $WORKSPACE/opnfv.iso http://$OPNFV_ARTIFACT_URL > gsutil.iso.log 2>&1
30 ls -al $WORKSPACE/opnfv.iso
33 echo "--------------------------------------------------------"