summaryrefslogtreecommitdiffstats
path: root/ci/start_job.sh
diff options
context:
space:
mode:
authorMark Beierl <mark.beierl@dell.com>2016-11-23 16:59:18 -0500
committerMark Beierl <mark.beierl@dell.com>2016-11-25 11:25:43 -0500
commit227bb19115eaab4f689cb570f0a5574cd5e318bb (patch)
tree1d2701784d009f5a97a68c08d3c8733a7bbd227b /ci/start_job.sh
parentdef8cbb9d7e45060512594b6e3c89bf2db3cced7 (diff)
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 <mark.beierl@dell.com>
Diffstat (limited to 'ci/start_job.sh')
-rwxr-xr-xci/start_job.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/ci/start_job.sh b/ci/start_job.sh
new file mode 100755
index 0000000..51f35cb
--- /dev/null
+++ b/ci/start_job.sh
@@ -0,0 +1,29 @@
+#!/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
+{
+ "block_sizes": "${BLOCK_SIZE}",
+ "nowarm": "string",
+ "nossd": "string",
+ "deadline": 600,
+ "queue_depths": "${QUEUE_DEPTH}",
+ "workload": "${WORKLOAD}",
+ "metadata": {
+ "disk_type": "SSD",
+ "pod_name": "${POD_NAME}",
+ "scenario_name": "${SCENARIO_NAME}",
+ "storage_node_count": ${CINDER_NODES}
+ }
+}
+EOF
+
+curl -s -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' \
+ -d @body.json http://127.0.0.1:5000/api/v1.0/jobs \ No newline at end of file