JJB: Added Jenkins build job for CIRV. 70/69770/2
authoropensource-tnbt <sridhar.rao@spirent.com>
Tue, 10 Mar 2020 14:10:39 +0000 (19:40 +0530)
committerCédric Ollivier <cedric.ollivier@orange.com>
Mon, 16 Mar 2020 08:53:57 +0000 (09:53 +0100)
This patch adds verify job for CIRV.

Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com>
Signed-off-by: Sridhar K. N. Rao <sridhar.rao@spirent.com>
Change-Id: I4d24f76b122429ff10f6e80ec35e6c2fcb0da3e6

jjb/cirv/cirv-views.yaml [new file with mode: 0644]
jjb/cirv/cirv.yaml [new file with mode: 0644]

diff --git a/jjb/cirv/cirv-views.yaml b/jjb/cirv/cirv-views.yaml
new file mode 100644 (file)
index 0000000..17d4e87
--- /dev/null
@@ -0,0 +1,6 @@
+---
+- project:
+    name: cirv-view
+    views:
+      - project-view
+    project-name: cirv
diff --git a/jjb/cirv/cirv.yaml b/jjb/cirv/cirv.yaml
new file mode 100644 (file)
index 0000000..04ca9fd
--- /dev/null
@@ -0,0 +1,71 @@
+---
+- cirv-project-params: &cirv-project-params
+    name: 'cirv-project-params'
+    tag:
+      - latest:
+          branch: master
+          slave: intel-pod15
+
+- builder:
+    name: cirv-run-tox
+    builders:
+      - shell: tox
+
+- trigger:
+    name: cirv-project-patchset-created
+    triggers:
+      - gerrit:
+          server-name: 'gerrit.opnfv.org'
+          trigger-on:
+            - patchset-created-event
+            - comment-added-contains-event:
+                comment-contains-value: 'recheck'
+            - comment-added-contains-event:
+                comment-contains-value: 'reverify'
+          projects:
+            - project-compare-type: 'ANT'
+              project-pattern: 'cirv'
+              branches:
+                - branch-compare-type: 'ANT'
+                  branch-pattern: '**/{branch}'
+          skip-vote:
+            successful: false
+            failed: false
+            unstable: false
+            notbuilt: false
+
+- parameter:
+    name: cirv-project-slave
+    parameters:
+      - label:
+          name: slave
+          default: '{slave}'
+
+- scm:
+    name: cirv-project-scm
+    scm:
+      - git:
+          url: https://gerrit.opnfv.org/gerrit/cirv
+          refspec: '+refs/changes/*:refs/changes/*'
+          branches:
+            - '{ref}'
+
+- job-template:
+    name: 'cirv-run-tox-{tag}'
+    triggers:
+      - cirv-project-patchset-created:
+          branch: '{branch}'
+    scm:
+      - cirv-project-scm:
+          ref: $GERRIT_REFSPEC
+    parameters:
+      - cirv-project-slave:
+          slave: '{slave}'
+    builders:
+      - cirv-run-tox
+
+- project:
+    name: 'cirv-run-tox'
+    <<: *cirv-project-params
+    jobs:
+      - 'cirv-run-tox-{tag}'