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