Run Flake8 against SFC Repository
[releng.git] / jjb / opnfv / 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             trigger-on:
47                 - patchset-created-event:
48                     exclude-drafts: 'false'
49                     exclude-trivial-rebase: 'false'
50                     exclude-no-code-change: 'false'
51                 - draft-published-event
52                 - comment-added-contains-event:
53                     comment-contains-value: 'recheck'
54                 - comment-added-contains-event:
55                     comment-contains-value: 'reverify'
56             projects:
57               - project-compare-type: 'REG_EXP'
58                 project-pattern: 'functest|sdnvpn|qtip|daisy|sfc'
59                 branches:
60                   - branch-compare-type: 'ANT'
61                     branch-pattern: '**/{branch}'
62                 file-paths:
63                   - compare-type: ANT
64                     pattern: '**/*.py'
65
66     builders:
67         - lint-python-code
68         - report-lint-result-to-gerrit