diff options
author | mbeierl <mark.beierl@emc.com> | 2015-11-05 21:22:54 -0500 |
---|---|---|
committer | mbeierl <mark.beierl@emc.com> | 2015-11-05 21:23:49 -0500 |
commit | d480e8746512caf8821c42582e7ab75d25b3127b (patch) | |
tree | 8c8e14162b06eca9a272a2593096c9a643e3b65c /ci/daily.sh | |
parent | 11dd42eccfe25e3b5b950c52198fa9f8effc86be (diff) |
Adding Heat template for staging StorPerf master node
Change-Id: I1e55290013f31272952f23869a02d68ca08cd4a7
JIRA: STORPERF-12
Signed-off-by: mbeierl <mark.beierl@emc.com>
Diffstat (limited to 'ci/daily.sh')
-rwxr-xr-x | ci/daily.sh | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/ci/daily.sh b/ci/daily.sh index 06bd986..0cc5977 100755 --- a/ci/daily.sh +++ b/ci/daily.sh @@ -1,2 +1,36 @@ -#!/bin/bash +#!/bin/bash -x +############################################################################## +# Copyright (c) 2015 EMC and others. +# +# 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 +############################################################################## + +if [ -f ~/jenkins-os.rc ] +then + . ~/jenkins-os.rc +fi + +if [ -z $WORKSPACE ] +then + WORKSPACE=`pwd` +fi + +function stage_base_os_in_glance { + + export OS_IMAGE_API_VERSION=1 + + glance image-list | grep "$1" + if [ $? -eq 1 ] + then + curl -s -o $WORKSPACE/$1.qcow2 https://cloud-images.ubuntu.com/releases/15.10/release/ubuntu-15.10-server-cloudimg-amd64-disk1.img + glance image-create --name="$1" --disk-format=qcow2 --container-format=bare < $WORKSPACE/$1.qcow2 + fi + +} + +stage_base_os_in_glance ubuntu-server + exit 0 |