Merge "Fix compass public vip fetch bug in Newton"
[releng.git] / jjb / releng / opnfv-lint.yml
1 ########################
2 # Job configuration for opnfv-lint
3 ########################
4 - project:
5
6     name: opnfv-lint
7
8     project: opnfv-lint
9
10     jobs:
11         - 'opnfv-lint-verify-{stream}'
12         - 'opnfv-yamllint-verify-{stream}'
13
14     stream:
15         - master:
16             branch: '{stream}'
17             gs-pathname: ''
18             disabled: false
19         - colorado:
20             branch: 'stable/{stream}'
21             gs-pathname: '/{stream}'
22             disabled: false
23
24 ########################
25 # job templates
26 ########################
27
28 - job-template:
29     name: 'opnfv-lint-verify-{stream}'
30
31     disabled: '{obj:disabled}'
32
33     parameters:
34         - project-parameter:
35             project: $GERRIT_PROJECT
36         - gerrit-parameter:
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'
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     parameters:
75         - project-parameter:
76             project: $GERRIT_PROJECT
77         - gerrit-parameter:
78             branch: '{branch}'
79         - node:
80             name: SLAVE_NAME
81             description: Slaves to execute yamllint
82             default-slaves:
83                 - lf-build1
84             allowed-multiselect: true
85             ignore-offline-nodes: true
86
87     scm:
88         - git-scm-gerrit
89
90     triggers:
91         - gerrit:
92             server-name: 'gerrit.opnfv.org'
93             trigger-on:
94                 - patchset-created-event:
95                     exclude-drafts: 'false'
96                     exclude-trivial-rebase: 'false'
97                     exclude-no-code-change: 'false'
98                 - draft-published-event
99                 - comment-added-contains-event:
100                     comment-contains-value: 'recheck'
101                 - comment-added-contains-event:
102                     comment-contains-value: 'reverify'
103             projects:
104               - project-compare-type: 'REG_EXP'
105                 project-pattern: 'compass4nfv'
106                 branches:
107                   - branch-compare-type: 'ANT'
108                     branch-pattern: '**/{branch}'
109                 file-paths:
110                   - compare-type: ANT
111                     pattern: '**/*.yml'
112                   - compare-type: ANT
113                     pattern: '**/*.yaml'
114
115     builders:
116         - lint-yaml-code
117         - report-lint-result-to-gerrit