Add lf-build2 to Shellcheck and Yamllint Jobs
[releng.git] / jjb / opnfvdocs / opnfvdocs.yaml
1 ---
2 ########################
3 # Job configuration for opnfvdocs
4 ########################
5 - project:
6
7     name: opnfvdocs
8
9     project: '{name}'
10
11     jobs:
12       - 'opnfvdocs-verify-shellcheck-{stream}'
13       - 'opnfvdocs-merge-shellcheck-{stream}'
14
15     stream:
16       - master:
17           branch: '{stream}'
18           gs-pathname: ''
19           disabled: false
20       - hunter:
21           branch: 'stable/{stream}'
22           gs-pathname: '/{stream}'
23           disabled: false
24
25 ########################
26 # job templates
27 ########################
28
29 - job-template:
30     name: 'opnfvdocs-verify-shellcheck-{stream}'
31
32     disabled: '{obj:disabled}'
33
34     parameters:
35       - project-parameter:
36           project: $GERRIT_PROJECT
37           branch: '{branch}'
38       - string:
39           name: GIT_CLONE_BASE
40           default: ssh://gerrit.opnfv.org:29418
41           description: "Used for overriding the GIT URL coming from parameters macro."
42       - 'opnfv-build-defaults'
43
44     scm:
45       - git-scm-gerrit
46
47     triggers:
48       - gerrit:
49           server-name: 'gerrit.opnfv.org'
50           trigger-on:
51             - patchset-created-event:
52                 exclude-drafts: 'false'
53                 exclude-trivial-rebase: 'false'
54                 exclude-no-code-change: 'false'
55             - draft-published-event
56             - comment-added-contains-event:
57                 comment-contains-value: 'recheck'
58             - comment-added-contains-event:
59                 comment-contains-value: 'reverify'
60           projects:
61             - project-compare-type: 'REG_EXP'
62               project-pattern: '{project}'
63               branches:
64                 - branch-compare-type: 'ANT'
65                   branch-pattern: '**/{branch}'
66           skip-vote:
67             successful: true
68             failed: true
69             unstable: true
70             notbuilt: true
71
72     builders:
73       - lint-bash-code
74
75 - job-template:
76     name: 'opnfvdocs-merge-shellcheck-{stream}'
77
78     disabled: '{obj:disabled}'
79
80     parameters:
81       - project-parameter:
82           project: $GERRIT_PROJECT
83           branch: '{branch}'
84       - string:
85           name: GIT_CLONE_BASE
86           default: ssh://gerrit.opnfv.org:29418
87           description: "Used for overriding the GIT URL coming from parameters macro."
88       - string:
89           name: GS_URL
90           default: '$GS_BASE{gs-pathname}'
91           description: "Directory where the build artifact will be located upon\
92             \ the completion of the build."
93       - 'opnfv-build-defaults'
94
95     scm:
96       - git-scm
97
98     triggers:
99       - gerrit:
100           server-name: 'gerrit.opnfv.org'
101           trigger-on:
102             - change-merged-event
103             - comment-added-contains-event:
104                 comment-contains-value: 'remerge'
105           projects:
106             - project-compare-type: 'REG_EXP'
107               project-pattern: '{project}'
108               branches:
109                 - branch-compare-type: 'ANT'
110                   branch-pattern: '**/{branch}'
111
112     builders:
113       - lint-bash-code