Align CSIT jobs VPP compilation with VPP jobs compilation
[ci-management.git] / jjb / vpp / vpp.yaml
1 ---
2 - project:
3     name: vpp
4     jobs:
5       - 'vpp-verify-{stream}-{os}'
6       - 'vpp-merge-{stream}-{os}'
7
8     project: 'vpp'
9     os:
10       - ubuntu1604:
11           repo-os-part: 'ubuntu.xenial.main'
12       - centos7:
13           repo-os-part: 'centos7'
14
15     stream:
16       - master:
17           branch: 'master'
18           repo-stream-part: 'master'
19       - '1810':
20           branch: 'stable/1810'
21           repo-stream-part: 'stable.1810'
22       - '1901':
23           branch: 'stable/1901'
24           repo-stream-part: 'stable.1901'
25       - '1904':
26           branch: 'stable/1904'
27           repo-stream-part: 'stable.1904'
28
29 - project:
30     name: vpp-clang
31     jobs:
32       - 'vpp-verify-{stream}-clang'
33
34     project: 'vpp'
35     os:
36       - ubuntu1804:
37           repo-os-part: 'ubuntu.bionic.main'
38       - centos7:
39           repo-os-part: 'centos7'
40       - opensuse:
41           repo-os-part: 'opensuse'
42
43     stream:
44       - master:
45           branch: 'master'
46           repo-stream-part: 'master'
47
48 - project:
49     name: vpp-misc
50     jobs:
51       - 'vpp-checkstyle-verify-{stream}'
52     project: 'vpp'
53     stream:
54       - master:
55           branch: 'master'
56           repo-stream-part: 'master'
57       - '1810':
58           branch: 'stable/1810'
59           repo-stream-part: 'stable.1810'
60       - '1901':
61           branch: 'stable/1901'
62           repo-stream-part: 'stable.1901'
63       - '1904':
64           branch: 'stable/1904'
65           repo-stream-part: 'stable.1904'
66     os: ubuntu1604
67
68 - project:
69     name: vpp-perpatch
70     jobs:
71       - 'vpp-csit-verify-device-{stream}-1n-skx'
72       - 'vpp-csit-verify-perf-{stream}-{node-arch}'
73     project: 'vpp'
74     stream:
75       - master:
76           branch: 'master'
77           repo-stream-part: 'master'
78     os: ubuntu1804
79     node-arch:
80       - 2n-skx
81       - 3n-skx
82       - 3n-hsw
83
84 - project:
85     name: vpp-master-only
86     jobs:
87       - 'vpp-beta-verify-{stream}-{os}'
88       - 'vpp-beta-merge-{stream}-{os}'
89     project: 'vpp'
90     stream:
91       - master:
92           branch: 'master'
93           repo-stream-part: 'master'
94       - '1901':
95           branch: 'stable/1901'
96           repo-stream-part: 'stable.1901'
97       - '1904':
98           branch: 'stable/1904'
99           repo-stream-part: 'stable.1904'
100     os:
101       - ubuntu1804:
102           repo-os-part: 'ubuntu.bionic.main'
103
104 - project:
105     name: vpp-arm
106     jobs:
107       - 'vpp-arm-verify-{stream}-{os}'
108       - 'vpp-arm-merge-{stream}-{os}'
109     project: 'vpp'
110     stream:
111       - master:
112           branch: 'master'
113           repo-stream-part: 'master'
114       - '1901':
115           branch: 'stable/1901'
116           repo-stream-part: 'stable.1901'
117       - '1904':
118           branch: 'stable/1904'
119           repo-stream-part: 'stable.1904'
120     os:
121       - ubuntu1804:
122           repo-os-part: 'ubuntu-arm.bionic.main'
123
124 - project:
125     name: vpp-arm-old
126     jobs:
127       - 'vpp-arm-old-verify-{stream}-{os}'
128       - 'vpp-arm-old-merge-{stream}-{os}'
129     project: 'vpp'
130     stream:
131       - '1810':
132           branch: 'stable/1810'
133           repo-stream-part: 'stable.1810'
134     os:
135       - ubuntu1604:
136           repo-os-part: 'ubuntu-arm.xenial.main'
137
138 - project:
139     name: vpp-view
140     views:
141       - project-view
142     project-name: vpp
143
144 - job-template:
145     name: 'vpp-beta-verify-{stream}-{os}'
146
147     project-type: freestyle
148     node: '{os}-us'
149     concurrent: true
150     archive-artifacts: >
151       **/build-root/*.rpm
152       **/build-root/*.deb
153       **/dpdk/*.rpm
154       **/dpdk/*.deb
155       **/tmp/vpp-failed-unittests/*/* **/core
156     allow-empty: 'true'
157     fingerprint: false
158     only-if-success: true
159     default-excludes: false
160
161     triggers:
162       - gerrit-trigger-checkstyle:
163           name: '{project}'
164           branch: '{branch}'
165
166     build-discarder:
167       daysToKeep: '{build-days-to-keep}'
168       numToKeep: 100
169       artifactDaysToKeep: '{build-artifact-days-to-keep}'
170       artifactNumToKeep: '{build-artifact-num-to-keep}'
171
172     parameters:
173       - project-parameter:
174           project: '{project}'
175       - gerrit-parameter:
176           branch: '{branch}'
177       - os-parameter:
178           os: '{os}'
179       - repo-name-parameter:
180           repo-name: '{repo-stream-part}.{repo-os-part}'
181       - stream-parameter:
182           stream: '{stream}'
183       - string:
184           name: ARCHIVE_ARTIFACTS
185           default: '{archive-artifacts}'
186           description: Artifacts to archive to the logs server.
187
188     scm:
189       - gerrit-trigger-scm:
190           credentials-id: 'jenkins-gerrit-credentials'
191           refspec: '$GERRIT_REFSPEC'
192           choosing-strategy: 'gerrit'
193
194     wrappers:
195       - fdio-infra-wrappers:
196           build-timeout: '75'
197
198     builders:
199       - shell:
200           !include-raw-escape: ../scripts/setup_vpp_ubuntu_docker_test.sh
201       - shell:
202           !include-raw-escape:
203           - ../scripts/setup_vpp_dpdk_dev_env.sh
204           - include-raw-vpp-build.sh
205
206     publishers:
207       - fdio-infra-shiplogs:
208           maven-version: 'mvn33-new'
209       - naginator:
210           rerun-unstable-builds: false
211           max-failed-builds: 1
212           fixed-delay: 90
213
214 - job-template:
215     name: 'vpp-beta-merge-{stream}-{os}'
216
217     project-type: freestyle
218     node: '{os}-us'
219     archive-artifacts: >
220       **/build-root/*.rpm
221       **/build-root/*.deb
222       **/dpdk/*.rpm
223       **/dpdk/*.deb
224     allow-empty: 'true'
225     fingerprint: false
226     only-if-success: true
227     default-excludes: false
228
229     build-discarder:
230       daysToKeep: '{build-days-to-keep}'
231       numToKeep: 100
232       artifactDaysToKeep: '{build-artifact-days-to-keep}'
233       artifactNumToKeep: '{build-artifact-num-to-keep}'
234
235     parameters:
236       - project-parameter:
237           project: '{project}'
238       - gerrit-parameter:
239           branch: '{branch}'
240       - os-parameter:
241           os: '{os}'
242       - maven-project-parameter:
243           maven: 'mvn33-new'
244       - maven-exec:
245           maven-version: 'mvn33-new'
246       - stream-parameter:
247           stream: '{stream}'
248       - repo-name-parameter:
249           repo-name: '{repo-stream-part}.{repo-os-part}'
250       - string:
251           name: ARCHIVE_ARTIFACTS
252           default: '{archive-artifacts}'
253           description: Artifacts to archive to the logs server.
254
255     scm:
256       - gerrit-trigger-scm:
257           credentials-id: 'jenkins-gerrit-credentials'
258           refspec: ''
259           choosing-strategy: 'default'
260
261     wrappers:
262       - fdio-infra-wrappers:
263           build-timeout: 120
264
265     triggers:
266       - gerrit-trigger-patch-merged:
267           name: '{project}'
268           branch: '{branch}'
269
270     builders:
271       - config-file-provider:
272           files:
273             - file-id: '.packagecloud'
274               target: '/root'
275       - config-file-provider:
276           files:
277             - file-id: 'packagecloud_api'
278               target: '/root'
279       - maven-target:
280           maven-version: 'mvn33-new'
281           goals: '--version'
282           settings: 'vpp-settings'
283           settings-type: cfp
284           global-settings: 'global-settings'
285           global-settings-type: cfp
286       - shell:
287           !include-raw-escape: ../scripts/setup_vpp_ubuntu_docker_test.sh
288       - shell:
289           !include-raw-escape:
290           - ../scripts/setup_vpp_dpdk_dev_env.sh
291           - include-raw-vpp-build.sh
292       - provide-maven-settings:
293           settings-file: 'vpp-settings'
294           global-settings-file: 'global-settings'
295       - shell:
296           !include-raw-escape:
297           - ../scripts/packagecloud_push.sh
298       - shell:
299           !include-raw-escape:
300           - ../scripts/maven_push_functions.sh
301           - include-raw-vpp-maven-push.sh
302
303     publishers:
304       - fdio-infra-shiplogs:
305           maven-version: 'mvn33-new'
306
307 - job-template:
308     name: 'vpp-arm-old-verify-{stream}-{os}'
309
310     project-type: freestyle
311     node: '{os}arm-us'
312     concurrent: true
313     archive-artifacts: >
314       **/build-root/*.rpm
315       **/build-root/*.deb
316       **/dpdk/*.rpm
317       **/dpdk/*.deb
318     allow-empty: 'true'
319     fingerprint: false
320     only-if-success: true
321     default-excludes: false
322
323     build-discarder:
324       daysToKeep: '{build-days-to-keep}'
325       numToKeep: 100
326       artifactDaysToKeep: '{build-artifact-days-to-keep}'
327       artifactNumToKeep: '{build-artifact-num-to-keep}'
328
329     parameters:
330       - project-parameter:
331           project: '{project}'
332       - gerrit-parameter:
333           branch: '{branch}'
334       - os-parameter:
335           os: '{os}'
336       - repo-name-parameter:
337           repo-name: '{repo-stream-part}.{repo-os-part}'
338       - stream-parameter:
339           stream: '{stream}'
340       - string:
341           name: ARCHIVE_ARTIFACTS
342           default: '{archive-artifacts}'
343           description: Artifacts to archive to the logs server.
344
345     scm:
346       - gerrit-trigger-scm:
347           credentials-id: 'jenkins-gerrit-credentials'
348           refspec: '$GERRIT_REFSPEC'
349           choosing-strategy: 'gerrit'
350
351     wrappers:
352       - fdio-infra-wrappers:
353           build-timeout: 120
354
355     triggers:
356       - gerrit-trigger-checkstyle:
357           name: '{project}'
358           branch: '{branch}'
359
360     builders:
361       - shell:
362           !include-raw-escape: ../scripts/setup_vpp_ubuntu_arm_test.sh
363       - shell:
364           !include-raw-escape:
365           - ../scripts/setup_vpp_dpdk_dev_env.sh
366           - include-raw-vpp-arm-build-no-test.sh
367
368     publishers:
369       - fdio-infra-shiplogs:
370           maven-version: 'mvn33-new'
371           archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core'
372
373 - job-template:
374     name: 'vpp-arm-verify-{stream}-{os}'
375
376     project-type: freestyle
377     node: '{os}arm-us'
378     concurrent: true
379     archive-artifacts: >
380       **/build-root/*.rpm
381       **/build-root/*.deb
382       **/dpdk/*.rpm
383       **/dpdk/*.deb
384     allow-empty: 'true'
385     fingerprint: false
386     only-if-success: true
387     default-excludes: false
388
389     build-discarder:
390       daysToKeep: '{build-days-to-keep}'
391       numToKeep: 100
392       artifactDaysToKeep: '{build-artifact-days-to-keep}'
393       artifactNumToKeep: '{build-artifact-num-to-keep}'
394
395     parameters:
396       - project-parameter:
397           project: '{project}'
398       - gerrit-parameter:
399           branch: '{branch}'
400       - os-parameter:
401           os: '{os}'
402       - repo-name-parameter:
403           repo-name: '{repo-stream-part}.{repo-os-part}'
404       - stream-parameter:
405           stream: '{stream}'
406       - string:
407           name: ARCHIVE_ARTIFACTS
408           default: '{archive-artifacts}'
409           description: Artifacts to archive to the logs server.
410
411     scm:
412       - gerrit-trigger-scm:
413           credentials-id: 'jenkins-gerrit-credentials'
414           refspec: '$GERRIT_REFSPEC'
415           choosing-strategy: 'gerrit'
416
417     wrappers:
418       - fdio-infra-wrappers:
419           build-timeout: 120
420
421     triggers:
422       - gerrit-trigger-checkstyle:
423           name: '{project}'
424           branch: '{branch}'
425
426     builders:
427       - shell:
428           !include-raw-escape: ../scripts/setup_vpp_ubuntu_arm_test.sh
429       - shell:
430           !include-raw-escape:
431           - ../scripts/setup_vpp_dpdk_dev_env.sh
432           - include-raw-vpp-parallel-vars.sh
433           - include-raw-vpp-arm-build.sh
434
435     publishers:
436       - fdio-infra-shiplogs:
437           maven-version: 'mvn33-new'
438           archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core'
439       - naginator:
440           rerun-unstable-builds: false
441           max-failed-builds: 1
442           fixed-delay: 90
443
444 - job-template:
445     name: 'vpp-arm-merge-{stream}-{os}'
446
447     project-type: freestyle
448     node: '{os}arm-m'
449     archive-artifacts: >
450       **/build-root/*.rpm
451       **/build-root/*.deb
452       **/dpdk/*.rpm
453       **/dpdk/*.deb
454     allow-empty: 'true'
455     fingerprint: false
456     only-if-success: true
457     default-excludes: false
458
459     build-discarder:
460       daysToKeep: '{build-days-to-keep}'
461       numToKeep: 100
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: '{os}'
472       - maven-project-parameter:
473           maven: 'mvn33-new'
474       - maven-exec:
475           maven-version: 'mvn33-new'
476       - stream-parameter:
477           stream: '{stream}'
478       - repo-name-parameter:
479           repo-name: '{repo-stream-part}.{repo-os-part}'
480       - string:
481           name: ARCHIVE_ARTIFACTS
482           default: '{archive-artifacts}'
483           description: Artifacts to archive to the logs server.
484
485     scm:
486       - gerrit-trigger-scm:
487           credentials-id: 'jenkins-gerrit-credentials'
488           refspec: ''
489           choosing-strategy: 'default'
490
491     wrappers:
492       - fdio-infra-wrappers:
493           build-timeout: 120
494
495     triggers:
496       - gerrit-trigger-patch-merged:
497           name: '{project}'
498           branch: '{branch}'
499
500     builders:
501       - config-file-provider:
502           files:
503             - file-id: '.packagecloud'
504               target: '/root'
505       - config-file-provider:
506           files:
507             - file-id: 'packagecloud_api'
508               target: '/root'
509       - maven-target:
510           maven-version: 'mvn33-new'
511           goals: '--version'
512           settings: 'vpp-settings'
513           settings-type: cfp
514           global-settings: 'global-settings'
515           global-settings-type: cfp
516       - shell:
517           !include-raw-escape: ../scripts/setup_vpp_ubuntu_arm_test.sh
518       - shell:
519           !include-raw-escape:
520           - ../scripts/setup_vpp_dpdk_dev_env.sh
521           - include-raw-vpp-parallel-vars.sh
522           - include-raw-vpp-arm-build-no-test.sh
523
524       - provide-maven-settings:
525           settings-file: 'vpp-settings'
526           global-settings-file: 'global-settings'
527       - shell:
528           !include-raw-escape:
529           - ../scripts/packagecloud_push.sh
530
531     publishers:
532       - fdio-infra-shiplogs:
533           maven-version: 'mvn33-new'
534
535 - job-template:
536     name: 'vpp-arm-old-merge-{stream}-{os}'
537
538     project-type: freestyle
539     node: '{os}arm-us'
540     archive-artifacts: >
541       **/build-root/*.rpm
542       **/build-root/*.deb
543       **/dpdk/*.rpm
544       **/dpdk/*.deb
545     allow-empty: 'true'
546     fingerprint: false
547     only-if-success: true
548     default-excludes: false
549
550     build-discarder:
551       daysToKeep: '{build-days-to-keep}'
552       numToKeep: 100
553       artifactDaysToKeep: '{build-artifact-days-to-keep}'
554       artifactNumToKeep: '{build-artifact-num-to-keep}'
555
556     parameters:
557       - project-parameter:
558           project: '{project}'
559       - gerrit-parameter:
560           branch: '{branch}'
561       - os-parameter:
562           os: '{os}'
563       - maven-project-parameter:
564           maven: 'mvn33-new'
565       - maven-exec:
566           maven-version: 'mvn33-new'
567       - stream-parameter:
568           stream: '{stream}'
569       - repo-name-parameter:
570           repo-name: '{repo-stream-part}.{repo-os-part}'
571       - string:
572           name: ARCHIVE_ARTIFACTS
573           default: '{archive-artifacts}'
574           description: Artifacts to archive to the logs server.
575
576     scm:
577       - gerrit-trigger-scm:
578           credentials-id: 'jenkins-gerrit-credentials'
579           refspec: ''
580           choosing-strategy: 'default'
581
582     wrappers:
583       - fdio-infra-wrappers:
584           build-timeout: 120
585
586     triggers:
587       - gerrit-trigger-patch-merged:
588           name: '{project}'
589           branch: '{branch}'
590
591     builders:
592       - config-file-provider:
593           files:
594             - file-id: '.packagecloud'
595               target: '/root'
596       - config-file-provider:
597           files:
598             - file-id: 'packagecloud_api'
599               target: '/root'
600       - maven-target:
601           maven-version: 'mvn33-new'
602           goals: '--version'
603           settings: 'vpp-settings'
604           settings-type: cfp
605           global-settings: 'global-settings'
606           global-settings-type: cfp
607       - shell:
608           !include-raw-escape: ../scripts/setup_vpp_ubuntu_arm_test.sh
609       - shell:
610           !include-raw-escape:
611           - ../scripts/setup_vpp_dpdk_dev_env.sh
612           - include-raw-vpp-parallel-vars.sh
613           - include-raw-vpp-arm-build-no-test.sh
614
615       - provide-maven-settings:
616           settings-file: 'vpp-settings'
617           global-settings-file: 'global-settings'
618       - shell:
619           !include-raw-escape:
620           - ../scripts/packagecloud_push.sh
621       - shell:
622           !include-raw-escape:
623           - ../scripts/maven_push_functions.sh
624           - include-raw-vpp-maven-push.sh
625
626     publishers:
627       - fdio-infra-shiplogs:
628           maven-version: 'mvn33-new'
629
630 - job-template:
631     name: 'vpp-checkstyle-verify-{stream}'
632
633     project-type: freestyle
634     node: '{os}-us'
635     concurrent: true
636
637     build-discarder:
638       daysToKeep: '{build-days-to-keep}'
639       numToKeep: '{build-num-to-keep}'
640       artifactDaysToKeep: '{build-artifact-days-to-keep}'
641       artifactNumToKeep: '{build-artifact-num-to-keep}'
642
643     parameters:
644       - project-parameter:
645           project: '{project}'
646       - gerrit-parameter:
647           branch: '{branch}'
648       - os-parameter:
649           os: '{os}'
650       - repo-name-parameter:
651           repo-name: '{repo-stream-part}.ubuntu.xenial.main'
652
653     scm:
654       - gerrit-trigger-scm:
655           credentials-id: 'jenkins-gerrit-credentials'
656           refspec: '$GERRIT_REFSPEC'
657           choosing-strategy: 'gerrit'
658
659     wrappers:
660       - fdio-infra-wrappers:
661           build-timeout: '{build-timeout}'
662
663     triggers:
664       - gerrit:
665           server-name: 'Primary'
666           trigger-on:
667             - patchset-created-event:
668                 exclude-drafts: 'true'
669                 exclude-trivial-rebase: 'false'
670                 exclude-no-code-change: 'true'
671             - draft-published-event
672             - comment-added-contains-event:
673                 comment-contains-value: 'checkstylecheck'
674             - comment-added-contains-event:
675                 comment-contains-value: 'docsonly'
676             - comment-added-contains-event:
677                 comment-contains-value: 'recheck'
678             - comment-added-contains-event:
679                 comment-contains-value: 'reverify'
680           projects:
681             - project-compare-type: 'ANT'
682               project-pattern: '{project}'
683               branches:
684                 - branch-compare-type: 'ANT'
685                   branch-pattern: '**/{branch}'
686               file-paths:
687                 - compare-type: REG_EXP
688                   pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
689               forbidden-file-paths:
690                 - compare-type: REG_EXP
691                   pattern: .*docs\/.*
692                 - compare-type: REG_EXP
693                   pattern: .*extras\/emacs\/.*
694               disable-strict-forbidden-file-verification: 'true'
695           override-votes: true
696           gerrit-build-notbuilt-verified-value: 0
697           gerrit-build-successful-verified-value: 1
698           # yamllint disable-line rule:line-length
699           notbuilt-message: 'Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes.'
700           # yamllint disable-line rule:line-length
701           failed-message: 'Checkstyle failed. No further verify jobs will be started.'
702           successful-message: 'checkstyle_success'
703           skip-vote:
704             successful: true
705             failed: false
706             unstable: false
707             notbuilt: false
708
709     builders:
710       - shell:
711           !include-raw-escape: include-raw-vpp-checkstyle.sh
712       - shell:
713           !include-raw-escape: include-raw-vpp-test-checkstyle.sh
714       - shell:
715           !include-raw-escape: include-raw-vpp-commitmsg.sh
716
717     publishers:
718       - fdio-infra-shiplogs:
719           maven-version: 'mvn33-new'
720           archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core'
721       - naginator:
722           rerun-unstable-builds: true
723           max-failed-builds: 1
724           fixed-delay: 90
725
726 - job-template:
727     name: 'vpp-verify-{stream}-{os}'
728
729     project-type: freestyle
730     node: '{os}-us'
731     concurrent: true
732     archive-artifacts: >
733       **/build-root/*.rpm
734       **/build-root/*.deb
735       **/dpdk/*.rpm
736       **/dpdk/*.deb
737     allow-empty: 'true'
738     fingerprint: false
739     only-if-success: true
740     default-excludes: false
741
742     build-discarder:
743       daysToKeep: '{build-days-to-keep}'
744       numToKeep: 100
745       artifactDaysToKeep: '{build-artifact-days-to-keep}'
746       artifactNumToKeep: '{build-artifact-num-to-keep}'
747
748     parameters:
749       - project-parameter:
750           project: '{project}'
751       - gerrit-parameter:
752           branch: '{branch}'
753       - os-parameter:
754           os: '{os}'
755       - repo-name-parameter:
756           repo-name: '{repo-stream-part}.{repo-os-part}'
757       - stream-parameter:
758           stream: '{stream}'
759       - string:
760           name: ARCHIVE_ARTIFACTS
761           default: '{archive-artifacts}'
762           description: Artifacts to archive to the logs server.
763
764     scm:
765       - gerrit-trigger-scm:
766           credentials-id: 'jenkins-gerrit-credentials'
767           refspec: '$GERRIT_REFSPEC'
768           choosing-strategy: 'gerrit'
769
770     wrappers:
771       - fdio-infra-wrappers:
772           build-timeout: 120
773
774     triggers:
775       - gerrit-trigger-checkstyle:
776           name: '{project}'
777           branch: '{branch}'
778
779     builders:
780       - shell:
781           !include-raw-escape: ../scripts/setup_vpp_ubuntu_docker_test.sh
782       - shell:
783           !include-raw-escape:
784           - ../scripts/setup_vpp_dpdk_dev_env.sh
785           - include-raw-vpp-build.sh
786
787     publishers:
788       - fdio-infra-shiplogs:
789           maven-version: 'mvn33-new'
790           archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core'
791       - naginator:
792           rerun-unstable-builds: false
793           max-failed-builds: 2
794           fixed-delay: 90
795
796 - job-template:
797     name: 'vpp-verify-{stream}-clang'
798
799     project-type: freestyle
800     node: 'ubuntu1804-us'
801     concurrent: true
802
803     build-discarder:
804       daysToKeep: '{build-days-to-keep}'
805       numToKeep: '{build-num-to-keep}'
806       artifactDaysToKeep: '{build-artifact-days-to-keep}'
807       artifactNumToKeep: '{build-artifact-num-to-keep}'
808
809     parameters:
810       - project-parameter:
811           project: '{project}'
812       - gerrit-parameter:
813           branch: '{branch}'
814       - os-parameter:
815           os: 'ubuntu1604'
816       - repo-name-parameter:
817           repo-name: '{repo-stream-part}.ubuntu.bionic.main'
818       - stream-parameter:
819           stream: '{stream}'
820
821     scm:
822       - gerrit-trigger-scm:
823           credentials-id: 'jenkins-gerrit-credentials'
824           refspec: '$GERRIT_REFSPEC'
825           choosing-strategy: 'gerrit'
826
827     wrappers:
828       - fdio-infra-wrappers:
829           build-timeout: '{build-timeout}'
830
831     triggers:
832       - gerrit-trigger-checkstyle:
833           name: '{project}'
834           branch: '{branch}'
835
836     builders:
837       - shell:
838           !include-raw-escape: ../scripts/setup_vpp_ubuntu_docker_test.sh
839       - shell:
840           !include-raw-escape:
841           - ../scripts/setup_vpp_dpdk_dev_env.sh
842           - include-raw-vpp-clang-build.sh
843
844     publishers:
845       - fdio-infra-shiplogs:
846           maven-version: 'mvn33-new'
847           archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core'
848       - naginator:
849           rerun-unstable-builds: false
850           max-failed-builds: 1
851           fixed-delay: 90
852
853 - job-template:
854     name: 'vpp-merge-{stream}-{os}'
855
856     project-type: freestyle
857     node: '{os}-us'
858     archive-artifacts: >
859       **/build-root/*.rpm
860       **/build-root/*.deb
861       **/dpdk/*.rpm
862       **/dpdk/*.deb
863     allow-empty: 'true'
864     fingerprint: false
865     only-if-success: true
866     default-excludes: false
867
868     build-discarder:
869       daysToKeep: '{build-days-to-keep}'
870       numToKeep: 100
871       artifactDaysToKeep: '{build-artifact-days-to-keep}'
872       artifactNumToKeep: '{build-artifact-num-to-keep}'
873
874     parameters:
875       - project-parameter:
876           project: '{project}'
877       - gerrit-parameter:
878           branch: '{branch}'
879       - os-parameter:
880           os: '{os}'
881       - maven-project-parameter:
882           maven: 'mvn33-new'
883       - maven-exec:
884           maven-version: 'mvn33-new'
885       - stream-parameter:
886           stream: '{stream}'
887       - repo-name-parameter:
888           repo-name: '{repo-stream-part}.{repo-os-part}'
889       - string:
890           name: ARCHIVE_ARTIFACTS
891           default: '{archive-artifacts}'
892           description: Artifacts to archive to the logs server.
893
894     scm:
895       - gerrit-trigger-scm:
896           credentials-id: 'jenkins-gerrit-credentials'
897           refspec: ''
898           choosing-strategy: 'default'
899
900     wrappers:
901       - fdio-infra-wrappers:
902           build-timeout: '{build-timeout}'
903
904     triggers:
905       - gerrit-trigger-patch-merged:
906           name: '{project}'
907           branch: '{branch}'
908
909     builders:
910       - config-file-provider:
911           files:
912             - file-id: '.packagecloud'
913               target: '/root'
914       - config-file-provider:
915           files:
916             - file-id: 'packagecloud_api'
917               target: '/root'
918       - maven-target:
919           maven-version: 'mvn33-new'
920           goals: '--version'
921           settings: 'vpp-settings'
922           settings-type: cfp
923           global-settings: 'global-settings'
924           global-settings-type: cfp
925       - shell:
926           !include-raw-escape: include-raw-vpp-checkstyle.sh
927       - shell:
928           !include-raw-escape: ../scripts/setup_vpp_ubuntu_docker_test.sh
929       - shell:
930           !include-raw-escape:
931           - ../scripts/setup_vpp_dpdk_dev_env.sh
932           - include-raw-vpp-build.sh
933       - provide-maven-settings:
934           settings-file: 'vpp-settings'
935           global-settings-file: 'global-settings'
936       - shell:
937           !include-raw-escape:
938           - ../scripts/packagecloud_push.sh
939       - shell:
940           !include-raw-escape:
941           - ../scripts/maven_push_functions.sh
942           - include-raw-vpp-maven-push.sh
943
944     publishers:
945       - fdio-infra-shiplogs:
946           maven-version: 'mvn33-new'
947       - naginator:
948           rerun-unstable-builds: false
949           max-failed-builds: 1
950           fixed-delay: 90
951
952 - job-template:
953     name: 'vpp-csit-verify-device-{stream}-1n-skx'
954
955     project-type: freestyle
956     node: 'vpp-csit-device'
957     concurrent: true
958     archive-artifacts: '**/csit_current/**/*.*'
959     latest-only: false
960
961     build-discarder:
962       daysToKeep: '{build-days-to-keep}'
963       numToKeep: 100
964       artifactDaysToKeep: '{build-artifact-days-to-keep}'
965       artifactNumToKeep: '{build-artifact-num-to-keep}'
966
967     parameters:
968       - project-parameter:
969           project: '{project}'
970       - gerrit-parameter:
971           branch: '{branch}'
972       - os-parameter:
973           os: '{os}'
974       - repo-name-parameter:
975           repo-name: '{repo-stream-part}.ubuntu.bionic.main'
976       - gerrit-refspec-parameter
977       - gerrit-event-type-parameter
978       - gerrit-event-comment-text-parameter
979       - gerrit-csit-refspec-parameter
980       - stream-parameter:
981           stream: '{stream}'
982       - string:
983           name: ARCHIVE_ARTIFACTS
984           default: '{archive-artifacts}'
985           description: Artifacts to archive to the logs server.
986
987     scm:
988       - gerrit-trigger-scm:
989           credentials-id: 'jenkins-gerrit-credentials'
990           refspec: '$GERRIT_REFSPEC'
991           choosing-strategy: 'gerrit'
992
993     wrappers:
994       - fdio-infra-wrappers:
995           build-timeout: '90'
996
997     triggers:
998       - gerrit-trigger-csit-devicetest:
999           name: '{project}'
1000           branch: '{branch}'
1001
1002     builders:
1003       - shell:
1004           !include-raw-escape: ../scripts/setup_vpp_ubuntu_docker_test.sh
1005       - shell:
1006           !include-raw-escape: ../scripts/setup_vpp_dpdk_dev_env.sh
1007       - shell:
1008           !include-raw-escape: include-raw-vpp-csit-device.sh
1009
1010     publishers:
1011       - robot-report:
1012           output-path: 'csit_current/'
1013
1014       - fdio-infra-shiplogs:
1015           maven-version: 'mvn33-new'
1016
1017 - job-template:
1018     name: 'vpp-csit-verify-perf-{stream}-{node-arch}'
1019
1020     project-type: freestyle
1021     node: '{os}-us'
1022     concurrent: true
1023     archive-artifacts: >
1024       **/csit_current/**/*.*
1025       **/csit_parent/**/*.*
1026     latest-only: false
1027
1028     build-discarder:
1029       daysToKeep: '{build-days-to-keep}'
1030       numToKeep: 100
1031       artifactDaysToKeep: '{build-artifact-days-to-keep}'
1032       artifactNumToKeep: '{build-artifact-num-to-keep}'
1033
1034     parameters:
1035       - project-parameter:
1036           project: '{project}'
1037       - gerrit-parameter:
1038           branch: '{branch}'
1039       - os-parameter:
1040           os: '{os}'
1041       - repo-name-parameter:
1042           repo-name: '{repo-stream-part}.ubuntu.bionic.main'
1043       - gerrit-refspec-parameter
1044       - gerrit-event-type-parameter
1045       - gerrit-event-comment-text-parameter
1046       - gerrit-csit-refspec-parameter
1047       - string:
1048           name: CSIT_PERF_TRIAL_DURATION
1049           default: "10.0"
1050           description: "Duration of a trial measurement in BMRR tests."
1051       - string:
1052           name: CSIT_PERF_TRIAL_MULTIPLICITY
1053           default: "5"
1054           description: "Number of subsamples for BMRR tests."
1055       - stream-parameter:
1056           stream: '{stream}'
1057       - string:
1058           name: ARCHIVE_ARTIFACTS
1059           default: '{archive-artifacts}'
1060           description: Artifacts to archive to the logs server.
1061
1062     scm:
1063       - gerrit-trigger-scm:
1064           credentials-id: 'jenkins-gerrit-credentials'
1065           refspec: '$GERRIT_REFSPEC'
1066           choosing-strategy: 'gerrit'
1067
1068     wrappers:
1069       - fdio-infra-wrappers-non-activity-timeout:
1070           build-timeout: 300
1071
1072     triggers:
1073       - gerrit-trigger-csit-perftest:
1074           name: '{project}'
1075           branch: '{branch}'
1076           node-arch: '{node-arch}'
1077
1078     builders:
1079       - shell:
1080           !include-raw-escape: ../scripts/setup_vpp_ubuntu_docker_test.sh
1081       - shell:
1082           !include-raw-escape: ../scripts/setup_vpp_dpdk_dev_env.sh
1083       - shell:
1084           !include-raw-escape: include-raw-vpp-csit-perf.sh
1085
1086     publishers:
1087       - robot-report:
1088           output-path: 'csit_current/0/'
1089
1090       - fdio-infra-shiplogs:
1091           maven-version: 'mvn33-new'
1092
1093 - project:
1094     name: vpp-info
1095     project-name: vpp
1096     jobs:
1097       - gerrit-info-yaml-verify
1098     build-node: centos7-builder-4c-4g
1099     project: vpp
1100     branch: master