c2624debc75b05e497a4028d7cc5ad5bbaf2b908
[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
13     stream:
14         - master:
15             branch: '{stream}'
16             gs-pathname: ''
17             disabled: false
18         - colorado:
19             branch: 'stable/{stream}'
20             gs-pathname: '/{stream}'
21             disabled: false
22
23 ########################
24 # job templates
25 ########################
26
27 - job-template:
28     name: 'opnfv-lint-verify-{stream}'
29
30     disabled: '{obj:disabled}'
31
32     parameters:
33         - project-parameter:
34             project: $GERRIT_PROJECT
35         - gerrit-parameter:
36             branch: '{branch}'
37
38     scm:
39         - gerrit-trigger-scm:
40             credentials-id: '{ssh-credentials}'
41             refspec: '$GERRIT_REFSPEC'
42             choosing-strategy: 'gerrit'
43
44     triggers:
45         - gerrit:
46             server-name: 'gerrit.opnfv.org'
47             trigger-on:
48                 - patchset-created-event:
49                     exclude-drafts: 'false'
50                     exclude-trivial-rebase: 'false'
51                     exclude-no-code-change: 'false'
52                 - draft-published-event
53                 - comment-added-contains-event:
54                     comment-contains-value: 'recheck'
55                 - comment-added-contains-event:
56                     comment-contains-value: 'reverify'
57             projects:
58               - project-compare-type: 'REG_EXP'
59                 project-pattern: 'functest|sdnvpn|qtip|daisy|sfc|escalator'
60                 branches:
61                   - branch-compare-type: 'ANT'
62                     branch-pattern: '**/{branch}'
63                 file-paths:
64                   - compare-type: ANT
65                     pattern: '**/*.py'
66
67     builders:
68         - lint-python-code
69         - report-lint-result-to-gerrit