Add POC jobs to test the Nomad plugin 45/8545/4
authorVanessa Rene Valderrama <[email protected]>
Tue, 26 Sep 2017 17:36:21 +0000 (12:36 -0500)
committerVanessa Rene Valderrama <[email protected]>
Tue, 26 Sep 2017 18:46:20 +0000 (13:46 -0500)
This change is to test the Nomad plugin against the container POC. The
job is configured to only trigger on comment "test-cpoc" against the POC
Nomad environment.

This change is also configuring the test job to utilize the Naginator
plugin which will retry failed builds.

Change-Id: I9cdf277d7b4dd52b27fc830da5435b39ffca8440
Signed-off-by: Vanessa Rene Valderrama <[email protected]>
jjb/vpp/vpp.yaml

index 17427c8..beea3b8 100644 (file)
@@ -10,6 +10,7 @@
         - 'vpp-make-test-docs-verify-{stream}'
         - 'vpp-test-packagecloud-{stream}-{os}'
         - 'vpp-promote-{stream}-{os}'
+        - 'vpp-test-poc-verify-{stream}-{os}'
 
     project: 'vpp'
     os:
     publishers:
       - fdio-infra-shiplogs:
           maven-version: 'mvn33-new'
+
+- job-template:
+    name: 'vpp-test-poc-verify-{stream}-{os}'
+
+    project-type: freestyle
+    node: 'ubuntu-s'
+    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}'
+        - os-parameter:
+            os: '{os}'
+        - repo-name-parameter:
+            repo-name: '{repo-stream-part}.{repo-os-part}'
+
+    scm:
+        - gerrit-trigger-scm:
+            credentials-id: 'jenkins-gerrit-credentials'
+            refspec: '$GERRIT_REFSPEC'
+            choosing-strategy: 'gerrit'
+
+    wrappers:
+        - fdio-infra-wrappers:
+            build-timeout: '{build-timeout}'
+
+    triggers:
+        - gerrit-trigger-manually-triggered:
+            name: '{project}'
+            branch: '{branch}'
+            comment-trigger-value: 'test-cpoc'
+
+    builders:
+        - shell:
+            !include-raw-escape: include-raw-vpp-checkstyle.sh
+        - shell:
+            !include-raw-escape: include-raw-vpp-test-checkstyle.sh
+        - shell:
+            !include-raw-escape:
+                - ../scripts/setup_vpp_dpdk_dev_env.sh
+                - include-raw-vpp-build.sh
+    publishers:
+        - archive:
+            artifacts: 'build-root/*.rpm,build-root/*.deb,dpdk/*.rpm,dpdk/*.deb'
+            allow-empty: 'true'
+            fingerprint: false
+            only-if-success: true
+            default-excludes: false
+        - fdio-infra-shiplogs:
+            maven-version: 'mvn33-new'
+            archive-artifacts: '/tmp/vpp-failed-unittests/*/*'
+        - retry-build-on-builder-error