17339159604994cc3c96b75840e061735e57b4ca
[releng.git] / jjb / releng / opnfv-lint.yaml
1 ---
2 ########################
3 # Job configuration for opnfv-lint
4 ########################
5 - project:
6
7     name: opnfv-lint
8
9     project: opnfv-lint
10
11     jobs:
12       - 'opnfv-lint-verify-{stream}'
13
14     stream:
15       - master:
16           branch: '{stream}'
17           gs-pathname: ''
18           disabled: false
19       - fraser:
20           branch: 'stable/{stream}'
21           gs-pathname: '/{stream}'
22           disabled: false
23       - danube:
24           branch: 'stable/{stream}'
25           gs-pathname: '/{stream}'
26           disabled: false
27
28 ########################
29 # job templates
30 ########################
31
32 - job-template:
33     name: 'opnfv-lint-verify-{stream}'
34
35     disabled: '{obj:disabled}'
36
37     concurrent: true
38
39     parameters:
40       - project-parameter:
41           project: $GERRIT_PROJECT
42           branch: '{branch}'
43       - node:
44           name: SLAVE_NAME
45           description: Slaves to execute yamllint
46           default-slaves:
47             - lf-build6
48           allowed-multiselect: true
49           ignore-offline-nodes: true
50
51     scm:
52       - git-scm-gerrit
53
54     triggers:
55       - gerrit:
56           server-name: 'gerrit.opnfv.org'
57           trigger-on:
58             - patchset-created-event:
59                 exclude-drafts: 'false'
60                 exclude-trivial-rebase: 'false'
61                 exclude-no-code-change: 'false'
62             - draft-published-event
63             - comment-added-contains-event:
64                 comment-contains-value: 'recheck'
65           projects:
66             - project-compare-type: 'REG_EXP'
67               project-pattern: 'releng'
68               branches:
69                 - branch-compare-type: 'ANT'
70                   branch-pattern: '**/{branch}'
71               file-paths:
72                 - compare-type: ANT
73                   pattern: '**/*.py'
74                 - compare-type: ANT
75                   pattern: '**/*.sh'
76                 - compare-type: ANT
77                   pattern: '**/*.yml'
78                 - compare-type: ANT
79                   pattern: '**/*.yaml'
80
81     builders:
82       - lint-all-code