From 227bb19115eaab4f689cb570f0a5574cd5e318bb Mon Sep 17 00:00:00 2001 From: Mark Beierl Date: Wed, 23 Nov 2016 16:59:18 -0500 Subject: Daily Job Creation of a daily job script that runs under Jenkins and kicks off a series of tests using the freshly cloned workspace. Change-Id: Ibc63c1df954578ad78604321ea410c8fd8c63c41 JIRA: STORPERF-87 Signed-off-by: Mark Beierl --- ci/create_stack.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 ci/create_stack.sh (limited to 'ci/create_stack.sh') diff --git a/ci/create_stack.sh b/ci/create_stack.sh new file mode 100755 index 0000000..152f1db --- /dev/null +++ b/ci/create_stack.sh @@ -0,0 +1,23 @@ +#!/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 +############################################################################## + +cat << EOF > body.json +{ + "agent_count": $1, + "agent_image": "Trusty x86_64", + "public_network": "ext-net", + "volume_size": $2 +} +EOF + +curl -X POST --header 'Content-Type: application/json' \ + --header 'Accept: application/json' -d @body.json \ + 'http://127.0.0.1:5000/api/v1.0/configurations' + -- cgit 1.2.3-korg