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