86bf8f4a9f450cf967356c99b93ed43b9dbc64d5
[ci-management.git] / jjb / vpp / docs.yaml
1 ---
2 - project:
3     name: docs
4     jobs:
5       - 'vpp-docs-verify-{stream}-{os}-{executor-arch}'
6       - 'vpp-docs-merge-{stream}-{os}-{executor-arch}'
7       - 'vpp-docsonly-verify-{stream}-{os}-{executor-arch}'
8       - 'vpp-docsonly-merge-{stream}-{os}-{executor-arch}'
9
10     project: 'vpp'
11     executor-arch: 'x86_64'
12     os:
13       - 'ubuntu2204'
14     stream:
15       - 'master':
16           branch: 'master'
17           branch-refspec: ''
18       - '2306':
19           branch: 'stable/2306'
20           branch-refspec: ''
21       - '2310':
22           branch: 'stable/2310'
23           branch-refspec: ''
24
25 - job-template:
26     name: 'vpp-docs-verify-{stream}-{os}-{executor-arch}'
27
28     project-type: freestyle
29     node: 'builder-{os}-prod-{executor-arch}'
30     concurrent: true
31     allow-empty: 'true'
32     fingerprint: false
33     only-if-success: true
34     default-excludes: false
35
36     properties:
37       - lf-infra-properties:
38           build-days-to-keep: "{build-days-to-keep}"
39
40     parameters:
41       - project-parameter:
42           project: '{project}'
43       - gerrit-parameter:
44           branch: '{branch}'
45       - os-parameter:
46           os: '{os}'
47       - stream-parameter:
48           stream: '{stream}'
49       - gerrit-refspec-parameter:
50           refspec: '{branch-refspec}'
51
52     scm:
53       - gerrit-trigger-scm:
54           credentials-id: 'jenkins-gerrit-credentials'
55           refspec: '$GERRIT_REFSPEC'
56           choosing-strategy: 'gerrit'
57
58     wrappers:
59       - fdio-infra-wrappers:
60           build-timeout: '{build-timeout}'
61
62     triggers:
63       - gerrit-trigger-checkstyle:
64           name: '{project}'
65           branch: '{branch}'
66
67     builders:
68       - shell:
69           !include-raw-escape:
70           - ../scripts/setup_executor_env.sh
71       - shell:
72           !include-raw-escape:
73           - ../scripts/setup_vpp_ubuntu_docker_test.sh
74       - shell:
75           !include-raw-escape:
76           - ../scripts/vpp/docs.sh
77
78     publishers:
79       - fdio-infra-publish-docs-7day
80       - fdio-infra-publish
81
82 - job-template:
83     name: 'vpp-docs-merge-{stream}-{os}-{executor-arch}'
84
85     project-type: freestyle
86     node: 'builder-{os}-prod-{executor-arch}'
87     concurrent: false
88     allow-empty: 'true'
89     fingerprint: false
90     only-if-success: true
91     default-excludes: false
92
93     properties:
94       - lf-infra-properties:
95           build-days-to-keep: "{build-days-to-keep}"
96
97     parameters:
98       - project-parameter:
99           project: '{project}'
100       - gerrit-parameter:
101           branch: '{branch}'
102       - os-parameter:
103           os: '{os}'
104       - stream-parameter:
105           stream: '{stream}'
106
107     scm:
108       - gerrit-trigger-scm:
109           credentials-id: 'jenkins-gerrit-credentials'
110           refspec: ''
111           choosing-strategy: 'default'
112
113     wrappers:
114       - fdio-infra-wrappers:
115           build-timeout: '{build-timeout}'
116
117     triggers:
118       - reverse:
119           jobs: 'vpp-merge-{stream}-{os}-{executor-arch}'
120           result: 'success'
121       - gerrit:
122           server-name: 'Primary'
123           trigger-on:
124             - comment-added-contains-event:
125                 comment-contains-value: 'run-docs'
126           projects:
127             - project-compare-type: 'ANT'
128               project-pattern: '{project}'
129               branches:
130                 - branch-compare-type: 'ANT'
131                   branch-pattern: '**/{branch}'
132           skip-vote:
133             successful: true
134             failed: true
135             unstable: true
136             notbuilt: true
137
138     builders:
139       - shell:
140           !include-raw-escape:
141           - ../scripts/setup_executor_env.sh
142       - shell:
143           !include-raw-escape:
144           - ../scripts/setup_vpp_ubuntu_docker_test.sh
145       - shell:
146           !include-raw-escape:
147           - ../scripts/vpp/docs.sh
148
149     publishers:
150       - fdio-infra-publish-docs
151       - fdio-infra-publish
152
153 - job-template:
154     name: 'vpp-docsonly-verify-{stream}-{os}-{executor-arch}'
155
156     project-type: freestyle
157     node: 'builder-{os}-prod-{executor-arch}'
158     concurrent: true
159     allow-empty: 'true'
160     fingerprint: false
161     only-if-success: true
162     default-excludes: false
163
164     parameters:
165       - project-parameter:
166           project: '{project}'
167       - gerrit-parameter:
168           branch: '{branch}'
169       - os-parameter:
170           os: '{os}'
171       - stream-parameter:
172           stream: '{stream}'
173       - gerrit-refspec-parameter:
174           refspec: '{branch-refspec}'
175
176     scm:
177       - gerrit-trigger-scm:
178           credentials-id: 'jenkins-gerrit-credentials'
179           refspec: '$GERRIT_REFSPEC'
180           choosing-strategy: 'gerrit'
181
182     wrappers:
183       - fdio-infra-wrappers:
184           build-timeout: '{build-timeout}'
185
186     triggers:
187       - gerrit:
188           server-name: 'Primary'
189           trigger-on:
190             - patchset-created-event:
191                 exclude-drafts: 'true'
192                 exclude-trivial-rebase: 'false'
193                 exclude-no-code-change: 'false'
194             - draft-published-event
195             - comment-added-contains-event:
196                 comment-contains-value: 'recheck-docsonly'
197           projects:
198             - project-compare-type: 'ANT'
199               project-pattern: '{project}'
200               branches:
201                 - branch-compare-type: 'ANT'
202                   branch-pattern: '**/{branch}'
203               file-paths:
204                 - compare-type: 'REG_EXP'
205                   pattern: '.*docs/.*'
206           override-votes: true
207           gerrit-build-notbuilt-verified-value: 0
208           gerrit-build-successful-verified-value: 1
209
210     builders:
211       - shell:
212           !include-raw-escape:
213           - ../scripts/setup_executor_env.sh
214       - shell:
215           !include-raw-escape:
216           - ../scripts/vpp/commitmsg.sh
217       - shell:
218           !include-raw-escape:
219           - ../scripts/setup_vpp_ubuntu_docker_test.sh
220       - shell:
221           !include-raw-escape:
222           - ../scripts/vpp/docs.sh
223       - shell:
224           !include-raw-escape:
225           - ../scripts/vpp/docs_spell.sh
226
227     publishers:
228       - fdio-infra-publish-docs-7day
229       - fdio-infra-publish
230
231 - job-template:
232     name: 'vpp-docsonly-merge-{stream}-{os}-{executor-arch}'
233
234     project-type: freestyle
235     node: 'builder-{os}-prod-{executor-arch}'
236     concurrent: true
237     allow-empty: 'true'
238     fingerprint: false
239     only-if-success: true
240     default-excludes: false
241
242     parameters:
243       - project-parameter:
244           project: '{project}'
245       - gerrit-parameter:
246           branch: '{branch}'
247       - os-parameter:
248           os: '{os}'
249       - stream-parameter:
250           stream: '{stream}'
251
252     scm:
253       - gerrit-trigger-scm:
254           credentials-id: 'jenkins-gerrit-credentials'
255           refspec: ''
256           choosing-strategy: 'default'
257
258     wrappers:
259       - fdio-infra-wrappers:
260           build-timeout: '{build-timeout}'
261
262     triggers:
263       - gerrit:
264           server-name: 'Primary'
265           trigger-on:
266             - change-merged-event
267             - comment-added-contains-event:
268                 comment-contains-value: 'remerge-docsonly'
269           projects:
270             - project-compare-type: 'ANT'
271               project-pattern: '{project}'
272               branches:
273                 - branch-compare-type: 'ANT'
274                   branch-pattern: '**/{branch}'
275               file-paths:
276                 - compare-type: 'REG_EXP'
277                   pattern: '.*docs/.*'
278           skip-vote:
279             successful: true
280             failed: false
281             unstable: false
282             notbuilt: false
283
284     builders:
285       - shell:
286           !include-raw-escape:
287           - ../scripts/setup_executor_env.sh
288       - shell:
289           !include-raw-escape:
290           - ../scripts/vpp/commitmsg.sh
291       - shell:
292           !include-raw-escape:
293           - ../scripts/setup_vpp_ubuntu_docker_test.sh
294       - shell:
295           !include-raw-escape:
296           - ../scripts/vpp/docs.sh
297       - shell:
298           !include-raw-escape:
299           - ../scripts/vpp/docs_spell.sh
300
301     publishers:
302       - fdio-infra-publish-docs
303       - fdio-infra-publish