From f3c2d76b395f5f3fcf09158e1b5aac833aa35894 Mon Sep 17 00:00:00 2001
From: opensource-tnbt <sridhar.rao@spirent.com>
Date: Tue, 10 Mar 2020 19:40:39 +0530
Subject: JJB: Added Jenkins build job for CIRV.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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 |  6 ++++
 jjb/cirv/cirv.yaml       | 71 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)
 create mode 100644 jjb/cirv/cirv-views.yaml
 create mode 100644 jjb/cirv/cirv.yaml

(limited to 'jjb')

diff --git a/jjb/cirv/cirv-views.yaml b/jjb/cirv/cirv-views.yaml
new file mode 100644
index 000000000..17d4e875a
--- /dev/null
+++ b/jjb/cirv/cirv-views.yaml
@@ -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
index 000000000..04ca9fd27
--- /dev/null
+++ b/jjb/cirv/cirv.yaml
@@ -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}'
-- 
cgit