Fix slave label usage
[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       - label:
44           name: slave
45           default: opnfv-build
46
47     scm:
48       - git-scm-gerrit
49
50     triggers:
51       - gerrit:
52           server-name: 'gerrit.opnfv.org'
53           trigger-on:
54             - patchset-created-event:
55                 exclude-drafts: 'false'
56                 exclude-trivial-rebase: 'false'
57                 exclude-no-code-change: 'false'
58             - draft-published-event
59             - comment-added-contains-event:
60                 comment-contains-value: 'recheck'
61           projects:
62             - project-compare-type: 'REG_EXP'
63               project-pattern: 'releng'
64               branches:
65                 - branch-compare-type: 'ANT'
66                   branch-pattern: '**/{branch}'
67               file-paths:
68                 - compare-type: ANT
69                   pattern: '**/*.py'
70                 - compare-type: ANT
71                   pattern: '**/*.sh'
72                 - compare-type: ANT
73                   pattern: '**/*.yml'
74                 - compare-type: ANT
75                   pattern: '**/*.yaml'
76
77     builders:
78       - lint-all-code