Rename files under jjb from 'yml' to 'yaml'
[releng.git] / jjb / releng / opnfv-lint.yaml
1 ---
2 ########################
3 # Job configuration for opnfv-lint
4 ########################
5 - project:
6
7     name: opnfv-lint
8
9     project: opnfv-lint
10
11     jobs:
12       - 'opnfv-lint-verify-{stream}'
13       - 'opnfv-yamllint-verify-{stream}'
14       - 'opnfv-pylint-verify-{stream}'
15
16     stream:
17       - master:
18           branch: '{stream}'
19           gs-pathname: ''
20           disabled: false
21       - fraser:
22           branch: 'stable/{stream}'
23           gs-pathname: '/{stream}'
24           disabled: false
25       - danube:
26           branch: 'stable/{stream}'
27           gs-pathname: '/{stream}'
28           disabled: false
29
30 ########################
31 # job templates
32 ########################
33
34 - job-template:
35     name: 'opnfv-lint-verify-{stream}'
36
37     disabled: '{obj:disabled}'
38
39     concurrent: true
40
41     parameters:
42       - project-parameter:
43           project: $GERRIT_PROJECT
44           branch: '{branch}'
45       - node:
46           name: SLAVE_NAME
47           description: Slaves to execute yamllint
48           default-slaves:
49             - lf-build1
50           allowed-multiselect: true
51           ignore-offline-nodes: true
52
53     scm:
54       - git-scm-gerrit
55
56     triggers:
57       - gerrit:
58           server-name: 'gerrit.opnfv.org'
59           trigger-on:
60             - patchset-created-event:
61                 exclude-drafts: 'false'
62                 exclude-trivial-rebase: 'false'
63                 exclude-no-code-change: 'false'
64             - draft-published-event
65             - comment-added-contains-event:
66                 comment-contains-value: 'recheck'
67             - comment-added-contains-event:
68                 comment-contains-value: 'reverify'
69           projects:
70             - project-compare-type: 'REG_EXP'
71               project-pattern: 'releng|doctor|pharos'
72               branches:
73                 - branch-compare-type: 'ANT'
74                   branch-pattern: '**/{branch}'
75               file-paths:
76                 - compare-type: ANT
77                   pattern: '**/*.py'
78                 - compare-type: ANT
79                   pattern: '**/*.sh'
80                 - compare-type: ANT
81                   pattern: '**/*.yml'
82                 - compare-type: ANT
83                   pattern: '**/*.yaml'
84
85     builders:
86       - lint-all-code
87
88 - job-template:
89     name: 'opnfv-pylint-verify-{stream}'
90
91     disabled: '{obj:disabled}'
92
93     concurrent: true
94
95     parameters:
96       - project-parameter:
97           project: $GERRIT_PROJECT
98           branch: '{branch}'
99       - node:
100           name: SLAVE_NAME
101           description: Slaves to execute yamllint
102           default-slaves:
103             - lf-build1
104           allowed-multiselect: true
105           ignore-offline-nodes: true
106
107     scm:
108       - git-scm-gerrit
109
110     triggers:
111       - gerrit:
112           server-name: 'gerrit.opnfv.org'
113           trigger-on:
114             - patchset-created-event:
115                 exclude-drafts: 'false'
116                 exclude-trivial-rebase: 'false'
117                 exclude-no-code-change: 'false'
118             - draft-published-event
119             - comment-added-contains-event:
120                 comment-contains-value: 'recheck'
121             - comment-added-contains-event:
122                 comment-contains-value: 'reverify'
123           projects:
124             - project-compare-type: 'REG_EXP'
125               project-pattern: 'sdnvpn|qtip|daisy|sfc|escalator'
126               branches:
127                 - branch-compare-type: 'ANT'
128                   branch-pattern: '**/{branch}'
129               file-paths:
130                 - compare-type: ANT
131                   pattern: '**/*.py'
132
133     builders:
134       - lint-init
135       - lint-python-code
136       - lint-report
137
138 - job-template:
139     name: 'opnfv-yamllint-verify-{stream}'
140
141     disabled: '{obj:disabled}'
142
143     concurrent: true
144
145     parameters:
146       - project-parameter:
147           project: $GERRIT_PROJECT
148           branch: '{branch}'
149       - node:
150           name: SLAVE_NAME
151           description: Slaves to execute yamllint
152           default-slaves:
153             - lf-build1
154           allowed-multiselect: true
155           ignore-offline-nodes: true
156
157     scm:
158       - git-scm-gerrit
159
160     triggers:
161       - gerrit:
162           server-name: 'gerrit.opnfv.org'
163           trigger-on:
164             - patchset-created-event:
165                 exclude-drafts: 'false'
166                 exclude-trivial-rebase: 'false'
167                 exclude-no-code-change: 'false'
168             - draft-published-event
169             - comment-added-contains-event:
170                 comment-contains-value: 'recheck'
171             - comment-added-contains-event:
172                 comment-contains-value: 'reverify'
173           projects:
174             - project-compare-type: 'REG_EXP'
175               project-pattern: 'armband|fuel|releng-anteater'
176               branches:
177                 - branch-compare-type: 'ANT'
178                   branch-pattern: '**/{branch}'
179               file-paths:
180                 - compare-type: ANT
181                   pattern: '**/*.yml'
182                 - compare-type: ANT
183                   pattern: '**/*.yaml'
184
185     builders:
186       - lint-init
187       - lint-yaml-code
188       - lint-report