summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kobza <skobza@cisco.com>2016-03-04 16:31:03 +0100
committerStefan Kobza <skobza@cisco.com>2016-03-04 21:20:22 +0100
commit1816bb15c77f67b480eaedfe36bf67f8a7d5f1be (patch)
tree0fca6a428e2cef492c6a784b92f3cd0c079cd0de
parent8f6fc00fdf89c640decdd86a2f21d0bccd59f1df (diff)
Add new nodepool csit-vpp-functional job.
Make new job in csit project that gets triggered on CSIT changeset. This is an entry-point to integrate CSIT functionality with LF's VM infra. The actual integration is going to happen in CSIT, where we can tune the bootstrap script and then move it into ci-management. Change-Id: Icbfaf0a7b27899af4bea97d80a1883c7dd2df52e Signed-off-by: Stefan Kobza <skobza@cisco.com>
-rw-r--r--jjb/csit/csit-vpp-functional.yaml36
-rw-r--r--jjb/csit/include-raw-csit-vpp-functional-multilink.sh15
2 files changed, 51 insertions, 0 deletions
diff --git a/jjb/csit/csit-vpp-functional.yaml b/jjb/csit/csit-vpp-functional.yaml
index 23b59b056..3b12621a9 100644
--- a/jjb/csit/csit-vpp-functional.yaml
+++ b/jjb/csit/csit-vpp-functional.yaml
@@ -5,6 +5,7 @@
jobs:
- 'csit-vpp-functional-hw-tb2'
- 'csit-vpp-functional-virl'
+ - 'csit-vpp-functional-nodepool'
project: 'csit'
branch: 'master'
@@ -79,3 +80,38 @@
latest-only: false
- robot-report
+
+- job-template:
+ name: 'csit-vpp-functional-nodepool'
+
+ project-type: freestyle
+ node: multilink
+ 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}'
+
+ scm:
+ - zuul-trigger-scm:
+ credentials-id: '{ssh-credentials}'
+ refspec: '$ZUUL_REF'
+ commit: '$ZUUL_COMMIT'
+
+ wrappers:
+ - ssh-agent-credentials:
+ users:
+ - '{ssh-credentials}'
+
+ builders:
+ - shell:
+ !include-raw-escape: include-raw-csit-vpp-functional-multilink.sh
+
+ publishers:
+ - archive-artifacts:
+ artifacts: 'report.html, log.html, output.xml'
+ latest-only: false
+
+ - robot-report
diff --git a/jjb/csit/include-raw-csit-vpp-functional-multilink.sh b/jjb/csit/include-raw-csit-vpp-functional-multilink.sh
new file mode 100644
index 000000000..065500f23
--- /dev/null
+++ b/jjb/csit/include-raw-csit-vpp-functional-multilink.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# execute csit bootstrap script if it exists
+if [ -e bootstrap-multilink.sh ]
+then
+ # make sure that bootstrap.sh is executable
+ chmod +x bootstrap-multilink.sh
+ # run the script
+ ./bootstrap-multilink.sh
+else
+ echo 'ERROR: No bootstrap-multilink.sh found'
+ exit 1
+fi
+
+# vim: ts=4 ts=4 sts=4 et :