Move check-jinja2 jenkins job to pharos project 41/47741/2
authoragardner <agardner@linuxfoundation.org>
Thu, 23 Nov 2017 21:28:40 +0000 (16:28 -0500)
committeragardner <agardner@linuxfoundation.org>
Thu, 23 Nov 2017 21:36:12 +0000 (16:36 -0500)
Securedlab will be going away now that we can encrypt strings
(eyaml)

we need to check jinja2 PDF templates that will be moving into pharos
This adds a jenkins job to check those templates

After This change and https://gerrit.opnfv.org/gerrit/#/c/47735/ are merged
I can start moving pdf files into the pharos repo

Once this is complete I can remove check-jinja2 job from securedlab.
Eventually decommissioning the securedlab repo

Change-Id: I623b7d8eb78438a8a24307ff0b3a1966c33cd7cf
Signed-off-by: agardner <agardner@linuxfoundation.org>
jjb/pharos/check-jinja2.yml [new file with mode: 0644]

diff --git a/jjb/pharos/check-jinja2.yml b/jjb/pharos/check-jinja2.yml
new file mode 100644 (file)
index 0000000..cfc123e
--- /dev/null
@@ -0,0 +1,85 @@
+---
+########################
+# Job configuration to validate jinja2 files
+########################
+- project:
+
+    name: validate-pdf-templates
+
+    project: 'pharos'
+
+    jobs:
+      - 'validate-pdf-jinja2-templates-{stream}'
+
+    stream:
+      - master:
+          branch: '{stream}'
+          disabled: false
+      - euphrates:
+          branch: 'stable/{stream}'
+          disabled: false
+
+########################
+# job templates
+########################
+
+- job-template:
+    name: 'validate-pdf-jinja2-templates-{stream}'
+
+    disabled: '{obj:disabled}'
+
+    concurrent: true
+
+    parameters:
+      - project-parameter:
+          project: $GERRIT_PROJECT
+          branch: '{branch}'
+      - node:
+          name: SLAVE_NAME
+          description: Slave to execute jnija template test
+          default-slaves:
+            - lf-build1
+          allowed-multiselect: true
+          ignore-offline-nodes: true
+
+    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: 'REG_EXP'
+              project-pattern: '{project}'
+              branches:
+                - branch-compare-type: 'ANT'
+                  branch-pattern: '**/{branch}'
+              file-paths:
+                - compare-type: ANT
+                  pattern: '**/*.yaml'
+                - compare-type: ANT
+                  pattern: 'check-jinja2.sh'
+          skip-vote:
+            successful: true
+            failed: true
+            unstable: true
+            notbuilt: true
+
+    builders:
+      - check-pdf-jinja
+
+- builder:
+    name: check-pdf-jinja
+    builders:
+      - shell: |
+          $WORKSPACE/config/utils/check-jinja2.sh