summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorJamo Luhrsen <jluhrsen@redhat.com>2016-01-27 20:18:12 -0800
committerLuis Gomez <ecelgp@gmail.com>2016-04-29 14:44:36 -0700
commit35096e18b4273fce940d48c903e1786bad6571b8 (patch)
tree9f88aa1c641d2955a78939f181b0cdcd00d14fdc /jjb
parentf3d1dc6c1ec970ffaa225cf75b560c41c0d5a09b (diff)
initial CPERF job for cbench
Change-Id: Ib926db27618567c0d64cf9e9b0699c0df47fdd58 Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com> Signed-off-by: Luis Gomez <ecelgp@gmail.com>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/cperf/cperf-ci-jobs.yml116
1 files changed, 116 insertions, 0 deletions
diff --git a/jjb/cperf/cperf-ci-jobs.yml b/jjb/cperf/cperf-ci-jobs.yml
new file mode 100644
index 000000000..05f4d1946
--- /dev/null
+++ b/jjb/cperf/cperf-ci-jobs.yml
@@ -0,0 +1,116 @@
+###################################
+# job configuration for cperf
+###################################
+- project:
+ name: cperf-ci-jobs
+ project: cperf
+
+#--------------------------------
+# BRANCH ANCHORS
+#--------------------------------
+ master: &master
+ stream: master
+ branch: '{stream}'
+ gs-pathname: ''
+ docker-tag: 'latest'
+
+#--------------------------------
+# POD, INSTALLER, AND BRANCH MAPPING
+#--------------------------------
+ pod:
+#--------------------------------
+# master
+#--------------------------------
+ - intel-pod2:
+ installer: apex
+ <<: *master
+
+#--------------------------------
+
+ testsuite:
+ - 'daily'
+
+ jobs:
+ - 'cperf-{installer}-{pod}-{testsuite}-{stream}'
+
+################################
+# job template
+################################
+- job-template:
+ name: 'cperf-{installer}-{pod}-{testsuite}-{stream}'
+
+ concurrent: true
+
+ properties:
+ - throttle:
+ enabled: true
+ max-per-node: 1
+
+ wrappers:
+ - build-name:
+ name: '$BUILD_NUMBER Suite: $CPERF_SUITE_NAME Scenario: $DEPLOY_SCENARIO'
+ - timeout:
+ timeout: 400
+ abort: true
+
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ - '{pod}-defaults'
+ - '{installer}-defaults'
+ - cperf-parameter:
+ testsuite: '{testsuite}'
+ gs-pathname: '{gs-pathname}'
+ docker-tag: '{docker-tag}'
+
+ scm:
+ - git-scm:
+ credentials-id: '{ssh-credentials}'
+ refspec: ''
+ branch: '{branch}'
+
+ builders:
+ - 'cperf-{testsuite}-builder'
+
+########################
+# parameter macros
+########################
+- parameter:
+ name: cperf-parameter
+ parameters:
+ - string:
+ name: CPERF_SUITE_NAME
+ default: '{testsuite}'
+ description: "Suite name to run"
+ - string:
+ name: GS_PATHNAME
+ default: '{gs-pathname}'
+ description: "Version directory where the opnfv documents will be stored in gs repository"
+ - string:
+ name: CI_DEBUG
+ default: 'false'
+ description: "Show debug output information"
+ - string:
+ name: DOCKER_TAG
+ default: '{docker-tag}'
+ description: 'Tag to pull docker image'
+
+########################
+# trigger macros
+########################
+
+########################
+# builder macros
+########################
+- builder:
+ name: cperf-daily-builder
+ builders:
+ - shell: |
+ #!/bin/bash
+ set +e
+ # TODO: need to figure out the logic to get ${CONTROLLER_IP} used below
+ docker pull opnfv/cperf:$DOCKER_TAG
+ robot_cmd="pybot -e exclude -v ODL_SYSTEM_IP:${CONTROLLER_IP} -v switch_count:100 -v loops:10 \
+ -v TOOLS_SYSTEM_IP:localhost -v duration_in_seconds:60"
+ robot_suite="/home/opnfv/repos/test/csit/suites/openflowplugin/Performance/010_Cbench.robot"
+ sudo docker run -t -i opnfv/cperf:$DOCKER_TAG ${robot_cmd} ${robot_suite}