summaryrefslogtreecommitdiffstats
path: root/build/fuel_build_loop
blob: 7e26b98b8152ef10cda3f33d1fcc1cedf8fc4013 (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
30
31
32
#!/bin/bash
##############################################################################
# Copyright (c) 2016 Ericsson AB and others.
# stefan.k.berg@ericsson.com
# jonas.bjurel@ericsson.com
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

echo "MIRROR_MOS_UBUNTU_ROOT=${MIRROR_MOS_UBUNTU_ROOT}"
echo "MIRROR_FUEL=${MIRROR_FUEL}"

maxcount=10
cnt=0
rc=1
while [ $cnt -lt $maxcount ] && [ $rc -ne 0 ]
do
    cnt=$[cnt + 1]
    echo -e "\n\n\n*** Starting build attempt # $cnt"
    cd /tmp/fuel-main
    make clean
    make iso
    rc=$?
    if [ $rc -ne 0 ]; then
        echo "### Build failed with rc $rc ###"
    else
        echo "### Build successful at attempt # $cnt"
    fi
done
exit $rc
tNetName: default: storage_mgmt description: The name of the Storage management network. type: string StorageMgmtSubnetName: default: storage_mgmt_subnet description: The name of the Storage management subnet in Neutron. type: string StorageMgmtAllocationPools: default: [{'start': '172.16.3.4', 'end': '172.16.3.250'}] description: Ip allocation pool range for the storage mgmt network. type: json resources: StorageMgmtNetwork: type: OS::Neutron::Net properties: admin_state_up: {get_param: StorageMgmtNetAdminStateUp} name: {get_param: StorageMgmtNetName} shared: {get_param: StorageMgmtNetShared} value_specs: {get_param: StorageMgmtNetValueSpecs} StorageMgmtSubnet: type: OS::Neutron::Subnet properties: cidr: {get_param: StorageMgmtNetCidr} enable_dhcp: {get_param: StorageMgmtNetEnableDHCP} name: {get_param: StorageMgmtSubnetName} network: {get_resource: StorageMgmtNetwork} allocation_pools: {get_param: StorageMgmtAllocationPools} gateway_ip: null outputs: OS::stack_id: description: Neutron storage management network value: {get_resource: StorageMgmtNetwork}