Initial add of Models job file 41/28641/3
authorAimee Ukasick <aimeeu.opensource@gmail.com>
Tue, 14 Feb 2017 16:28:57 +0000 (10:28 -0600)
committerAric Gardner <agardner@linuxfoundation.org>
Mon, 20 Feb 2017 16:14:51 +0000 (16:14 +0000)
JIRA: MODELS-47

Created models.yml based on copper.yml.
Added shellcheck.

Change-Id: Ic7e451780ad271e66e47c49cc087748267c11b33
Signed-off-by: Aimee Ukasick <aimeeu.opensource@gmail.com>
jjb/models/models.yml [new file with mode: 0644]

diff --git a/jjb/models/models.yml b/jjb/models/models.yml
new file mode 100644 (file)
index 0000000..f419c88
--- /dev/null
@@ -0,0 +1,67 @@
+###################################################
+# All the jobs except verify have been removed!
+# They will only be enabled on request by projects!
+###################################################
+- project:
+    name: models
+
+    project: '{name}'
+
+    jobs:
+        - 'models-verify-{stream}'
+
+    stream:
+        - master:
+            branch: '{stream}'
+            gs-pathname: ''
+            disabled: false
+        - danube:
+            branch: 'stable/{stream}'
+            gs-pathname: '/{stream}'
+            disabled: false
+
+- job-template:
+    name: 'models-verify-{stream}'
+
+    disabled: '{obj:disabled}'
+
+    parameters:
+        - project-parameter:
+            project: '{project}'
+            branch: '{branch}'
+        - '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'
+                - draft-published-event
+                - comment-added-contains-event:
+                    comment-contains-value: 'recheck'
+                - comment-added-contains-event:
+                    comment-contains-value: 'reverify'
+            projects:
+              - project-compare-type: 'ANT'
+                project-pattern: '{project}'
+                branches:
+                  - branch-compare-type: 'ANT'
+                    branch-pattern: '**/{branch}'
+                forbidden-file-paths:
+                  - compare-type: ANT
+                    pattern: 'docs/**|.gitignore'
+
+    builders:
+        - shell: |
+            #!/bin/bash
+            set -o errexit
+            set -o nounset
+            set -o pipefail
+
+            shellcheck -f tty tests/*.sh