c6e265e58421a7588ab0a2f76d80f87254263440
[ci-management.git] / jjb / vpp / docs.yaml
1 ---
2 - project:
3     name: docs
4     jobs:
5       - 'vpp-docs-merge-{stream}'
6       - 'vpp-docs-verify-{stream}'
7       - 'vpp-make-test-docs-merge-{stream}'
8       - 'vpp-make-test-docs-verify-{stream}'
9
10     project: 'vpp'
11     os:
12       - ubuntu1804:
13           repo-os-part: 'ubuntu.bionic.main'
14
15     stream:
16       - master:
17           branch: 'master'
18           repo-stream-part: 'master'
19       - '1901':
20           branch: 'stable/1901'
21           repo-stream-part: 'stable.1901'
22       - '1904':
23           branch: 'stable/1904'
24           repo-stream-part: 'stable.1904'
25       - '1908':
26           branch: 'stable/1908'
27           repo-stream-part: 'stable.1908'
28       - '2001':
29           branch: 'stable/2001'
30           repo-stream-part: 'stable.2001'
31
32     type:
33       - short
34       - long
35
36 - project:
37     name: sphinx
38     jobs:
39       - 'vpp-sphinx-docs-merge-{stream}'
40       - 'vpp-sphinx-docs-verify-{stream}'
41
42     project: 'vpp'
43     os:
44       - ubuntu1804:
45           repo-os-part: 'ubuntu.bionic.main'
46
47     stream:
48       - master:
49           branch: 'master'
50           repo-stream-part: 'master'
51     type:
52       - short
53       - long
54
55 - job-template:
56     name: 'vpp-docs-verify-{stream}'
57
58     project-type: freestyle
59     node: ubuntu1804-us
60     concurrent: true
61     allow-empty: 'true'
62     fingerprint: false
63     only-if-success: true
64     default-excludes: false
65
66
67     build-discarder:
68       daysToKeep: '{build-days-to-keep}'
69       numToKeep: '{build-num-to-keep}'
70       artifactDaysToKeep: '{build-artifact-days-to-keep}'
71       artifactNumToKeep: '{build-artifact-num-to-keep}'
72
73     parameters:
74       - project-parameter:
75           project: '{project}'
76       - gerrit-parameter:
77           branch: '{branch}'
78       - os-parameter:
79           os: 'ubuntu1804'
80       - maven-exec:
81           maven-version: 'mvn33-new'
82       - stream-parameter:
83           stream: '{stream}'
84
85     scm:
86       - gerrit-trigger-scm:
87           credentials-id: 'jenkins-gerrit-credentials'
88           refspec: '$GERRIT_REFSPEC'
89           choosing-strategy: 'gerrit'
90
91     wrappers:
92       - fdio-infra-wrappers:
93           build-timeout: '{build-timeout}'
94
95     triggers:
96       - gerrit-trigger-checkstyle:
97           name: '{project}'
98           branch: '{branch}'
99
100     builders:
101       - maven-target:
102           maven-version: 'mvn33-new'
103           goals: '--version'
104           settings: 'vpp-settings'
105           settings-type: cfp
106           global-settings: 'global-settings'
107           global-settings-type: cfp
108       - provide-maven-settings:
109           settings-file: 'vpp-settings'
110           global-settings-file: 'global-settings'
111       - shell:
112           !include-raw-escape:
113           - ../scripts/setup_vpp_ubuntu_docker_test.sh
114       - shell:
115           !include-raw-escape:
116           - ../scripts/vpp/docs.sh
117
118     publishers:
119       - fdio-infra-shiplogs:
120             maven-version: 'mvn36'
121
122 - job-template:
123     name: 'vpp-docs-merge-{stream}'
124
125     project-type: freestyle
126     node: ubuntu1804-us
127     concurrent: false
128     archive-artifacts: '**/build-root/docs/html/*'
129     allow-empty: 'true'
130     fingerprint: false
131     only-if-success: true
132     default-excludes: false
133
134
135     build-discarder:
136       daysToKeep: '{build-days-to-keep}'
137       numToKeep: '{build-num-to-keep}'
138       artifactDaysToKeep: '{build-artifact-days-to-keep}'
139       artifactNumToKeep: '{build-artifact-num-to-keep}'
140
141     parameters:
142       - project-parameter:
143           project: '{project}'
144       - gerrit-parameter:
145           branch: '{branch}'
146       - os-parameter:
147           os: 'ubuntu1804'
148       - maven-exec:
149           maven-version: 'mvn33-new'
150       - stream-parameter:
151           stream: '{stream}'
152       - string:
153           name: ARCHIVE_ARTIFACTS
154           description: Artifacts to archive to the logs server.
155
156     scm:
157       - gerrit-trigger-scm:
158           credentials-id: 'jenkins-gerrit-credentials'
159           refspec: ''
160           choosing-strategy: 'default'
161
162     wrappers:
163       - fdio-infra-wrappers:
164           build-timeout: '{build-timeout}'
165
166     triggers:
167       - reverse:
168           jobs: 'vpp-merge-{stream}-ubuntu1804'
169           result: 'success'
170       - gerrit:
171           server-name: 'Primary'
172           trigger-on:
173             - comment-added-contains-event:
174                 comment-contains-value: 'run-docs'
175           projects:
176             - project-compare-type: 'ANT'
177               project-pattern: '{project}'
178               branches:
179                 - branch-compare-type: 'ANT'
180                   branch-pattern: '**/{branch}'
181           skip-vote:
182             successful: true
183             failed: true
184             unstable: true
185             notbuilt: true
186
187     builders:
188       - maven-target:
189           maven-version: 'mvn33-new'
190           goals: '--version'
191           settings: 'vpp-settings'
192           settings-type: cfp
193           global-settings: 'global-settings'
194           global-settings-type: cfp
195       - provide-maven-settings:
196           settings-file: 'vpp-settings'
197           global-settings-file: 'global-settings'
198       - shell:
199           !include-raw-escape:
200           - ../scripts/setup_vpp_ubuntu_docker_test.sh
201       - shell:
202           !include-raw-escape:
203           - ../scripts/vpp/docs.sh
204
205     publishers:
206       - fdio-infra-shiplogs:
207             maven-version: 'mvn36'
208
209 - job-template:
210     name: 'vpp-sphinx-docs-verify-{stream}'
211
212     project-type: freestyle
213     node: ubuntu1804-us
214     concurrent: true
215     allow-empty: 'true'
216     fingerprint: false
217     only-if-success: true
218     default-excludes: false
219
220     build-discarder:
221       daysToKeep: '{build-days-to-keep}'
222       numToKeep: '{build-num-to-keep}'
223       artifactDaysToKeep: '{build-artifact-days-to-keep}'
224       artifactNumToKeep: '{build-artifact-num-to-keep}'
225
226     parameters:
227       - project-parameter:
228           project: '{project}'
229       - gerrit-parameter:
230           branch: '{branch}'
231       - os-parameter:
232           os: 'ubuntu1804'
233       - maven-exec:
234           maven-version: 'mvn33-new'
235       - stream-parameter:
236           stream: '{stream}'
237
238     scm:
239       - gerrit-trigger-scm:
240           credentials-id: 'jenkins-gerrit-credentials'
241           refspec: '$GERRIT_REFSPEC'
242           choosing-strategy: 'gerrit'
243
244     wrappers:
245       - fdio-infra-wrappers:
246           build-timeout: '{build-timeout}'
247
248     triggers:
249       - gerrit:
250           server-name: 'Primary'
251           trigger-on:
252             - comment-added-contains-event:
253                 comment-contains-value: 'run-sphinx-docs-verify'
254           projects:
255             - project-compare-type: 'ANT'
256               project-pattern: '{project}'
257               branches:
258                 - branch-compare-type: 'ANT'
259                   branch-pattern: '**/{branch}'
260           skip-vote:
261             successful: true
262             failed: true
263             unstable: true
264             notbuilt: true
265     builders:
266       - maven-target:
267           maven-version: 'mvn33-new'
268           goals: '--version'
269           settings: 'vpp-settings'
270           settings-type: cfp
271           global-settings: 'global-settings'
272           global-settings-type: cfp
273       - provide-maven-settings:
274           settings-file: 'vpp-settings'
275           global-settings-file: 'global-settings'
276       - shell:
277           !include-raw-escape:
278           - ../scripts/setup_vpp_ubuntu_docker_test.sh
279       - shell:
280           !include-raw-escape:
281           - ../scripts/vpp/sphinx-docs.sh
282
283     publishers:
284       - fdio-infra-shiplogs:
285             maven-version: 'mvn36'
286
287 - job-template:
288     name: 'vpp-sphinx-docs-merge-{stream}'
289
290     project-type: freestyle
291     node: ubuntu1804-us
292     concurrent: false
293     archive-artifacts: 'docs/_build/html/*'
294     allow-empty: 'true'
295     fingerprint: false
296     only-if-success: true
297     default-excludes: false
298
299     build-discarder:
300       daysToKeep: '{build-days-to-keep}'
301       numToKeep: '{build-num-to-keep}'
302       artifactDaysToKeep: '{build-artifact-days-to-keep}'
303       artifactNumToKeep: '{build-artifact-num-to-keep}'
304
305     parameters:
306       - project-parameter:
307           project: '{project}'
308       - gerrit-parameter:
309           branch: '{branch}'
310       - os-parameter:
311           os: 'ubuntu1804'
312       - maven-exec:
313           maven-version: 'mvn33-new'
314       - stream-parameter:
315           stream: '{stream}'
316       - string:
317           name: ARCHIVE_ARTIFACTS
318           default: '{archive-artifacts}'
319           description: Artifacts to archive to the logs server.
320
321     scm:
322       - gerrit-trigger-scm:
323           credentials-id: 'jenkins-gerrit-credentials'
324           refspec: ''
325           choosing-strategy: 'default'
326
327     wrappers:
328       - fdio-infra-wrappers:
329           build-timeout: '{build-timeout}'
330
331     triggers:
332       - gerrit:
333           server-name: 'Primary'
334           trigger-on:
335             - comment-added-contains-event:
336                 comment-contains-value: 'run-sphinx-docs-merged'
337           skip-vote:
338             successful: true
339             failed: true
340             unstable: true
341             notbuilt: true
342
343     builders:
344       - maven-target:
345           maven-version: 'mvn33-new'
346           goals: '--version'
347           settings: 'vpp-settings'
348           settings-type: cfp
349           global-settings: 'global-settings'
350           global-settings-type: cfp
351       - provide-maven-settings:
352           settings-file: 'vpp-settings'
353           global-settings-file: 'global-settings'
354       - shell:
355           !include-raw-escape:
356           - ../scripts/setup_vpp_ubuntu_docker_test.sh
357       - shell:
358           !include-raw-escape:
359           - ../scripts/vpp/sphinx-docs.sh
360
361     publishers:
362       - fdio-infra-shiplogs:
363             maven-version: 'mvn36'
364
365 - job-template:
366     name: 'vpp-make-test-docs-verify-{stream}'
367
368     project-type: freestyle
369     node: ubuntu1804-us
370     concurrent: true
371     allow-empty: 'true'
372     fingerprint: false
373     only-if-success: true
374     default-excludes: false
375
376     build-discarder:
377       daysToKeep: '{build-days-to-keep}'
378       numToKeep: '{build-num-to-keep}'
379       artifactDaysToKeep: '{build-artifact-days-to-keep}'
380       artifactNumToKeep: '{build-artifact-num-to-keep}'
381
382     parameters:
383       - project-parameter:
384           project: '{project}'
385       - gerrit-parameter:
386           branch: '{branch}'
387       - os-parameter:
388           os: 'ubuntu1804'
389       - maven-exec:
390           maven-version: 'mvn33-new'
391       - stream-parameter:
392           stream: '{stream}'
393
394     scm:
395       - gerrit-trigger-scm:
396           credentials-id: 'jenkins-gerrit-credentials'
397           refspec: '$GERRIT_REFSPEC'
398           choosing-strategy: 'gerrit'
399
400     wrappers:
401       - fdio-infra-wrappers:
402           build-timeout: '{build-timeout}'
403
404     triggers:
405       - gerrit-trigger-checkstyle:
406           name: '{project}'
407           branch: '{branch}'
408
409     builders:
410       - maven-target:
411           maven-version: 'mvn33-new'
412           goals: '--version'
413           settings: 'vpp-settings'
414           settings-type: cfp
415           global-settings: 'global-settings'
416           global-settings-type: cfp
417       - provide-maven-settings:
418           settings-file: 'vpp-settings'
419           global-settings-file: 'global-settings'
420       - shell:
421           !include-raw-escape:
422           - ../scripts/setup_vpp_ubuntu_docker_test.sh
423       - shell:
424           !include-raw-escape:
425           - ../scripts/vpp/make-test-docs.sh
426
427     publishers:
428       - fdio-infra-shiplogs:
429             maven-version: 'mvn36'
430
431 - job-template:
432     name: 'vpp-make-test-docs-merge-{stream}'
433
434     project-type: freestyle
435     node: ubuntu1804-us
436     concurrent: false
437     archive-artifacts: '**/build-root/build-test/doc/html/*'
438     allow-empty: 'true'
439     fingerprint: false
440     only-if-success: true
441     default-excludes: false
442
443
444     build-discarder:
445       daysToKeep: '{build-days-to-keep}'
446       numToKeep: '{build-num-to-keep}'
447       artifactDaysToKeep: '{build-artifact-days-to-keep}'
448       artifactNumToKeep: '{build-artifact-num-to-keep}'
449
450     parameters:
451       - project-parameter:
452           project: '{project}'
453       - gerrit-parameter:
454           branch: '{branch}'
455       - os-parameter:
456           os: 'ubuntu1804'
457       - maven-exec:
458           maven-version: 'mvn33-new'
459       - stream-parameter:
460           stream: '{stream}'
461       - string:
462           name: ARCHIVE_ARTIFACTS
463           default: '{archive-artifacts}'
464           description: Artifacts to archive to the logs server.
465
466     scm:
467       - gerrit-trigger-scm:
468           credentials-id: 'jenkins-gerrit-credentials'
469           refspec: ''
470           choosing-strategy: 'default'
471
472     wrappers:
473       - fdio-infra-wrappers:
474           build-timeout: '{build-timeout}'
475
476     triggers:
477       - reverse:
478           jobs: 'vpp-merge-{stream}-ubuntu1804'
479           result: 'success'
480       - gerrit:
481           server-name: 'Primary'
482           trigger-on:
483             - comment-added-contains-event:
484                 comment-contains-value: 'run-docs'
485           projects:
486             - project-compare-type: 'ANT'
487               project-pattern: '{project}'
488               branches:
489                 - branch-compare-type: 'ANT'
490                   branch-pattern: '**/{branch}'
491           skip-vote:
492             successful: true
493             failed: true
494             unstable: true
495             notbuilt: true
496
497     builders:
498       - maven-target:
499           maven-version: 'mvn33-new'
500           goals: '--version'
501           settings: 'vpp-settings'
502           settings-type: cfp
503           global-settings: 'global-settings'
504           global-settings-type: cfp
505       - provide-maven-settings:
506           settings-file: 'vpp-settings'
507           global-settings-file: 'global-settings'
508       - shell:
509           !include-raw-escape:
510           - ../scripts/setup_vpp_ubuntu_docker_test.sh
511       - shell:
512           !include-raw-escape:
513           - ../scripts/vpp/make-test-docs.sh
514
515     publishers:
516       - fdio-infra-shiplogs:
517             maven-version: 'mvn36'