Merge "Move VPP and CSIT macros to global"
[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       - lf-infra-publish
120       - naginator:
121           rerun-unstable-builds: false
122           max-failed-builds: 1
123           fixed-delay: 90
124
125 - job-template:
126     name: 'vpp-docs-merge-{stream}'
127
128     project-type: freestyle
129     node: ubuntu1804-us
130     concurrent: false
131     archive-artifacts: '**/build-root/docs/html/*'
132     allow-empty: 'true'
133     fingerprint: false
134     only-if-success: true
135     default-excludes: false
136
137
138     build-discarder:
139       daysToKeep: '{build-days-to-keep}'
140       numToKeep: '{build-num-to-keep}'
141       artifactDaysToKeep: '{build-artifact-days-to-keep}'
142       artifactNumToKeep: '{build-artifact-num-to-keep}'
143
144     parameters:
145       - project-parameter:
146           project: '{project}'
147       - gerrit-parameter:
148           branch: '{branch}'
149       - os-parameter:
150           os: 'ubuntu1804'
151       - maven-exec:
152           maven-version: 'mvn33-new'
153       - stream-parameter:
154           stream: '{stream}'
155       - string:
156           name: ARCHIVE_ARTIFACTS
157           description: Artifacts to archive to the logs server.
158
159     scm:
160       - gerrit-trigger-scm:
161           credentials-id: 'jenkins-gerrit-credentials'
162           refspec: ''
163           choosing-strategy: 'default'
164
165     wrappers:
166       - fdio-infra-wrappers:
167           build-timeout: '{build-timeout}'
168
169     triggers:
170       - reverse:
171           jobs: 'vpp-merge-{stream}-ubuntu1804'
172           result: 'success'
173       - gerrit:
174           server-name: 'Primary'
175           trigger-on:
176             - comment-added-contains-event:
177                 comment-contains-value: 'run-docs'
178           projects:
179             - project-compare-type: 'ANT'
180               project-pattern: '{project}'
181               branches:
182                 - branch-compare-type: 'ANT'
183                   branch-pattern: '**/{branch}'
184           skip-vote:
185             successful: true
186             failed: true
187             unstable: true
188             notbuilt: true
189
190     builders:
191       - maven-target:
192           maven-version: 'mvn33-new'
193           goals: '--version'
194           settings: 'vpp-settings'
195           settings-type: cfp
196           global-settings: 'global-settings'
197           global-settings-type: cfp
198       - provide-maven-settings:
199           settings-file: 'vpp-settings'
200           global-settings-file: 'global-settings'
201       - shell:
202           !include-raw-escape:
203           - ../scripts/setup_vpp_ubuntu_docker_test.sh
204       - shell:
205           !include-raw-escape:
206           - ../scripts/vpp/docs.sh
207
208     publishers:
209       - lf-infra-publish
210       - naginator:
211           rerun-unstable-builds: false
212           max-failed-builds: 1
213           fixed-delay: 90
214
215 - job-template:
216     name: 'vpp-sphinx-docs-verify-{stream}'
217
218     project-type: freestyle
219     node: ubuntu1804-us
220     concurrent: true
221     allow-empty: 'true'
222     fingerprint: false
223     only-if-success: true
224     default-excludes: false
225
226     build-discarder:
227       daysToKeep: '{build-days-to-keep}'
228       numToKeep: '{build-num-to-keep}'
229       artifactDaysToKeep: '{build-artifact-days-to-keep}'
230       artifactNumToKeep: '{build-artifact-num-to-keep}'
231
232     parameters:
233       - project-parameter:
234           project: '{project}'
235       - gerrit-parameter:
236           branch: '{branch}'
237       - os-parameter:
238           os: 'ubuntu1804'
239       - maven-exec:
240           maven-version: 'mvn33-new'
241       - stream-parameter:
242           stream: '{stream}'
243
244     scm:
245       - gerrit-trigger-scm:
246           credentials-id: 'jenkins-gerrit-credentials'
247           refspec: '$GERRIT_REFSPEC'
248           choosing-strategy: 'gerrit'
249
250     wrappers:
251       - fdio-infra-wrappers:
252           build-timeout: '{build-timeout}'
253
254     triggers:
255       - gerrit:
256           server-name: 'Primary'
257           trigger-on:
258             - comment-added-contains-event:
259                 comment-contains-value: 'run-sphinx-docs-verify'
260           projects:
261             - project-compare-type: 'ANT'
262               project-pattern: '{project}'
263               branches:
264                 - branch-compare-type: 'ANT'
265                   branch-pattern: '**/{branch}'
266           skip-vote:
267             successful: true
268             failed: true
269             unstable: true
270             notbuilt: true
271     builders:
272       - maven-target:
273           maven-version: 'mvn33-new'
274           goals: '--version'
275           settings: 'vpp-settings'
276           settings-type: cfp
277           global-settings: 'global-settings'
278           global-settings-type: cfp
279       - provide-maven-settings:
280           settings-file: 'vpp-settings'
281           global-settings-file: 'global-settings'
282       - shell:
283           !include-raw-escape:
284           - ../scripts/setup_vpp_ubuntu_docker_test.sh
285       - shell:
286           !include-raw-escape:
287           - ../scripts/vpp/sphinx-docs.sh
288
289     publishers:
290       - lf-infra-publish
291       - naginator:
292           rerun-unstable-builds: false
293           max-failed-builds: 1
294           fixed-delay: 90
295
296 - job-template:
297     name: 'vpp-sphinx-docs-merge-{stream}'
298
299     project-type: freestyle
300     node: ubuntu1804-us
301     concurrent: false
302     archive-artifacts: 'docs/_build/html/*'
303     allow-empty: 'true'
304     fingerprint: false
305     only-if-success: true
306     default-excludes: false
307
308     build-discarder:
309       daysToKeep: '{build-days-to-keep}'
310       numToKeep: '{build-num-to-keep}'
311       artifactDaysToKeep: '{build-artifact-days-to-keep}'
312       artifactNumToKeep: '{build-artifact-num-to-keep}'
313
314     parameters:
315       - project-parameter:
316           project: '{project}'
317       - gerrit-parameter:
318           branch: '{branch}'
319       - os-parameter:
320           os: 'ubuntu1804'
321       - maven-exec:
322           maven-version: 'mvn33-new'
323       - stream-parameter:
324           stream: '{stream}'
325       - string:
326           name: ARCHIVE_ARTIFACTS
327           default: '{archive-artifacts}'
328           description: Artifacts to archive to the logs server.
329
330     scm:
331       - gerrit-trigger-scm:
332           credentials-id: 'jenkins-gerrit-credentials'
333           refspec: ''
334           choosing-strategy: 'default'
335
336     wrappers:
337       - fdio-infra-wrappers:
338           build-timeout: '{build-timeout}'
339
340     triggers:
341       - gerrit:
342           server-name: 'Primary'
343           trigger-on:
344             - comment-added-contains-event:
345                 comment-contains-value: 'run-sphinx-docs-merged'
346           skip-vote:
347             successful: true
348             failed: true
349             unstable: true
350             notbuilt: true
351
352     builders:
353       - maven-target:
354           maven-version: 'mvn33-new'
355           goals: '--version'
356           settings: 'vpp-settings'
357           settings-type: cfp
358           global-settings: 'global-settings'
359           global-settings-type: cfp
360       - provide-maven-settings:
361           settings-file: 'vpp-settings'
362           global-settings-file: 'global-settings'
363       - shell:
364           !include-raw-escape:
365           - ../scripts/setup_vpp_ubuntu_docker_test.sh
366       - shell:
367           !include-raw-escape:
368           - ../scripts/vpp/sphinx-docs.sh
369
370     publishers:
371       - lf-infra-publish
372       - naginator:
373           rerun-unstable-builds: false
374           max-failed-builds: 1
375           fixed-delay: 90
376
377 - job-template:
378     name: 'vpp-make-test-docs-verify-{stream}'
379
380     project-type: freestyle
381     node: ubuntu1804-us
382     concurrent: true
383     allow-empty: 'true'
384     fingerprint: false
385     only-if-success: true
386     default-excludes: false
387
388     build-discarder:
389       daysToKeep: '{build-days-to-keep}'
390       numToKeep: '{build-num-to-keep}'
391       artifactDaysToKeep: '{build-artifact-days-to-keep}'
392       artifactNumToKeep: '{build-artifact-num-to-keep}'
393
394     parameters:
395       - project-parameter:
396           project: '{project}'
397       - gerrit-parameter:
398           branch: '{branch}'
399       - os-parameter:
400           os: 'ubuntu1804'
401       - maven-exec:
402           maven-version: 'mvn33-new'
403       - stream-parameter:
404           stream: '{stream}'
405
406     scm:
407       - gerrit-trigger-scm:
408           credentials-id: 'jenkins-gerrit-credentials'
409           refspec: '$GERRIT_REFSPEC'
410           choosing-strategy: 'gerrit'
411
412     wrappers:
413       - fdio-infra-wrappers:
414           build-timeout: '{build-timeout}'
415
416     triggers:
417       - gerrit-trigger-checkstyle:
418           name: '{project}'
419           branch: '{branch}'
420
421     builders:
422       - maven-target:
423           maven-version: 'mvn33-new'
424           goals: '--version'
425           settings: 'vpp-settings'
426           settings-type: cfp
427           global-settings: 'global-settings'
428           global-settings-type: cfp
429       - provide-maven-settings:
430           settings-file: 'vpp-settings'
431           global-settings-file: 'global-settings'
432       - shell:
433           !include-raw-escape:
434           - ../scripts/setup_vpp_ubuntu_docker_test.sh
435       - shell:
436           !include-raw-escape:
437           - ../scripts/vpp/make-test-docs.sh
438
439     publishers:
440       - lf-infra-publish
441       - naginator:
442           rerun-unstable-builds: false
443           max-failed-builds: 1
444           fixed-delay: 90
445
446 - job-template:
447     name: 'vpp-make-test-docs-merge-{stream}'
448
449     project-type: freestyle
450     node: ubuntu1804-us
451     concurrent: false
452     archive-artifacts: '**/build-root/build-test/doc/html/*'
453     allow-empty: 'true'
454     fingerprint: false
455     only-if-success: true
456     default-excludes: false
457
458
459     build-discarder:
460       daysToKeep: '{build-days-to-keep}'
461       numToKeep: '{build-num-to-keep}'
462       artifactDaysToKeep: '{build-artifact-days-to-keep}'
463       artifactNumToKeep: '{build-artifact-num-to-keep}'
464
465     parameters:
466       - project-parameter:
467           project: '{project}'
468       - gerrit-parameter:
469           branch: '{branch}'
470       - os-parameter:
471           os: 'ubuntu1804'
472       - maven-exec:
473           maven-version: 'mvn33-new'
474       - stream-parameter:
475           stream: '{stream}'
476       - string:
477           name: ARCHIVE_ARTIFACTS
478           default: '{archive-artifacts}'
479           description: Artifacts to archive to the logs server.
480
481     scm:
482       - gerrit-trigger-scm:
483           credentials-id: 'jenkins-gerrit-credentials'
484           refspec: ''
485           choosing-strategy: 'default'
486
487     wrappers:
488       - fdio-infra-wrappers:
489           build-timeout: '{build-timeout}'
490
491     triggers:
492       - reverse:
493           jobs: 'vpp-merge-{stream}-ubuntu1804'
494           result: 'success'
495       - gerrit:
496           server-name: 'Primary'
497           trigger-on:
498             - comment-added-contains-event:
499                 comment-contains-value: 'run-docs'
500           projects:
501             - project-compare-type: 'ANT'
502               project-pattern: '{project}'
503               branches:
504                 - branch-compare-type: 'ANT'
505                   branch-pattern: '**/{branch}'
506           skip-vote:
507             successful: true
508             failed: true
509             unstable: true
510             notbuilt: true
511
512     builders:
513       - maven-target:
514           maven-version: 'mvn33-new'
515           goals: '--version'
516           settings: 'vpp-settings'
517           settings-type: cfp
518           global-settings: 'global-settings'
519           global-settings-type: cfp
520       - provide-maven-settings:
521           settings-file: 'vpp-settings'
522           global-settings-file: 'global-settings'
523       - shell:
524           !include-raw-escape:
525           - ../scripts/setup_vpp_ubuntu_docker_test.sh
526       - shell:
527           !include-raw-escape:
528           - ../scripts/vpp/make-test-docs.sh
529
530     publishers:
531       - lf-infra-publish
532       - naginator:
533           rerun-unstable-builds: false
534           max-failed-builds: 1
535           fixed-delay: 90