summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoropensource-tnbt <sridhar.rao@spirent.com>2020-03-10 19:40:39 +0530
committerCédric Ollivier <cedric.ollivier@orange.com>2020-03-16 09:53:57 +0100
commitf3c2d76b395f5f3fcf09158e1b5aac833aa35894 (patch)
tree852b6a53e8bd31b953353c29ee7bfe53c57c0a43
parent399a6ac546d7a4c40c4de7191563a5d23406d24a (diff)
JJB: Added Jenkins build job for CIRV.
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
-rw-r--r--jjb/cirv/cirv-views.yaml6
-rw-r--r--jjb/cirv/cirv.yaml71
2 files changed, 77 insertions, 0 deletions
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}'