Merge "Support CentOS 7 in GoogleStorage Gitlab template"
[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       - lakelse:
21           branch: 'stable/{stream}'
22           gs-pathname: '/{stream}'
23           disabled: false
24       - hunter:
25           branch: 'stable/{stream}'
26           gs-pathname: '/{stream}'
27           disabled: false
28
29 ########################
30 # job templates
31 ########################
32
33 - job-template:
34     name: 'opnfvdocs-verify-shellcheck-{stream}'
35
36     disabled: '{obj:disabled}'
37
38     parameters:
39       - project-parameter:
40           project: $GERRIT_PROJECT
41           branch: '{branch}'
42       - string:
43           name: GIT_CLONE_BASE
44           default: ssh://gerrit.opnfv.org:29418
45           description: "Used for overriding the GIT URL coming from parameters macro."
46       - 'opnfv-build-defaults'
47
48     scm:
49       - git-scm-gerrit
50
51     triggers:
52       - gerrit:
53           server-name: 'gerrit.opnfv.org'
54           trigger-on:
55             - patchset-created-event:
56                 exclude-drafts: 'false'
57                 exclude-trivial-rebase: 'false'
58                 exclude-no-code-change: 'false'
59             - draft-published-event
60             - comment-added-contains-event:
61                 comment-contains-value: 'recheck'
62             - comment-added-contains-event:
63                 comment-contains-value: 'reverify'
64           projects:
65             - project-compare-type: 'REG_EXP'
66               project-pattern: '{project}'
67               branches:
68                 - branch-compare-type: 'ANT'
69                   branch-pattern: '**/{branch}'
70           skip-vote:
71             successful: true
72             failed: true
73             unstable: true
74             notbuilt: true
75
76     builders:
77       - lint-bash-code
78
79 - job-template:
80     name: 'opnfvdocs-merge-shellcheck-{stream}'
81
82     disabled: '{obj:disabled}'
83
84     parameters:
85       - project-parameter:
86           project: $GERRIT_PROJECT
87           branch: '{branch}'
88       - string:
89           name: GIT_CLONE_BASE
90           default: ssh://gerrit.opnfv.org:29418
91           description: "Used for overriding the GIT URL coming from parameters macro."
92       - string:
93           name: GS_URL
94           default: '$GS_BASE{gs-pathname}'
95           description: "Directory where the build artifact will be located upon\
96             \ the completion of the build."
97       - 'opnfv-build-defaults'
98
99     scm:
100       - git-scm
101
102     triggers:
103       - gerrit:
104           server-name: 'gerrit.opnfv.org'
105           trigger-on:
106             - change-merged-event
107             - comment-added-contains-event:
108                 comment-contains-value: 'remerge'
109           projects:
110             - project-compare-type: 'REG_EXP'
111               project-pattern: '{project}'
112               branches:
113                 - branch-compare-type: 'ANT'
114                   branch-pattern: '**/{branch}'
115
116     builders:
117       - lint-bash-code