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