From: Stefan Kobza Date: Fri, 4 Mar 2016 15:31:03 +0000 (+0100) Subject: Add new nodepool csit-vpp-functional job. X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=1816bb15c77f67b480eaedfe36bf67f8a7d5f1be;p=ci-management.git 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 --- 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 :