clean scm defenitions
[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         - git-scm-gerrit
40
41     triggers:
42         - gerrit:
43             server-name: 'gerrit.opnfv.org'
44             trigger-on:
45                 - patchset-created-event:
46                     exclude-drafts: 'false'
47                     exclude-trivial-rebase: 'false'
48                     exclude-no-code-change: 'false'
49                 - draft-published-event
50                 - comment-added-contains-event:
51                     comment-contains-value: 'recheck'
52                 - comment-added-contains-event:
53                     comment-contains-value: 'reverify'
54             projects:
55               - project-compare-type: 'REG_EXP'
56                 project-pattern: 'functest|sdnvpn|qtip|daisy|sfc|escalator'
57                 branches:
58                   - branch-compare-type: 'ANT'
59                     branch-pattern: '**/{branch}'
60                 file-paths:
61                   - compare-type: ANT
62                     pattern: '**/*.py'
63
64     builders:
65         - lint-python-code
66         - report-lint-result-to-gerrit