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