Add jjb script for nfvbench to build the nfvbench VM 37/38637/2
authorahothan <ahothan@cisco.com>
Wed, 2 Aug 2017 16:38:29 +0000 (09:38 -0700)
committerahothan <ahothan@cisco.com>
Wed, 2 Aug 2017 19:03:34 +0000 (12:03 -0700)
Change-Id: I02b17840bdd03396b39401d03b1f9224cd899161
Signed-off-by: ahothan <ahothan@cisco.com>
jjb/nfvbench/nfvbench.yml [new file with mode: 0644]

diff --git a/jjb/nfvbench/nfvbench.yml b/jjb/nfvbench/nfvbench.yml
new file mode 100644 (file)
index 0000000..85486c8
--- /dev/null
@@ -0,0 +1,90 @@
+- project:
+    name: nfvbench
+
+    project: '{name}'
+
+    jobs:
+        - 'nfvbench-build-{stream}'
+        - 'nfvbench-verify-{stream}'
+
+    stream:
+        - master:
+            branch: '{stream}'
+            gs-pathname: ''
+            disabled: false
+            docker-tag: 'latest'
+
+- job-template:
+    name: 'nfvbench-build-{stream}'
+
+    disabled: '{obj:disabled}'
+
+    parameters:
+        - project-parameter:
+            project: '{project}'
+            branch: '{branch}'
+        - string:
+            name: GIT_BASE
+            default: https://gerrit.opnfv.org/gerrit/$PROJECT
+            description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
+        - 'opnfv-build-ubuntu-defaults'
+
+    scm:
+        - git-scm-gerrit
+
+    triggers:
+        - gerrit:
+            server-name: 'gerrit.opnfv.org'
+            trigger-on:
+                - comment-added-contains-event:
+                    comment-contains-value: 'buildvm'
+            projects:
+              - project-compare-type: 'ANT'
+                project-pattern: '{project}'
+                branches:
+                  - branch-compare-type: 'ANT'
+                    branch-pattern: '**/{branch}'
+
+    builders:
+        - shell: |
+            cd $WORKSPACE/nfvbenchvm/dib
+            bash build-image.sh
+
+- job-template:
+    name: 'nfvbench-verify-{stream}'
+
+    disabled: '{obj:disabled}'
+
+    parameters:
+        - project-parameter:
+            project: '{project}'
+            branch: '{branch}'
+        - string:
+            name: GIT_BASE
+            default: https://gerrit.opnfv.org/gerrit/$PROJECT
+            description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
+        - 'opnfv-build-ubuntu-defaults'
+
+    scm:
+        - git-scm-gerrit
+
+    triggers:
+        - gerrit:
+            server-name: 'gerrit.opnfv.org'
+            trigger-on:
+                - patchset-created-event:
+                    exclude-drafts: 'false'
+                    exclude-trivial-rebase: 'false'
+                    exclude-no-code-change: 'false'
+            projects:
+              - project-compare-type: 'ANT'
+                project-pattern: '{project}'
+                branches:
+                  - branch-compare-type: 'ANT'
+                    branch-pattern: '**/{branch}'
+
+    builders:
+        - shell: |
+            echo "pass"
+
+