Adding opnfvdocs to new documentation generation method
[releng.git] / jjb / opnfvdocs / opnfvdocs.yml
1 - project:
2     name: opnfvdocs
3     jobs:
4         - 'opnfvdocs-daily-{stream}'
5         - 'opnfvdocs-merge-{stream}'
6         - 'opnfvdocs-verify-{stream}'
7
8     # stream:    branch with - in place of / (eg. stable-helium)
9     # branch:    branch (eg. stable/helium)
10     stream:
11         - master:
12             branch: 'master'
13             gs-pathname: ''
14         - stable-arno:
15             branch: 'stable/arno'
16             gs-pathname: '/arno'
17
18     project: 'opnfvdocs'
19
20 - job-template:
21     name: 'opnfvdocs-daily-{stream}'
22
23     node: gce-opnfv-docker-1
24
25     # Job template for daily builders
26     #
27     # Required Variables:
28     #     stream:    branch with - in place of / (eg. stable)
29     #     branch:    branch (eg. stable)
30
31     project-type: freestyle
32
33     logrotate:
34         daysToKeep: '{build-days-to-keep}'
35         numToKeep: '{build-num-to-keep}'
36         artifactDaysToKeep: '{build-artifact-days-to-keep}'
37         artifactNumToKeep: '{build-artifact-num-to-keep}'
38
39     parameters:
40         - project-parameter:
41             project: '{project}'
42         - opnfvdocs-parameter:
43             gs-pathname: '{gs-pathname}'
44
45     scm:
46         - git-scm:
47             credentials-id: '{ssh-credentials}'
48             refspec: ''
49             branch: '{branch}'
50
51     wrappers:
52         - ssh-agent-credentials:
53             user: '{ssh-credentials}'
54
55     triggers:
56         - 'opnfvdocs-{stream}'
57
58     builders:
59         - shell:
60             !include-raw docu-build.sh
61
62 - job-template:
63     name: 'opnfvdocs-verify-{stream}'
64
65     node: gce-opnfv-docker-1
66
67     project-type: freestyle
68
69     logrotate:
70         daysToKeep: 30
71         numToKeep: 10
72         artifactDaysToKeep: -1
73         artifactNumToKeep: -1
74
75     parameters:
76         - project-parameter:
77             project: '{project}'
78         - gerrit-parameter:
79             branch: '{branch}'
80     scm:
81         - gerrit-trigger-scm:
82             credentials-id: '{ssh-credentials}'
83             refspec: '$GERRIT_REFSPEC'
84             choosing-strategy: 'gerrit'
85
86     wrappers:
87         - ssh-agent-credentials:
88             user: '{ssh-credentials}'
89
90     triggers:
91         - gerrit:
92             trigger-on:
93                 - patchset-created-event:
94                     exclude-drafts: 'false'
95                     exclude-trivial-rebase: 'false'
96                     exclude-no-code-change: 'false'
97                 - draft-published-event
98                 - comment-added-contains-event:
99                     comment-contains-value: 'recheck'
100                 - comment-added-contains-event:
101                     comment-contains-value: 'reverify'
102             projects:
103               - project-compare-type: 'ANT'
104                 project-pattern: 'opnfvdocs'
105                 branches:
106                   - branch-compare-type: 'ANT'
107                     branch-pattern: '**/{branch}'
108
109     builders:
110         - shell:
111             !include-raw docu-build.sh
112
113 - job-template:
114     name: 'opnfvdocs-merge-{stream}'
115
116     node: gce-opnfv-docker-1
117
118     # builder-merge job to run JJB update
119     #
120     # This job's purpose is to update all the JJB
121
122     project-type: freestyle
123
124     logrotate:
125         daysToKeep: 30
126         numToKeep: 40
127         artifactDaysToKeep: -1
128         artifactNumToKeep: 5
129
130     parameters:
131         - project-parameter:
132             project: '{project}'
133         - gerrit-parameter:
134             branch: '{branch}'
135
136     scm:
137         - gerrit-trigger-scm:
138             credentials-id: '{ssh-credentials}'
139             refspec: ''
140             choosing-strategy: 'default'
141
142     wrappers:
143         - ssh-agent-credentials:
144             user: '{ssh-credentials}'
145
146     triggers:
147         - gerrit:
148             trigger-on:
149                 - change-merged-event
150                 - comment-added-contains-event:
151                     comment-contains-value: 'remerge'
152             projects:
153               - project-compare-type: 'ANT'
154                 project-pattern: 'opnfvdocs'
155                 branches:
156                     - branch-compare-type: 'ANT'
157                       branch-pattern: '**/{branch}'
158
159     builders:
160         - shell:
161             !include-raw docu-build.sh
162
163 ########################
164 # parameter macros
165 ########################
166 - parameter:
167     name: opnfvdocs-parameter
168     parameters:
169         - string:
170             name: GS_PATHNAME
171             default: '{gs-pathname}'
172             description: "Version directory where the opnfv documents will be stored in gs repository"
173
174 ########################
175 # trigger macros
176 ########################
177 - trigger:
178     name: 'opnfvdocs-master'
179     triggers:
180         - pollscm: "H 9 * * *"
181
182 - trigger:
183     name: 'opnfvdocs-stable-arno'
184     triggers:
185         - pollscm: "H 21 * * *"