diff options
author | Stefan Kobza <skobza@cisco.com> | 2016-02-22 16:26:45 +0100 |
---|---|---|
committer | Stefan Kobza <skobza@cisco.com> | 2016-02-23 14:15:43 +0000 |
commit | f083ab5969940a46670519224e88b8ec027d1b46 (patch) | |
tree | a1de636123b0ae0bc60ca45d2a408184732b0492 | |
parent | cc3b962d7fd2576c7acba2536562fb3f29d2a7ae (diff) |
Add manual triggered csit-vpp-functional-hw-tb2 job.
This job would be create from the same template as
csit-vpp-functional-virl, but for the time being this have to be
manually triggered. I didn't find a way how to parametrize
gerrit-trigger-patch-submitted so I've created
gerrit-trigger-manually-triggered.
Change-Id: I2d4f2c6bb8ebb94cd8563132feac765d46e1b56d
Signed-off-by: Stefan Kobza <skobza@cisco.com>
-rw-r--r-- | jjb/csit/csit-vpp-functional.yaml | 49 | ||||
-rw-r--r-- | jjb/csit/include-raw-csit-vpp-functional-hw-tb2.sh | 15 | ||||
-rw-r--r-- | jjb/global-macros.yaml | 15 |
3 files changed, 79 insertions, 0 deletions
diff --git a/jjb/csit/csit-vpp-functional.yaml b/jjb/csit/csit-vpp-functional.yaml index 59bd10dde..f6136eb24 100644 --- a/jjb/csit/csit-vpp-functional.yaml +++ b/jjb/csit/csit-vpp-functional.yaml @@ -74,3 +74,52 @@ - robot-report +- job: + name: 'csit-vpp-functional-hw-tb2' + + project-type: freestyle + node: verify + 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}' + - gerrit-parameter: + branch: '{branch}' + - string: + name: 'VPP_URLS' + default: '' + description: 'Space separated VPP *.deb URLs from nexus' + + scm: + - gerrit-trigger-scm: + credentials-id: '{ssh-credentials}' + refspec: '$GERRIT_REFSPEC' + choosing-strategy: 'gerrit' + + wrappers: + - ssh-agent-credentials: + users: + - '{ssh-credentials}' + triggers: + - gerrit-trigger-manually-triggered: + name: '{project}' + branch: '{branch}' + comment-trigger-value: 'hw-tb2-recheck' + + builders: + - shell: + !include-raw-escape jjb/csit/include-raw-csit-vpp-functional-hw-tb2.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-hw-tb2.sh b/jjb/csit/include-raw-csit-vpp-functional-hw-tb2.sh new file mode 100644 index 000000000..8fa41cb64 --- /dev/null +++ b/jjb/csit/include-raw-csit-vpp-functional-hw-tb2.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# execute csit bootstrap script if it exists +if [ -e bootstrap-hw-tb2.sh ] +then + # make sure that bootstrap.sh is executable + chmod +x bootstrap-hw-tb2.sh + # run the script + ./bootstrap-hw-tb2.sh +else + echo 'ERROR: No bootstrap-hw-tb2.sh found' + exit 1 +fi + +# vim: ts=4 ts=4 sts=4 et : diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml index 2b1d91c5b..718466830 100644 --- a/jjb/global-macros.yaml +++ b/jjb/global-macros.yaml @@ -111,6 +111,21 @@ branch-pattern: '**/{branch}' - trigger: + name: gerrit-trigger-manually-triggered + triggers: + - gerrit: + server-name: 'Default' + trigger-on: + - comment-added-contains-event: + comment-contains-value: '{comment-trigger-value}' + projects: + - project-compare-type: 'ANT' + project-pattern: '{name}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + +- trigger: name: gerrit-trigger-patch-merged triggers: - gerrit: |