docs.yaml revision 4bb9f8b6
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      - ubuntu1604:
13          repo-os-part: 'ubuntu.xenial.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
26    type:
27      - short
28      - long
29
30- project:
31    name: sphinx
32    jobs:
33      - 'vpp-sphinx-docs-merge-{stream}'
34      - 'vpp-sphinx-docs-verify-{stream}'
35
36    project: 'vpp'
37    os:
38      - ubuntu1604:
39          repo-os-part: 'ubuntu.xenial.main'
40
41    stream:
42      - master:
43          branch: 'master'
44          repo-stream-part: 'master'
45    type:
46      - short
47      - long
48
49- job-template:
50    name: 'vpp-docs-verify-{stream}'
51
52    project-type: freestyle
53    node: ubuntu1604-us
54    concurrent: true
55    allow-empty: 'true'
56    fingerprint: false
57    only-if-success: true
58    default-excludes: false
59
60
61    build-discarder:
62      daysToKeep: '{build-days-to-keep}'
63      numToKeep: '{build-num-to-keep}'
64      artifactDaysToKeep: '{build-artifact-days-to-keep}'
65      artifactNumToKeep: '{build-artifact-num-to-keep}'
66
67    parameters:
68      - project-parameter:
69          project: '{project}'
70      - gerrit-parameter:
71          branch: '{branch}'
72      - os-parameter:
73          os: 'ubuntu1604'
74      - maven-exec:
75          maven-version: 'mvn33-new'
76      - stream-parameter:
77          stream: '{stream}'
78
79    scm:
80      - gerrit-trigger-scm:
81          credentials-id: 'jenkins-gerrit-credentials'
82          refspec: '$GERRIT_REFSPEC'
83          choosing-strategy: 'gerrit'
84
85    wrappers:
86      - fdio-infra-wrappers:
87          build-timeout: '{build-timeout}'
88
89    triggers:
90      - gerrit-trigger-checkstyle:
91          name: '{project}'
92          branch: '{branch}'
93
94    builders:
95      - maven-target:
96          maven-version: 'mvn33-new'
97          goals: '--version'
98          settings: 'vpp-settings'
99          settings-type: cfp
100          global-settings: 'global-settings'
101          global-settings-type: cfp
102      - provide-maven-settings:
103          settings-file: 'vpp-settings'
104          global-settings-file: 'global-settings'
105      - shell:
106          !include-raw-escape: ../scripts/setup_vpp_ubuntu_docker_test.sh
107      - shell:
108          !include-raw-escape: include-raw-vpp-docs.sh
109
110    publishers:
111        - fdio-infra-shiplogs:
112            maven-version: 'mvn33-new'
113        - naginator:
114            rerun-unstable-builds: false
115            max-failed-builds: 1
116            fixed-delay: 90
117
118- job-template:
119    name: 'vpp-docs-merge-{stream}'
120
121    project-type: freestyle
122    node: ubuntu1604-us
123    concurrent: false
124    archive-artifacts: '**/build-root/docs/html/*'
125    allow-empty: 'true'
126    fingerprint: false
127    only-if-success: true
128    default-excludes: false
129
130
131    build-discarder:
132      daysToKeep: '{build-days-to-keep}'
133      numToKeep: '{build-num-to-keep}'
134      artifactDaysToKeep: '{build-artifact-days-to-keep}'
135      artifactNumToKeep: '{build-artifact-num-to-keep}'
136
137    parameters:
138      - project-parameter:
139          project: '{project}'
140      - gerrit-parameter:
141          branch: '{branch}'
142      - os-parameter:
143          os: 'ubuntu1604'
144      - maven-exec:
145          maven-version: 'mvn33-new'
146      - stream-parameter:
147          stream: '{stream}'
148      - string:
149          name: ARCHIVE_ARTIFACTS
150          description: Artifacts to archive to the logs server.
151
152    scm:
153      - gerrit-trigger-scm:
154          credentials-id: 'jenkins-gerrit-credentials'
155          refspec: ''
156          choosing-strategy: 'default'
157
158    wrappers:
159      - fdio-infra-wrappers:
160          build-timeout: '{build-timeout}'
161
162    triggers:
163      - reverse:
164          jobs: 'vpp-merge-{stream}-ubuntu1604'
165          result: 'success'
166      - gerrit:
167          server-name: 'Primary'
168          trigger-on:
169            - comment-added-contains-event:
170                comment-contains-value: 'run-docs'
171          projects:
172            - project-compare-type: 'ANT'
173              project-pattern: '{project}'
174              branches:
175                - branch-compare-type: 'ANT'
176                  branch-pattern: '**/{branch}'
177          skip-vote:
178            successful: true
179            failed: true
180            unstable: true
181            notbuilt: true
182
183    builders:
184      - maven-target:
185          maven-version: 'mvn33-new'
186          goals: '--version'
187          settings: 'vpp-settings'
188          settings-type: cfp
189          global-settings: 'global-settings'
190          global-settings-type: cfp
191      - provide-maven-settings:
192          settings-file: 'vpp-settings'
193          global-settings-file: 'global-settings'
194      - shell:
195          !include-raw-escape: ../scripts/setup_vpp_ubuntu_docker_test.sh
196      - shell:
197          !include-raw-escape: include-raw-vpp-docs.sh
198
199    publishers:
200      - fdio-infra-shiplogs:
201          maven-version: 'mvn33-new'
202      - naginator:
203          rerun-unstable-builds: false
204          max-failed-builds: 1
205          fixed-delay: 90
206
207- job-template:
208    name: 'vpp-sphinx-docs-verify-{stream}'
209
210    project-type: freestyle
211    node: ubuntu1604-us
212    concurrent: true
213    allow-empty: 'true'
214    fingerprint: false
215    only-if-success: true
216    default-excludes: false
217
218    build-discarder:
219      daysToKeep: '{build-days-to-keep}'
220      numToKeep: '{build-num-to-keep}'
221      artifactDaysToKeep: '{build-artifact-days-to-keep}'
222      artifactNumToKeep: '{build-artifact-num-to-keep}'
223
224    parameters:
225      - project-parameter:
226          project: '{project}'
227      - gerrit-parameter:
228          branch: '{branch}'
229      - os-parameter:
230          os: 'ubuntu1604'
231      - maven-exec:
232          maven-version: 'mvn33-new'
233      - stream-parameter:
234          stream: '{stream}'
235
236    scm:
237      - gerrit-trigger-scm:
238          credentials-id: 'jenkins-gerrit-credentials'
239          refspec: '$GERRIT_REFSPEC'
240          choosing-strategy: 'gerrit'
241
242    wrappers:
243      - fdio-infra-wrappers:
244          build-timeout: '{build-timeout}'
245
246    triggers:
247      - gerrit:
248          server-name: 'Primary'
249          trigger-on:
250            - comment-added-contains-event:
251                comment-contains-value: 'run-sphinx-docs-verify'
252          projects:
253            - project-compare-type: 'ANT'
254              project-pattern: '{project}'
255              branches:
256                - branch-compare-type: 'ANT'
257                  branch-pattern: '**/{branch}'
258          skip-vote:
259            successful: true
260            failed: true
261            unstable: true
262            notbuilt: true
263    builders:
264      - maven-target:
265          maven-version: 'mvn33-new'
266          goals: '--version'
267          settings: 'vpp-settings'
268          settings-type: cfp
269          global-settings: 'global-settings'
270          global-settings-type: cfp
271      - provide-maven-settings:
272          settings-file: 'vpp-settings'
273          global-settings-file: 'global-settings'
274      - shell:
275          !include-raw-escape: ../scripts/setup_vpp_ubuntu_docker_test.sh
276      - shell:
277          !include-raw-escape: include-raw-vpp-sphinx-docs.sh
278
279    publishers:
280        - fdio-infra-shiplogs:
281            maven-version: 'mvn33-new'
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: ubuntu1604-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: 'ubuntu1604'
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        - fdio-infra-shiplogs:
361            maven-version: 'mvn33-new'
362        - naginator:
363            rerun-unstable-builds: false
364            max-failed-builds: 1
365            fixed-delay: 90
366
367- job-template:
368    name: 'vpp-make-test-docs-verify-{stream}'
369
370    project-type: freestyle
371    node: ubuntu1604-us
372    concurrent: true
373    allow-empty: 'true'
374    fingerprint: false
375    only-if-success: true
376    default-excludes: false
377
378    build-discarder:
379      daysToKeep: '{build-days-to-keep}'
380      numToKeep: '{build-num-to-keep}'
381      artifactDaysToKeep: '{build-artifact-days-to-keep}'
382      artifactNumToKeep: '{build-artifact-num-to-keep}'
383
384    parameters:
385      - project-parameter:
386          project: '{project}'
387      - gerrit-parameter:
388          branch: '{branch}'
389      - os-parameter:
390          os: 'ubuntu1604'
391      - maven-exec:
392          maven-version: 'mvn33-new'
393      - stream-parameter:
394          stream: '{stream}'
395
396    scm:
397      - gerrit-trigger-scm:
398          credentials-id: 'jenkins-gerrit-credentials'
399          refspec: '$GERRIT_REFSPEC'
400          choosing-strategy: 'gerrit'
401
402    wrappers:
403      - fdio-infra-wrappers:
404          build-timeout: '{build-timeout}'
405
406    triggers:
407      - gerrit-trigger-checkstyle:
408          name: '{project}'
409          branch: '{branch}'
410
411    builders:
412      - maven-target:
413          maven-version: 'mvn33-new'
414          goals: '--version'
415          settings: 'vpp-settings'
416          settings-type: cfp
417          global-settings: 'global-settings'
418          global-settings-type: cfp
419      - provide-maven-settings:
420          settings-file: 'vpp-settings'
421          global-settings-file: 'global-settings'
422      - shell:
423          !include-raw-escape: ../scripts/setup_vpp_ubuntu_docker_test.sh
424      - shell:
425          !include-raw-escape: include-raw-vpp-make-test-docs.sh
426
427    publishers:
428      - fdio-infra-shiplogs:
429          maven-version: 'mvn33-new'
430      - naginator:
431          rerun-unstable-builds: false
432          max-failed-builds: 1
433          fixed-delay: 90
434
435- job-template:
436    name: 'vpp-make-test-docs-merge-{stream}'
437
438    project-type: freestyle
439    node: ubuntu1604-us
440    concurrent: false
441    archive-artifacts: '**/test/doc/build/html/*'
442    allow-empty: 'true'
443    fingerprint: false
444    only-if-success: true
445    default-excludes: false
446
447
448    build-discarder:
449      daysToKeep: '{build-days-to-keep}'
450      numToKeep: '{build-num-to-keep}'
451      artifactDaysToKeep: '{build-artifact-days-to-keep}'
452      artifactNumToKeep: '{build-artifact-num-to-keep}'
453
454    parameters:
455      - project-parameter:
456          project: '{project}'
457      - gerrit-parameter:
458          branch: '{branch}'
459      - os-parameter:
460          os: 'ubuntu1604'
461      - maven-exec:
462          maven-version: 'mvn33-new'
463      - stream-parameter:
464          stream: '{stream}'
465      - string:
466          name: ARCHIVE_ARTIFACTS
467          default: '{archive-artifacts}'
468          description: Artifacts to archive to the logs server.
469
470    scm:
471      - gerrit-trigger-scm:
472          credentials-id: 'jenkins-gerrit-credentials'
473          refspec: ''
474          choosing-strategy: 'default'
475
476    wrappers:
477      - fdio-infra-wrappers:
478          build-timeout: '{build-timeout}'
479
480    triggers:
481      - reverse:
482          jobs: 'vpp-merge-{stream}-ubuntu1604'
483          result: 'success'
484      - gerrit:
485          server-name: 'Primary'
486          trigger-on:
487            - comment-added-contains-event:
488                comment-contains-value: 'run-docs'
489          projects:
490            - project-compare-type: 'ANT'
491              project-pattern: '{project}'
492              branches:
493                - branch-compare-type: 'ANT'
494                  branch-pattern: '**/{branch}'
495          skip-vote:
496            successful: true
497            failed: true
498            unstable: true
499            notbuilt: true
500
501    builders:
502      - maven-target:
503          maven-version: 'mvn33-new'
504          goals: '--version'
505          settings: 'vpp-settings'
506          settings-type: cfp
507          global-settings: 'global-settings'
508          global-settings-type: cfp
509      - provide-maven-settings:
510          settings-file: 'vpp-settings'
511          global-settings-file: 'global-settings'
512      - shell:
513          !include-raw-escape: ../scripts/setup_vpp_ubuntu_docker_test.sh
514      - shell:
515          !include-raw-escape: include-raw-vpp-make-test-docs.sh
516
517    publishers:
518      - fdio-infra-shiplogs:
519          maven-version: 'mvn33-new'
520      - naginator:
521          rerun-unstable-builds: false
522          max-failed-builds: 1
523          fixed-delay: 90
524