GIT Tagging: Vswitchperf.
[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           projects:
68             - project-compare-type: 'REG_EXP'
69               project-pattern: 'releng|doctor|pharos'
70               branches:
71                 - branch-compare-type: 'ANT'
72                   branch-pattern: '**/{branch}'
73               file-paths:
74                 - compare-type: ANT
75                   pattern: '**/*.py'
76                 - compare-type: ANT
77                   pattern: '**/*.sh'
78                 - compare-type: ANT
79                   pattern: '**/*.yml'
80                 - compare-type: ANT
81                   pattern: '**/*.yaml'
82
83     builders:
84       - lint-all-code
85
86 - job-template:
87     name: 'opnfv-pylint-verify-{stream}'
88
89     disabled: '{obj:disabled}'
90
91     concurrent: true
92
93     parameters:
94       - project-parameter:
95           project: $GERRIT_PROJECT
96           branch: '{branch}'
97       - node:
98           name: SLAVE_NAME
99           description: Slaves to execute yamllint
100           default-slaves:
101             - lf-build1
102           allowed-multiselect: true
103           ignore-offline-nodes: true
104
105     scm:
106       - git-scm-gerrit
107
108     triggers:
109       - gerrit:
110           server-name: 'gerrit.opnfv.org'
111           trigger-on:
112             - patchset-created-event:
113                 exclude-drafts: 'false'
114                 exclude-trivial-rebase: 'false'
115                 exclude-no-code-change: 'false'
116             - draft-published-event
117             - comment-added-contains-event:
118                 comment-contains-value: 'recheck'
119             - comment-added-contains-event:
120                 comment-contains-value: 'reverify'
121           projects:
122             - project-compare-type: 'REG_EXP'
123               project-pattern: 'sdnvpn|qtip|daisy|sfc|escalator'
124               branches:
125                 - branch-compare-type: 'ANT'
126                   branch-pattern: '**/{branch}'
127               file-paths:
128                 - compare-type: ANT
129                   pattern: '**/*.py'
130
131     builders:
132       - lint-init
133       - lint-python-code
134       - lint-report
135
136 - job-template:
137     name: 'opnfv-yamllint-verify-{stream}'
138
139     disabled: '{obj:disabled}'
140
141     concurrent: true
142
143     parameters:
144       - project-parameter:
145           project: $GERRIT_PROJECT
146           branch: '{branch}'
147       - node:
148           name: SLAVE_NAME
149           description: Slaves to execute yamllint
150           default-slaves:
151             - lf-build1
152           allowed-multiselect: true
153           ignore-offline-nodes: true
154
155     scm:
156       - git-scm-gerrit
157
158     triggers:
159       - gerrit:
160           server-name: 'gerrit.opnfv.org'
161           trigger-on:
162             - patchset-created-event:
163                 exclude-drafts: 'false'
164                 exclude-trivial-rebase: 'false'
165                 exclude-no-code-change: 'false'
166             - draft-published-event
167             - comment-added-contains-event:
168                 comment-contains-value: 'recheck'
169             - comment-added-contains-event:
170                 comment-contains-value: 'reverify'
171           projects:
172             - project-compare-type: 'REG_EXP'
173               project-pattern: 'armband|fuel|releng-anteater'
174               branches:
175                 - branch-compare-type: 'ANT'
176                   branch-pattern: '**/{branch}'
177               file-paths:
178                 - compare-type: ANT
179                   pattern: '**/*.yml'
180                 - compare-type: ANT
181                   pattern: '**/*.yaml'
182
183     builders:
184       - lint-init
185       - lint-yaml-code
186       - lint-report