summaryrefslogtreecommitdiffstats
path: root/jjb/hc2vpp
diff options
context:
space:
mode:
authorselias <samelias@cisco.com>2017-05-25 10:01:53 +0200
committerselias <samelias@cisco.com>2017-05-25 10:01:53 +0200
commitb6ad2056b95823139c90f8b78d7d3f2665547c87 (patch)
tree3657052ae963d7aa2d1b3f518bf3d5fe4dc0e74b /jjb/hc2vpp
parent153d6f83fe7e1093601b9ad20ae1d446426a2042 (diff)
Honeycomb performance job
Change-Id: If9aced5e6294974874bcf10a1bc7c471c03a819f Signed-off-by: selias <samelias@cisco.com>
Diffstat (limited to 'jjb/hc2vpp')
-rw-r--r--jjb/hc2vpp/csit-hc2vpp.yaml84
-rw-r--r--jjb/hc2vpp/include-raw-hc2vpp-csit-integration-odl.sh6
-rw-r--r--jjb/hc2vpp/include-raw-hc2vpp-csit-integration.sh2
-rw-r--r--jjb/hc2vpp/include-raw-hc2vpp-csit-perf.sh38
4 files changed, 126 insertions, 4 deletions
diff --git a/jjb/hc2vpp/csit-hc2vpp.yaml b/jjb/hc2vpp/csit-hc2vpp.yaml
index 606279c45..cd619f667 100644
--- a/jjb/hc2vpp/csit-hc2vpp.yaml
+++ b/jjb/hc2vpp/csit-hc2vpp.yaml
@@ -24,6 +24,23 @@
odl:
- boron
+- project:
+ name: csit-hc2vpp-perf
+ description: 'jenkins jobs to test Hc2vpp performance.'
+ jobs:
+ - 'hc2vpp-csit-perf-{stream}-{os}'
+ project: 'hc2vpp'
+ build-artifact-num-to-keep: 10
+ stream:
+ - master:
+ branch: 'master'
+ repo-stream-part: 'master'
+ os:
+ - ubuntu1604:
+ repo-os-part: 'ubuntu.xenial.main'
+ odl:
+ - boron
+
- job-template:
name: 'hc2vpp-csit-integration-{stream}-{os}'
@@ -296,6 +313,73 @@
- robot-report:
output-path: 'csit'
+- job-template:
+ name: 'hc2vpp-csit-perf-{stream}-{os}'
+
+ project-type: freestyle
+ node: '{os}-basebuild-4c-4g'
+ concurrent: false
+
+ logrotate:
+ daysToKeep: '{build-days-to-keep}'
+ numToKeep: '{build-num-to-keep}'
+ artifactDaysToKeep: '{build-artifact-days-to-keep}'
+ artifactNumToKeep: '{build-artifact-num-to-keep}'
+
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ - os-parameter:
+ os: '{os}'
+ - stream-parameter:
+ stream: '{stream}'
+ - odl-parameter:
+ odl: '{odl}'
+
+ scm:
+ - gerrit-trigger-scm:
+ credentials-id: 'jenkins-gerrit-credentials'
+ refspec: '$GERRIT_REFSPEC'
+ choosing-strategy: 'gerrit'
+
+ wrappers:
+ - fdio-infra-wrappers:
+ build-timeout: '{build-timeout}'
+
+ triggers:
+ - gerrit:
+ server-name: 'Primary'
+ trigger-on:
+ - comment-added-contains-event:
+ comment-contains-value: 'verify-perf'
+
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/{branch}'
+ skip-vote:
+ successful: false
+ failed: false
+ unstable: false
+ notbuilt: false
+
+ builders:
+ - shell:
+ !include-raw-escape: include-raw-hc2vpp-csit-perf.sh
+
+ publishers:
+ - archive-artifacts:
+ artifacts: 'csit/archive/*.*'
+ latest-only: false
+
+ - robot-report:
+ output-path: 'csit/archive'
+
+ - fdio-infra-shiplogs:
+ maven-version: 'mvn33-new'
+
- parameter:
name: odl-parameter
parameters:
diff --git a/jjb/hc2vpp/include-raw-hc2vpp-csit-integration-odl.sh b/jjb/hc2vpp/include-raw-hc2vpp-csit-integration-odl.sh
index 6d1b3bfba..5cd8b3e94 100644
--- a/jjb/hc2vpp/include-raw-hc2vpp-csit-integration-odl.sh
+++ b/jjb/hc2vpp/include-raw-hc2vpp-csit-integration-odl.sh
@@ -14,19 +14,19 @@ git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH}
# If the git clone fails, complain clearly and exit
if [ $? != 0 ]; then
- echo "Failed to run: git clone https://gerrit.fd.io/r/csit --branch master"
+ echo "Failed to run: git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH}"
exit
fi
cd csit
# execute csit bootstrap script if it exists
-if [ ! -e bootstrap-hc2vpp-integration.sh ]
+if [ ! -e bootstrap-hc2vpp-integration-odl.sh ]
then
echo 'ERROR: No bootstrap-hc2vpp-integration.sh found'
exit 1
else
# make sure that bootstrap.sh is executable
- chmod +x bootstrap-hc2vpp-integration.sh
+ chmod +x bootstrap-hc2vpp-integration-odl.sh
# run the script
if [ ${STREAM} == 'master' ]; then
./bootstrap-hc2vpp-integration-odl.sh ${STREAM} ${OS} ${ODL}
diff --git a/jjb/hc2vpp/include-raw-hc2vpp-csit-integration.sh b/jjb/hc2vpp/include-raw-hc2vpp-csit-integration.sh
index bf6e70c1d..e4bbd3fc3 100644
--- a/jjb/hc2vpp/include-raw-hc2vpp-csit-integration.sh
+++ b/jjb/hc2vpp/include-raw-hc2vpp-csit-integration.sh
@@ -14,7 +14,7 @@ git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH}
# If the git clone fails, complain clearly and exit
if [ $? != 0 ]; then
- echo "Failed to run: git clone https://gerrit.fd.io/r/csit --branch master"
+ echo "Failed to run: git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH}"
exit
fi
diff --git a/jjb/hc2vpp/include-raw-hc2vpp-csit-perf.sh b/jjb/hc2vpp/include-raw-hc2vpp-csit-perf.sh
new file mode 100644
index 000000000..674d13bbc
--- /dev/null
+++ b/jjb/hc2vpp/include-raw-hc2vpp-csit-perf.sh
@@ -0,0 +1,38 @@
+#!/bin/bash
+set -xeu -o pipefail
+
+# Get CSIT branch
+if [ -f csit-test-branch ]; then
+ chmod +x csit-test-branch
+ CSIT_BRANCH=`./csit-test-branch`
+else
+ CSIT_BRANCH='master'
+fi
+
+# Clone csit
+git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH}
+
+# If the git clone fails, complain clearly and exit
+if [ $? != 0 ]; then
+ echo "Failed to run: git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH}"
+ exit
+fi
+
+cd csit
+# execute csit bootstrap script if it exists
+if [ ! -e bootstrap-hc2vpp-perf.sh ]
+then
+ echo 'ERROR: No bootstrap-hc2vpp-integration.sh found'
+ exit 1
+else
+ # make sure that bootstrap.sh is executable
+ chmod +x bootstrap-hc2vpp-perf.sh
+ # run the script
+ if [ ${STREAM} == 'master' ]; then
+ ./bootstrap-hc2vpp-perf.sh ${STREAM} ${OS} ${ODL}
+ else
+ ./bootstrap-hc2vpp-perf.sh 'stable.'${STREAM} ${OS} ${ODL}
+ fi
+fi
+
+# vim: ts=4 ts=4 sts=4 et :