Add new nodepool csit-vpp-functional job. 82/482/2
authorStefan Kobza <skobza@cisco.com>
Fri, 4 Mar 2016 15:31:03 +0000 (16:31 +0100)
committerStefan Kobza <skobza@cisco.com>
Fri, 4 Mar 2016 20:20:22 +0000 (21:20 +0100)
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>
jjb/csit/csit-vpp-functional.yaml
jjb/csit/include-raw-csit-vpp-functional-multilink.sh [new file with mode: 0644]

index 23b59b0..3b12621 100644 (file)
@@ -5,6 +5,7 @@
     jobs:
         - 'csit-vpp-functional-hw-tb2'
         - 'csit-vpp-functional-virl'
+        - 'csit-vpp-functional-nodepool'
 
     project: 'csit'
     branch: 'master'
             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 (file)
index 0000000..065500f
--- /dev/null
@@ -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 :