Adding a new verification job for testapi UI.
[releng.git] / jjb / securedlab / check-jinja2.yaml
1 ---
2 ########################
3 # Job configuration to validate jinja2 files
4 ########################
5 - project:
6
7     name: validate-templates
8
9     project: 'securedlab'
10
11     jobs:
12       - 'validate-jinja2-templates-{stream}'
13
14     stream:
15       - master:
16           branch: '{stream}'
17           disabled: false
18       - fraser:
19           branch: 'stable/{stream}'
20           disabled: false
21
22 ########################
23 # job templates
24 ########################
25
26 - job-template:
27     name: 'validate-jinja2-templates-{stream}'
28
29     disabled: '{obj:disabled}'
30
31     concurrent: true
32
33     parameters:
34       - project-parameter:
35           project: $GERRIT_PROJECT
36           branch: '{branch}'
37       - node:
38           name: SLAVE_NAME
39           description: Slave to execute jnija template test
40           default-slaves:
41             - lf-build1
42           allowed-multiselect: true
43           ignore-offline-nodes: true
44
45     scm:
46       - git-scm-gerrit
47
48     triggers:
49       - gerrit:
50           server-name: 'gerrit.opnfv.org'
51           trigger-on:
52             - patchset-created-event:
53                 exclude-drafts: 'false'
54                 exclude-trivial-rebase: 'false'
55                 exclude-no-code-change: 'false'
56             - draft-published-event
57             - comment-added-contains-event:
58                 comment-contains-value: 'recheck'
59             - comment-added-contains-event:
60                 comment-contains-value: 'reverify'
61           projects:
62             - project-compare-type: 'REG_EXP'
63               project-pattern: '{project}'
64               branches:
65                 - branch-compare-type: 'ANT'
66                   branch-pattern: '**/{branch}'
67               file-paths:
68                 - compare-type: ANT
69                   pattern: '**/*.yaml'
70                 - compare-type: ANT
71                   pattern: 'check-jinja2.sh'
72           skip-vote:
73             successful: true
74             failed: true
75             unstable: true
76             notbuilt: true
77
78     builders:
79       - check-jinja
80
81 - builder:
82     name: check-jinja
83     builders:
84       - shell: |
85           $WORKSPACE/check-jinja2.sh