summaryrefslogtreecommitdiffstats
path: root/jjb/compass4nfv/compass-download-artifact.sh
blob: 5a63c4aebf8886b7989a78a3389dca2def94b319 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail

# log info to console
echo "Downloading the $INSTALLER_TYPE artifact. This could take some time..."
echo "--------------------------------------------------------"
echo

# get the latest.properties file in order to get info regarding latest artifact
[[ -d $BUILD_DIRECTORY ]] || mkdir -p $BUILD_DIRECTORY
curl -s -o $BUILD_DIRECTORY/latest.properties http://$GS_URL/latest.properties

# check if we got the file
[[ -f $BUILD_DIRECTORY/latest.properties ]] || exit 1

# source the file so we get OPNFV vars
source $BUILD_DIRECTORY/latest.properties

# download the file
curl -s -o $BUILD_DIRECTORY/compass.iso http://$OPNFV_ARTIFACT_URL > gsutil.iso.log 2>&1

# list the file
ls -al $BUILD_DIRECTORY/compass.iso

echo
echo "--------------------------------------------------------"
echo "Done!"
lar l-Scalar-Plain">ServiceHA options: attackers: - fault_type: "kill-process" process_name: "glance-api" host: node1 monitors: - monitor_type: "openstack-cmd" command_name: "openstack image list" monitor_time: 10 monitor_number: 3 sla: max_outage_time: 5 - monitor_type: "process" process_name: "glance-api" host: node1 monitor_time: 20 monitor_number: 3 sla: max_recover_time: 20 nodes: node1: node1.LF runner: type: Duration duration: 1 sla: outage_time: 5 action: monitor context: type: Node name: LF file: {{file}}