Merge "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             - lf-build2
51           allowed-multiselect: true
52           ignore-offline-nodes: true
53
54     scm:
55       - git-scm-gerrit
56
57     triggers:
58       - gerrit:
59           server-name: 'gerrit.opnfv.org'
60           trigger-on:
61             - patchset-created-event:
62                 exclude-drafts: 'false'
63                 exclude-trivial-rebase: 'false'
64                 exclude-no-code-change: 'false'
65             - draft-published-event
66             - comment-added-contains-event:
67                 comment-contains-value: 'recheck'
68           projects:
69             - project-compare-type: 'REG_EXP'
70               project-pattern: 'releng|doctor|pharos'
71               branches:
72                 - branch-compare-type: 'ANT'
73                   branch-pattern: '**/{branch}'
74               file-paths:
75                 - compare-type: ANT
76                   pattern: '**/*.py'
77                 - compare-type: ANT
78                   pattern: '**/*.sh'
79                 - compare-type: ANT
80                   pattern: '**/*.yml'
81                 - compare-type: ANT
82                   pattern: '**/*.yaml'
83
84     builders:
85       - lint-all-code
86
87 - job-template:
88     name: 'opnfv-pylint-verify-{stream}'
89
90     disabled: '{obj:disabled}'
91
92     concurrent: true
93
94     parameters:
95       - project-parameter:
96           project: $GERRIT_PROJECT
97           branch: '{branch}'
98       - node:
99           name: SLAVE_NAME
100           description: Slaves to execute pylint
101           default-slaves:
102             - lf-build1
103             - lf-build2
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             - lf-build2
155           allowed-multiselect: true
156           ignore-offline-nodes: true
157
158     scm:
159       - git-scm-gerrit
160
161     triggers:
162       - gerrit:
163           server-name: 'gerrit.opnfv.org'
164           trigger-on:
165             - patchset-created-event:
166                 exclude-drafts: 'false'
167                 exclude-trivial-rebase: 'false'
168                 exclude-no-code-change: 'false'
169             - draft-published-event
170             - comment-added-contains-event:
171                 comment-contains-value: 'recheck'
172             - comment-added-contains-event:
173                 comment-contains-value: 'reverify'
174           projects:
175             - project-compare-type: 'REG_EXP'
176               project-pattern: 'armband|fuel|releng-anteater'
177               branches:
178                 - branch-compare-type: 'ANT'
179                   branch-pattern: '**/{branch}'
180               file-paths:
181                 - compare-type: ANT
182                   pattern: '**/*.yml'
183                 - compare-type: ANT
184                   pattern: '**/*.yaml'
185
186     builders:
187       - lint-init
188       - lint-yaml-code
189       - lint-report