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