VPP: Make script inclusion more readable
[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
29     type:
30       - short
31       - long
32
33 - project:
34     name: sphinx
35     jobs:
36       - 'vpp-sphinx-docs-merge-{stream}'
37       - 'vpp-sphinx-docs-verify-{stream}'
38
39     project: 'vpp'
40     os:
41       - ubuntu1804:
42           repo-os-part: 'ubuntu.bionic.main'
43
44     stream:
45       - master:
46           branch: 'master'
47           repo-stream-part: 'master'
48     type:
49       - short
50       - long
51
52 - job-template:
53     name: 'vpp-docs-verify-{stream}'
54
55     project-type: freestyle
56     node: ubuntu1804-us
57     concurrent: true
58     allow-empty: 'true'
59     fingerprint: false
60     only-if-success: true
61     default-excludes: false
62
63
64     build-discarder:
65       daysToKeep: '{build-days-to-keep}'
66       numToKeep: '{build-num-to-keep}'
67       artifactDaysToKeep: '{build-artifact-days-to-keep}'
68       artifactNumToKeep: '{build-artifact-num-to-keep}'
69
70     parameters:
71       - project-parameter:
72           project: '{project}'
73       - gerrit-parameter:
74           branch: '{branch}'
75       - os-parameter:
76           os: 'ubuntu1804'
77       - maven-exec:
78           maven-version: 'mvn33-new'
79       - stream-parameter:
80           stream: '{stream}'
81
82     scm:
83       - gerrit-trigger-scm:
84           credentials-id: 'jenkins-gerrit-credentials'
85           refspec: '$GERRIT_REFSPEC'
86           choosing-strategy: 'gerrit'
87
88     wrappers:
89       - fdio-infra-wrappers:
90           build-timeout: '{build-timeout}'
91
92     triggers:
93       - gerrit-trigger-checkstyle:
94           name: '{project}'
95           branch: '{branch}'
96
97     builders:
98       - maven-target:
99           maven-version: 'mvn33-new'
100           goals: '--version'
101           settings: 'vpp-settings'
102           settings-type: cfp
103           global-settings: 'global-settings'
104           global-settings-type: cfp
105       - provide-maven-settings:
106           settings-file: 'vpp-settings'
107           global-settings-file: 'global-settings'
108       - shell:
109           !include-raw-escape:
110           - ../scripts/setup_vpp_ubuntu_docker_test.sh
111       - shell:
112           !include-raw-escape:
113           - ../scripts/vpp/docs.sh
114
115     publishers:
116       - lf-infra-publish
117       - naginator:
118           rerun-unstable-builds: false
119           max-failed-builds: 1
120           fixed-delay: 90
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       - lf-infra-publish
207       - naginator:
208           rerun-unstable-builds: false
209           max-failed-builds: 1
210           fixed-delay: 90
211
212 - job-template:
213     name: 'vpp-sphinx-docs-verify-{stream}'
214
215     project-type: freestyle
216     node: ubuntu1804-us
217     concurrent: true
218     allow-empty: 'true'
219     fingerprint: false
220     only-if-success: true
221     default-excludes: false
222
223     build-discarder:
224       daysToKeep: '{build-days-to-keep}'
225       numToKeep: '{build-num-to-keep}'
226       artifactDaysToKeep: '{build-artifact-days-to-keep}'
227       artifactNumToKeep: '{build-artifact-num-to-keep}'
228
229     parameters:
230       - project-parameter:
231           project: '{project}'
232       - gerrit-parameter:
233           branch: '{branch}'
234       - os-parameter:
235           os: 'ubuntu1804'
236       - maven-exec:
237           maven-version: 'mvn33-new'
238       - stream-parameter:
239           stream: '{stream}'
240
241     scm:
242       - gerrit-trigger-scm:
243           credentials-id: 'jenkins-gerrit-credentials'
244           refspec: '$GERRIT_REFSPEC'
245           choosing-strategy: 'gerrit'
246
247     wrappers:
248       - fdio-infra-wrappers:
249           build-timeout: '{build-timeout}'
250
251     triggers:
252       - gerrit:
253           server-name: 'Primary'
254           trigger-on:
255             - comment-added-contains-event:
256                 comment-contains-value: 'run-sphinx-docs-verify'
257           projects:
258             - project-compare-type: 'ANT'
259               project-pattern: '{project}'
260               branches:
261                 - branch-compare-type: 'ANT'
262                   branch-pattern: '**/{branch}'
263           skip-vote:
264             successful: true
265             failed: true
266             unstable: true
267             notbuilt: true
268     builders:
269       - maven-target:
270           maven-version: 'mvn33-new'
271           goals: '--version'
272           settings: 'vpp-settings'
273           settings-type: cfp
274           global-settings: 'global-settings'
275           global-settings-type: cfp
276       - provide-maven-settings:
277           settings-file: 'vpp-settings'
278           global-settings-file: 'global-settings'
279       - shell:
280           !include-raw-escape:
281           - ../scripts/setup_vpp_ubuntu_docker_test.sh
282       - shell:
283           !include-raw-escape:
284           - ../scripts/vpp/sphinx-docs.sh
285
286     publishers:
287       - lf-infra-publish
288       - naginator:
289           rerun-unstable-builds: false
290           max-failed-builds: 1
291           fixed-delay: 90
292
293 - job-template:
294     name: 'vpp-sphinx-docs-merge-{stream}'
295
296     project-type: freestyle
297     node: ubuntu1804-us
298     concurrent: false
299     archive-artifacts: 'docs/_build/html/*'
300     allow-empty: 'true'
301     fingerprint: false
302     only-if-success: true
303     default-excludes: false
304
305     build-discarder:
306       daysToKeep: '{build-days-to-keep}'
307       numToKeep: '{build-num-to-keep}'
308       artifactDaysToKeep: '{build-artifact-days-to-keep}'
309       artifactNumToKeep: '{build-artifact-num-to-keep}'
310
311     parameters:
312       - project-parameter:
313           project: '{project}'
314       - gerrit-parameter:
315           branch: '{branch}'
316       - os-parameter:
317           os: 'ubuntu1804'
318       - maven-exec:
319           maven-version: 'mvn33-new'
320       - stream-parameter:
321           stream: '{stream}'
322       - string:
323           name: ARCHIVE_ARTIFACTS
324           default: '{archive-artifacts}'
325           description: Artifacts to archive to the logs server.
326
327     scm:
328       - gerrit-trigger-scm:
329           credentials-id: 'jenkins-gerrit-credentials'
330           refspec: ''
331           choosing-strategy: 'default'
332
333     wrappers:
334       - fdio-infra-wrappers:
335           build-timeout: '{build-timeout}'
336
337     triggers:
338       - gerrit:
339           server-name: 'Primary'
340           trigger-on:
341             - comment-added-contains-event:
342                 comment-contains-value: 'run-sphinx-docs-merged'
343           skip-vote:
344             successful: true
345             failed: true
346             unstable: true
347             notbuilt: true
348
349     builders:
350       - maven-target:
351           maven-version: 'mvn33-new'
352           goals: '--version'
353           settings: 'vpp-settings'
354           settings-type: cfp
355           global-settings: 'global-settings'
356           global-settings-type: cfp
357       - provide-maven-settings:
358           settings-file: 'vpp-settings'
359           global-settings-file: 'global-settings'
360       - shell:
361           !include-raw-escape:
362           - ../scripts/setup_vpp_ubuntu_docker_test.sh
363       - shell:
364           !include-raw-escape:
365           - ../scripts/vpp/sphinx-docs.sh
366
367     publishers:
368       - lf-infra-publish
369       - naginator:
370           rerun-unstable-builds: false
371           max-failed-builds: 1
372           fixed-delay: 90
373
374 - job-template:
375     name: 'vpp-make-test-docs-verify-{stream}'
376
377     project-type: freestyle
378     node: ubuntu1804-us
379     concurrent: true
380     allow-empty: 'true'
381     fingerprint: false
382     only-if-success: true
383     default-excludes: false
384
385     build-discarder:
386       daysToKeep: '{build-days-to-keep}'
387       numToKeep: '{build-num-to-keep}'
388       artifactDaysToKeep: '{build-artifact-days-to-keep}'
389       artifactNumToKeep: '{build-artifact-num-to-keep}'
390
391     parameters:
392       - project-parameter:
393           project: '{project}'
394       - gerrit-parameter:
395           branch: '{branch}'
396       - os-parameter:
397           os: 'ubuntu1804'
398       - maven-exec:
399           maven-version: 'mvn33-new'
400       - stream-parameter:
401           stream: '{stream}'
402
403     scm:
404       - gerrit-trigger-scm:
405           credentials-id: 'jenkins-gerrit-credentials'
406           refspec: '$GERRIT_REFSPEC'
407           choosing-strategy: 'gerrit'
408
409     wrappers:
410       - fdio-infra-wrappers:
411           build-timeout: '{build-timeout}'
412
413     triggers:
414       - gerrit-trigger-checkstyle:
415           name: '{project}'
416           branch: '{branch}'
417
418     builders:
419       - maven-target:
420           maven-version: 'mvn33-new'
421           goals: '--version'
422           settings: 'vpp-settings'
423           settings-type: cfp
424           global-settings: 'global-settings'
425           global-settings-type: cfp
426       - provide-maven-settings:
427           settings-file: 'vpp-settings'
428           global-settings-file: 'global-settings'
429       - shell:
430           !include-raw-escape:
431           - ../scripts/setup_vpp_ubuntu_docker_test.sh
432       - shell:
433           !include-raw-escape:
434           - ../scripts/vpp/make-test-docs.sh
435
436     publishers:
437       - lf-infra-publish
438       - naginator:
439           rerun-unstable-builds: false
440           max-failed-builds: 1
441           fixed-delay: 90
442
443 - job-template:
444     name: 'vpp-make-test-docs-merge-{stream}'
445
446     project-type: freestyle
447     node: ubuntu1804-us
448     concurrent: false
449     archive-artifacts: '**/build-root/build-test/doc/html/*'
450     allow-empty: 'true'
451     fingerprint: false
452     only-if-success: true
453     default-excludes: false
454
455
456     build-discarder:
457       daysToKeep: '{build-days-to-keep}'
458       numToKeep: '{build-num-to-keep}'
459       artifactDaysToKeep: '{build-artifact-days-to-keep}'
460       artifactNumToKeep: '{build-artifact-num-to-keep}'
461
462     parameters:
463       - project-parameter:
464           project: '{project}'
465       - gerrit-parameter:
466           branch: '{branch}'
467       - os-parameter:
468           os: 'ubuntu1804'
469       - maven-exec:
470           maven-version: 'mvn33-new'
471       - stream-parameter:
472           stream: '{stream}'
473       - string:
474           name: ARCHIVE_ARTIFACTS
475           default: '{archive-artifacts}'
476           description: Artifacts to archive to the logs server.
477
478     scm:
479       - gerrit-trigger-scm:
480           credentials-id: 'jenkins-gerrit-credentials'
481           refspec: ''
482           choosing-strategy: 'default'
483
484     wrappers:
485       - fdio-infra-wrappers:
486           build-timeout: '{build-timeout}'
487
488     triggers:
489       - reverse:
490           jobs: 'vpp-merge-{stream}-ubuntu1804'
491           result: 'success'
492       - gerrit:
493           server-name: 'Primary'
494           trigger-on:
495             - comment-added-contains-event:
496                 comment-contains-value: 'run-docs'
497           projects:
498             - project-compare-type: 'ANT'
499               project-pattern: '{project}'
500               branches:
501                 - branch-compare-type: 'ANT'
502                   branch-pattern: '**/{branch}'
503           skip-vote:
504             successful: true
505             failed: true
506             unstable: true
507             notbuilt: true
508
509     builders:
510       - maven-target:
511           maven-version: 'mvn33-new'
512           goals: '--version'
513           settings: 'vpp-settings'
514           settings-type: cfp
515           global-settings: 'global-settings'
516           global-settings-type: cfp
517       - provide-maven-settings:
518           settings-file: 'vpp-settings'
519           global-settings-file: 'global-settings'
520       - shell:
521           !include-raw-escape:
522           - ../scripts/setup_vpp_ubuntu_docker_test.sh
523       - shell:
524           !include-raw-escape:
525           - ../scripts/vpp/make-test-docs.sh
526
527     publishers:
528       - lf-infra-publish
529       - naginator:
530           rerun-unstable-builds: false
531           max-failed-builds: 1
532           fixed-delay: 90