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