Add vpp jenkins job to build vpp and run csit tests.
[ci-management.git] / jjb / vpp / vpp.yaml
index a95d175..3283832 100644 (file)
@@ -3,6 +3,7 @@
     jobs:
         - 'vpp-verify'
         - 'vpp-merge'
+        - 'vpp-csit-verify-virl'
 
     project: 'vpp'
     branch: 'master'
@@ -12,6 +13,7 @@
 
     project-type: freestyle
     node: verify
+    concurrent: true
 
     logrotate:
         daysToKeep: '{build-days-to-keep}'
@@ -45,6 +47,7 @@
         - shell:
             !include-raw-escape include-raw-vpp-build.sh
 
+
 - job-template:
     name: vpp-merge
 
@@ -62,6 +65,8 @@
             project: '{project}'
         - gerrit-parameter:
             branch: '{branch}'
+        - maven-project-parameter:
+            maven: '{mvn33}'
 
     scm:
         - gerrit-trigger-scm:
     builders:
         - shell:
             !include-raw-escape include-raw-vpp-build.sh
+        - maven-target:
+            maven-version: '{mvn33}'
+            goals: '--version'
+            settings: '{vpp-settings}'
+            global-settings: '{global-settings}'
+        - provide-maven-settings:
+            settings-file: '{vpp-settings}'
+            global-settings-file: '{global-settings}'
+        - shell:
+            !include-raw-escape include-raw-vpp-maven-push.sh
+
+- job-template:
+    name: 'vpp-csit-verify-virl'
+
+    project-type: freestyle
+    node: verify-merge
+    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}'
+
+    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-vpp-build.sh
+        - shell:
+            !include-raw-escape include-raw-vpp-csit-functional.sh
+
+
+    publishers:
+        - archive-artifacts:
+            artifacts: 'csit/report.html, csit/log.html, csit/output.xml'
+            latest-only: false
+
+        - robot-report:
+            output-path: 'csit'
+