d566430d665a742b544be50014b2d74a736a0d4b
[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: 'functest|sdnvpn|qtip|daisy|sfc|escalator|releng'
58               branches:
59                 - branch-compare-type: 'ANT'
60                   branch-pattern: '**/{branch}'
61               file-paths:
62                 - compare-type: ANT
63                   pattern: '**/*.py'
64
65     builders:
66       - lint-python-code
67       - report-lint-result-to-gerrit
68
69 - job-template:
70     name: 'opnfv-yamllint-verify-{stream}'
71
72     disabled: '{obj:disabled}'
73
74     concurrent: true
75
76     parameters:
77       - project-parameter:
78           project: $GERRIT_PROJECT
79           branch: '{branch}'
80       - node:
81           name: SLAVE_NAME
82           description: Slaves to execute yamllint
83           default-slaves:
84             - lf-build1
85           allowed-multiselect: true
86           ignore-offline-nodes: true
87
88     scm:
89       - git-scm-gerrit
90
91     triggers:
92       - gerrit:
93           server-name: 'gerrit.opnfv.org'
94           trigger-on:
95             - patchset-created-event:
96                 exclude-drafts: 'false'
97                 exclude-trivial-rebase: 'false'
98                 exclude-no-code-change: 'false'
99             - draft-published-event
100             - comment-added-contains-event:
101                 comment-contains-value: 'recheck'
102             - comment-added-contains-event:
103                 comment-contains-value: 'reverify'
104           projects:
105             - project-compare-type: 'REG_EXP'
106               project-pattern: 'armband|fuel|octopus|pharos|releng|releng-anteater'
107               branches:
108                 - branch-compare-type: 'ANT'
109                   branch-pattern: '**/{branch}'
110               file-paths:
111                 - compare-type: ANT
112                   pattern: '**/*.yml'
113                 - compare-type: ANT
114                   pattern: '**/*.yaml'
115
116     builders:
117       - lint-yaml-code
118       - report-lint-result-to-gerrit