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