Add Jenkins job to run Honeycomb tests 22/1822/7
authorTibor Frank <[email protected]>
Thu, 30 Jun 2016 10:44:04 +0000 (12:44 +0200)
committerTibor Frank <[email protected]>
Mon, 4 Jul 2016 10:36:29 +0000 (10:36 +0000)
JIRA: CSIT-185

Change-Id: Ib113f55e2ed6f3dbb42728abebcbd5107216fdb5
Signed-off-by: Tibor Frank <[email protected]>
jjb/csit/csit-vpp-honeycomb.yaml [new file with mode: 0644]
jjb/csit/include-raw-csit-honeycomb-functional-virl.sh [new file with mode: 0644]

diff --git a/jjb/csit/csit-vpp-honeycomb.yaml b/jjb/csit/csit-vpp-honeycomb.yaml
new file mode 100644 (file)
index 0000000..6d11904
--- /dev/null
@@ -0,0 +1,60 @@
+- project:
+    name: csit-honeycomb
+    description: 'CSIT jenkins jobs to test Honeycomb features.'
+    jobs:
+        - 'csit-honeycomb-functional-{stream}-{os}'
+    project: 'csit'
+    branch: 'master'
+    branch-id: 'master'
+    build-artifact-num-to-keep: 10
+    stream:
+        - master:
+            branch: 'master'
+            branch-id: 'master'
+    os:
+        - ubuntu1404
+
+- job-template:
+    name: 'csit-honeycomb-functional-{stream}-{os}'
+
+    project-type: freestyle
+    node: verify
+    concurrent: true
+
+    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}'
+        - gerrit-parameter:
+            branch: '{branch}'
+
+    wrappers:
+        - ssh-agent-credentials:
+            users:
+                - '{ssh-credentials}'
+
+    triggers:
+        - build-result:
+            combine: false
+            groups:
+                - jobs:
+                    - honeycomb-merge-{stream}-{os}
+                  results:
+                    - success
+
+    builders:
+        - shell:
+            !include-raw-escape: include-raw-csit-honeycomb-functional-virl.sh
+
+    publishers:
+        - archive-artifacts:
+            artifacts: 'report.html, log.html, output.xml'
+            latest-only: false
+
+        - robot-report:
+            output-path: ''
diff --git a/jjb/csit/include-raw-csit-honeycomb-functional-virl.sh b/jjb/csit/include-raw-csit-honeycomb-functional-virl.sh
new file mode 100644 (file)
index 0000000..8c2fa97
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# execute csit bootstrap script if it exists
+if [ ! -e bootstrap-vpp-honeycomb.sh ]
+then
+    echo 'ERROR: No bootstrap-vpp-honeycomb.sh found'
+    exit 1
+else
+    # make sure that bootstrap.sh is executable
+    chmod +x bootstrap-vpp-honeycomb.sh
+    # run the script
+    ./bootstrap-vpp-honeycomb.sh
+fi
+
+# vim: ts=4 ts=4 sts=4 et :