Configure jenkins jobs for fuel
[releng.git] / jjb / fuel / fuel-download-artifact.sh
1 #!/bin/bash
2 set -o errexit
3 set -o nounset
4 set -o pipefail
5
6 # get the latest.properties file in order to get info regarding latest artifact
7 curl -s -o $WORKSPACE/latest.properties http://$GS_URL/latest.properties
8
9 # check if we got the file
10 [[ -f latest.properties ]] || exit 1
11
12 # source the file so we get OPNFV vars
13 source latest.properties
14
15 # log info to console
16 echo "Downloading the $INSTALLER artifact using URL http://$OPNFV_ARTIFACT_URL"
17 echo "This could take some time..."
18 echo "--------------------------------------------------------"
19 echo
20
21 # download the file
22 curl -s -o $WORKSPACE/opnfv.iso http://$OPNFV_ARTIFACT_URL > gsutil.iso.log 2>&1
23
24 # list the file
25 ls -al $WORKSPACE/opnfv.iso
26
27 echo
28 echo "--------------------------------------------------------"
29 echo "Done!"