summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorAric Gardner <agardner@linuxfoundation.org>2017-11-24 19:30:45 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-11-24 19:30:45 +0000
commit24276ee95dd4c6e65bcf903cf859120d2c1a4cf1 (patch)
tree6d00ce11326900e898d8c3b5bb564e1b58b82ddb /jjb
parent75cc81aff474220fb437474885a650d0c736d41b (diff)
parent7fec0143f1b1a0cfa2209dc9e132492f862b3cca (diff)
Merge "Move check-jinja2 jenkins job to pharos project"
Diffstat (limited to 'jjb')
-rw-r--r--jjb/pharos/check-jinja2.yml85
1 files changed, 85 insertions, 0 deletions
diff --git a/jjb/pharos/check-jinja2.yml b/jjb/pharos/check-jinja2.yml
new file mode 100644
index 000000000..cfc123e4c
--- /dev/null
+++ b/jjb/pharos/check-jinja2.yml
@@ -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