vpp.yaml revision 6be6fe7c
1- project:
2    name: vpp
3    jobs:
4        - 'vpp-verify-{stream}-{os}'
5        - 'vpp-merge-{stream}-{os}'
6        - 'vpp-verify-image-{stream}-{os}'
7        - 'vpp-docs-merge-{stream}'
8        - 'vpp-docs-verify-{stream}'
9        - 'vpp-make-test-docs-merge-{stream}'
10        - 'vpp-make-test-docs-verify-{stream}'
11        - 'vpp-test-packagecloud-{stream}-{os}'
12        - 'vpp-promote-{stream}-{os}'
13        - 'vpp-test-poc-verify-{stream}-{os}'
14
15    project: 'vpp'
16    os:
17      - ubuntu1604:
18          repo-os-part: 'ubuntu.xenial.main'
19      - centos7:
20          repo-os-part: 'centos7'
21      - opensuse:
22          repo-os-part: 'opensuse'
23
24    stream:
25        - master:
26            branch: 'master'
27            repo-stream-part: 'master'
28        - test:
29            branch: 'stable/test'
30            repo-stream-part: 'stable.test'
31        - '1606':
32            branch: 'stable/1606'
33            repo-stream-part: 'stable.1606'
34        - '1609':
35            branch: 'stable/1609'
36            repo-stream-part: 'stable.1609'
37        - '1701':
38            branch: 'stable/1701'
39            repo-stream-part: 'stable.1701'
40        - '1704':
41            branch: 'stable/1704'
42            repo-stream-part: 'stable.1704'
43        - '1707':
44            branch: 'stable/1707'
45            repo-stream-part: 'stable.1707'
46        - '1710':
47            branch: 'stable/1710'
48            repo-stream-part: 'stable.1710'
49    type:
50        - short
51        - long
52
53- project:
54    name: vpp-misc
55    jobs:
56        - 'vpp-csit-verify-virl-{stream}'
57        - 'vpp-csit-verify-hw-perf-{stream}'
58    project: 'vpp'
59    stream:
60        - master:
61            branch: 'master'
62            repo-stream-part: 'master'
63        - test:
64            branch: 'stable/test'
65            repo-stream-part: 'stable.test'
66        - '1606':
67            branch: 'stable/1606'
68            repo-stream-part: 'stable.1606'
69        - '1609':
70            branch: 'stable/1609'
71            repo-stream-part: 'stable.1609'
72        - '1701':
73            branch: 'stable/1701'
74            repo-stream-part: 'stable.1609'
75        - '1704':
76            branch: 'stable/1704'
77            repo-stream-part: 'stable.1704'
78        - '1707':
79            branch: 'stable/1707'
80            repo-stream-part: 'stable.1707'
81        - '1710':
82            branch: 'stable/1710'
83            repo-stream-part: 'stable.1710'
84    os: ubuntu1604
85
86
87- job-template:
88    name: 'vpp-verify-{stream}-{os}'
89
90    project-type: freestyle
91    node: '{os}-basebuild-8c-32g'
92    concurrent: true
93
94    logrotate:
95        daysToKeep: '{build-days-to-keep}'
96        numToKeep: '{build-num-to-keep}'
97        artifactDaysToKeep: '{build-artifact-days-to-keep}'
98        artifactNumToKeep: '{build-artifact-num-to-keep}'
99
100    parameters:
101        - project-parameter:
102            project: '{project}'
103        - gerrit-parameter:
104            branch: '{branch}'
105        - os-parameter:
106            os: '{os}'
107        - repo-name-parameter:
108            repo-name: '{repo-stream-part}.{repo-os-part}'
109
110    scm:
111        - gerrit-trigger-scm:
112            credentials-id: 'jenkins-gerrit-credentials'
113            refspec: '$GERRIT_REFSPEC'
114            choosing-strategy: 'gerrit'
115
116    wrappers:
117        - fdio-infra-wrappers:
118            build-timeout: '{build-timeout}'
119
120    triggers:
121        - gerrit-trigger-patch-submitted:
122            name: '{project}'
123            branch: '{branch}'
124
125    builders:
126        - shell:
127            !include-raw-escape: include-raw-vpp-checkstyle.sh
128        - shell:
129            !include-raw-escape: include-raw-vpp-test-checkstyle.sh
130        - shell:
131            !include-raw-escape:
132                - ../scripts/setup_vpp_dpdk_dev_env.sh
133                - include-raw-vpp-build.sh
134    publishers:
135        - archive:
136            artifacts: 'build-root/*.rpm,build-root/*.deb,dpdk/*.rpm,dpdk/*.deb'
137            allow-empty: 'true'
138            fingerprint: false
139            only-if-success: true
140            default-excludes: false
141        - fdio-infra-shiplogs:
142            maven-version: 'mvn33-new'
143            archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core'
144
145- job-template:
146    name: 'vpp-verify-image-{stream}-{os}'
147
148    project-type: freestyle
149    node: '{os}-basebuild-8c-32g'
150    concurrent: true
151
152    logrotate:
153        daysToKeep: '{build-days-to-keep}'
154        numToKeep: '{build-num-to-keep}'
155        artifactDaysToKeep: '{build-artifact-days-to-keep}'
156        artifactNumToKeep: '{build-artifact-num-to-keep}'
157
158    parameters:
159        - project-parameter:
160            project: '{project}'
161        - gerrit-parameter:
162            branch: '{branch}'
163        - os-parameter:
164            os: '{os}'
165        - repo-name-parameter:
166            repo-name: '{repo-stream-part}.{repo-os-part}'
167
168    scm:
169        - gerrit-trigger-scm:
170            credentials-id: 'jenkins-gerrit-credentials'
171            refspec: '$GERRIT_REFSPEC'
172            choosing-strategy: 'gerrit'
173
174    wrappers:
175        - fdio-infra-wrappers:
176            build-timeout: '{build-timeout}'
177
178    triggers:
179        - gerrit:
180            server-name: 'Primary'
181            trigger-on:
182                - comment-added-contains-event:
183                    comment-contains-value: 'verify-images'
184            projects:
185              - project-compare-type: 'ANT'
186                project-pattern: '{project}'
187                branches:
188                  - branch-compare-type: 'ANT'
189                    branch-pattern: '**/{branch}'
190            skip-vote:
191                successful: true
192                failed: true
193                unstable: true
194                notbuilt: true
195
196    builders:
197        - shell:
198            !include-raw-escape: include-raw-vpp-checkstyle.sh
199        - shell:
200            !include-raw-escape:
201                - ../scripts/setup_vpp_dpdk_dev_env.sh
202                - include-raw-vpp-build.sh
203
204    publishers:
205      - fdio-infra-shiplogs:
206          maven-version: 'mvn33-new'
207
208- job-template:
209    name: 'vpp-merge-{stream}-{os}'
210
211    project-type: freestyle
212    node: '{os}-basebuild-8c-32g'
213
214    logrotate:
215        daysToKeep: '{build-days-to-keep}'
216        numToKeep: '{build-num-to-keep}'
217        artifactDaysToKeep: '{build-artifact-days-to-keep}'
218        artifactNumToKeep: '{build-artifact-num-to-keep}'
219
220    parameters:
221        - project-parameter:
222            project: '{project}'
223        - gerrit-parameter:
224            branch: '{branch}'
225        - os-parameter:
226            os: '{os}'
227        - maven-project-parameter:
228            maven: 'mvn33-new'
229        - maven-exec:
230            maven-version: 'mvn33-new'
231        - stream-parameter:
232            stream: '{stream}'
233        - repo-name-parameter:
234            repo-name: '{repo-stream-part}.{repo-os-part}'
235
236    scm:
237        - gerrit-trigger-scm:
238            credentials-id: 'jenkins-gerrit-credentials'
239            refspec: ''
240            choosing-strategy: 'default'
241
242    wrappers:
243        - fdio-infra-wrappers:
244            build-timeout: '{build-timeout}'
245
246    triggers:
247        - gerrit-trigger-patch-merged:
248            name: '{project}'
249            branch: '{branch}'
250
251    builders:
252        - config-file-provider:
253            files:
254              - file-id: '.packagecloud'
255                target: '/home/jenkins'
256        - config-file-provider:
257            files:
258              - file-id: 'packagecloud_api'
259                target: '/home/jenkins'
260        - maven-target:
261            maven-version: 'mvn33-new'
262            goals: '--version'
263            settings: 'vpp-settings'
264            settings-type: cfp
265            global-settings: 'global-settings'
266            global-settings-type: cfp
267        - shell:
268            !include-raw-escape: include-raw-vpp-checkstyle.sh
269        - shell:
270            !include-raw-escape:
271                - ../scripts/setup_vpp_dpdk_dev_env.sh
272                - include-raw-vpp-build.sh
273        - provide-maven-settings:
274            settings-file: 'vpp-settings'
275            global-settings-file: 'global-settings'
276        - shell:
277            !include-raw-escape:
278                - ../scripts/maven_push_functions.sh
279                - include-raw-vpp-maven-push.sh
280        - shell:
281            !include-raw-escape:
282                - ../scripts/packagecloud_push.sh
283
284    publishers:
285        - archive:
286            artifacts: 'build-root/*.rpm,build-root/*.deb,dpdk/*.rpm,dpdk/*.deb'
287            allow-empty: 'true'
288            fingerprint: false
289            only-if-success: true
290            default-excludes: false
291        - fdio-infra-shiplogs:
292            maven-version: 'mvn33-new'
293
294- job-template:
295    name: 'vpp-csit-verify-virl-{stream}'
296
297    project-type: freestyle
298    node: '{os}-basebuild-8c-32g'
299    concurrent: true
300
301    logrotate:
302        daysToKeep: '{build-days-to-keep}'
303        numToKeep: '{build-num-to-keep}'
304        artifactDaysToKeep: '{build-artifact-days-to-keep}'
305        artifactNumToKeep: '{build-artifact-num-to-keep}'
306
307    parameters:
308        - project-parameter:
309            project: '{project}'
310        - gerrit-parameter:
311            branch: '{branch}'
312        - os-parameter:
313            os: '{os}'
314        - repo-name-parameter:
315            repo-name: '{repo-stream-part}.ubuntu.xenial.main'
316        - is-csit-vpp-job-parameter:
317            is-csit-vpp-job: 'True'
318
319    scm:
320        - gerrit-trigger-scm:
321            credentials-id: 'jenkins-gerrit-credentials'
322            refspec: '$GERRIT_REFSPEC'
323            choosing-strategy: 'gerrit'
324
325    wrappers:
326        - fdio-infra-wrappers:
327            build-timeout: '{build-timeout}'
328
329    triggers:
330        - gerrit-trigger-patch-submitted:
331            name: '{project}'
332            branch: '{branch}'
333
334    builders:
335        - shell:
336            !include-raw-escape:
337                - include-raw-vpp-checkstyle.sh
338        - shell:
339            !include-raw-escape:
340                - ../scripts/setup_vpp_dpdk_dev_env.sh
341                - include-raw-vpp-build.sh
342        - shell:
343            !include-raw-escape:
344                - include-raw-vpp-csit-functional.sh
345
346    publishers:
347        - archive-artifacts:
348            artifacts: 'csit/report.html, csit/log.html, csit/output.xml'
349            latest-only: false
350
351        - robot-report:
352            output-path: 'csit'
353
354        - fdio-infra-shiplogs:
355            maven-version: 'mvn33-new'
356
357- job-template:
358    name: 'vpp-csit-verify-hw-perf-{stream}'
359
360    project-type: freestyle
361    node: '{os}-basebuild-8c-32g'
362    concurrent: false
363
364    logrotate:
365        daysToKeep: '{build-days-to-keep}'
366        numToKeep: '{build-num-to-keep}'
367        artifactDaysToKeep: '{build-artifact-days-to-keep}'
368        artifactNumToKeep: '{build-artifact-num-to-keep}'
369
370    parameters:
371        - project-parameter:
372            project: '{project}'
373        - gerrit-parameter:
374            branch: '{branch}'
375        - os-parameter:
376            os: '{os}'
377        - repo-name-parameter:
378            repo-name: '{repo-stream-part}.ubuntu.xenial.main'
379        - is-csit-vpp-job-parameter:
380            is-csit-vpp-job: 'True'
381
382    scm:
383        - gerrit-trigger-scm:
384            credentials-id: 'jenkins-gerrit-credentials'
385            refspec: '$GERRIT_REFSPEC'
386            choosing-strategy: 'gerrit'
387
388    wrappers:
389        - fdio-infra-wrappers-non-activity-timeout:
390            build-timeout: 30
391
392    triggers:
393        - gerrit:
394            server-name: 'Primary'
395            trigger-on:
396                - comment-added-contains-event:
397                    comment-contains-value: 'vpp-verify-perf-l2'
398                - comment-added-contains-event:
399                    comment-contains-value: 'vpp-verify-perf-ip4'
400                - comment-added-contains-event:
401                    comment-contains-value: 'vpp-verify-perf-ip6'
402                - comment-added-contains-event:
403                    comment-contains-value: 'vpp-verify-perf-lisp'
404                - comment-added-contains-event:
405                    comment-contains-value: 'vpp-verify-perf-vxlan'
406                - comment-added-contains-event:
407                    comment-contains-value: 'vpp-verify-perf-vhost'
408                - comment-added-contains-event:
409                    comment-contains-value: 'vpp-verify-perf-acl'
410                - comment-added-contains-event:
411                    comment-contains-value: 'vpp-verify-perf-memif'
412            projects:
413              - project-compare-type: 'ANT'
414                project-pattern: '{project}'
415                branches:
416                  - branch-compare-type: 'ANT'
417                    branch-pattern: '**/{branch}'
418            skip-vote:
419                successful: false
420                failed: false
421                unstable: false
422                notbuilt: false
423
424    builders:
425        - shell:
426            !include-raw-escape:
427                - ../scripts/setup_vpp_dpdk_dev_env.sh
428                - include-raw-vpp-build.sh
429        - shell:
430            !include-raw-escape:
431                - include-raw-vpp-csit-verify-perf.sh
432
433    publishers:
434        - archive-artifacts:
435            artifacts: 'csit/report.html, csit/log.html, csit/output.xml'
436            latest-only: false
437
438        - robot-report:
439            output-path: 'csit'
440
441        - fdio-infra-shiplogs:
442            maven-version: 'mvn33-new'
443
444- parameter:
445    name: type-parameter
446
447    parameters:
448        - string:
449            name: TYPE
450            default: '{type}'
451            description: "TYPE parameter if not given by trigger"
452
453- job-template:
454    name: 'vpp-docs-verify-{stream}'
455
456    project-type: freestyle
457    node: ubuntu1604-basebuild-8c-32g
458    concurrent: true
459
460    logrotate:
461        daysToKeep: '{build-days-to-keep}'
462        numToKeep: '{build-num-to-keep}'
463        artifactDaysToKeep: '{build-artifact-days-to-keep}'
464        artifactNumToKeep: '{build-artifact-num-to-keep}'
465
466    parameters:
467        - project-parameter:
468            project: '{project}'
469        - gerrit-parameter:
470            branch: '{branch}'
471        - os-parameter:
472            os: 'ubuntu1604'
473        - maven-exec:
474            maven-version: 'mvn33-new'
475
476    scm:
477        - gerrit-trigger-scm:
478            credentials-id: 'jenkins-gerrit-credentials'
479            refspec: '$GERRIT_REFSPEC'
480            choosing-strategy: 'gerrit'
481
482    wrappers:
483        - fdio-infra-wrappers:
484            build-timeout: '{build-timeout}'
485
486    triggers:
487        - gerrit-trigger-patch-submitted:
488            name: '{project}'
489            branch: '{branch}'
490
491    builders:
492        - maven-target:
493            maven-version: 'mvn33-new'
494            goals: '--version'
495            settings: 'vpp-settings'
496            settings-type: cfp
497            global-settings: 'global-settings'
498            global-settings-type: cfp
499        - provide-maven-settings:
500            settings-file: 'vpp-settings'
501            global-settings-file: 'global-settings'
502        - shell:
503            !include-raw-escape: include-raw-vpp-docs.sh
504    publishers:
505        - archive:
506            artifacts: 'build-root/docs/html/*'
507            allow-empty: 'true'
508            fingerprint: false
509            only-if-success: true
510            default-excludes: false
511        - fdio-infra-shiplogs:
512            maven-version: 'mvn33-new'
513
514- job-template:
515    name: 'vpp-docs-merge-{stream}'
516
517    project-type: freestyle
518    node: ubuntu1604-basebuild-8c-32g
519    concurrent: true
520
521    logrotate:
522        daysToKeep: '{build-days-to-keep}'
523        numToKeep: '{build-num-to-keep}'
524        artifactDaysToKeep: '{build-artifact-days-to-keep}'
525        artifactNumToKeep: '{build-artifact-num-to-keep}'
526
527    parameters:
528        - project-parameter:
529            project: '{project}'
530        - gerrit-parameter:
531            branch: '{branch}'
532        - os-parameter:
533            os: 'ubuntu1604'
534        - maven-exec:
535            maven-version: 'mvn33-new'
536
537    scm:
538        - gerrit-trigger-scm:
539            credentials-id: 'jenkins-gerrit-credentials'
540            refspec: ''
541            choosing-strategy: 'default'
542
543    wrappers:
544        - fdio-infra-wrappers:
545            build-timeout: '{build-timeout}'
546
547    triggers:
548        - reverse:
549            jobs: 'vpp-merge-{stream}-ubuntu1604'
550            result: 'success'
551        - gerrit:
552            server-name: 'Primary'
553            trigger-on:
554                - comment-added-contains-event:
555                    comment-contains-value: 'run-docs'
556            projects:
557              - project-compare-type: 'ANT'
558                project-pattern: '{project}'
559                branches:
560                  - branch-compare-type: 'ANT'
561                    branch-pattern: '**/{branch}'
562            skip-vote:
563                successful: true
564                failed: true
565                unstable: true
566                notbuilt: true
567
568    builders:
569        - maven-target:
570            maven-version: 'mvn33-new'
571            goals: '--version'
572            settings: 'vpp-settings'
573            settings-type: cfp
574            global-settings: 'global-settings'
575            global-settings-type: cfp
576        - provide-maven-settings:
577            settings-file: 'vpp-settings'
578            global-settings-file: 'global-settings'
579        - shell:
580            !include-raw-escape: include-raw-vpp-docs.sh
581    publishers:
582        - archive:
583            artifacts: 'build-root/docs/html/*'
584            allow-empty: 'true'
585            fingerprint: false
586            only-if-success: true
587            default-excludes: false
588        - fdio-infra-shiplogs:
589            maven-version: 'mvn33-new'
590
591- job-template:
592    name: 'vpp-make-test-docs-verify-{stream}'
593
594    project-type: freestyle
595    node: ubuntu1604-basebuild-8c-32g
596    concurrent: true
597
598    logrotate:
599        daysToKeep: '{build-days-to-keep}'
600        numToKeep: '{build-num-to-keep}'
601        artifactDaysToKeep: '{build-artifact-days-to-keep}'
602        artifactNumToKeep: '{build-artifact-num-to-keep}'
603
604    parameters:
605        - project-parameter:
606            project: '{project}'
607        - gerrit-parameter:
608            branch: '{branch}'
609        - os-parameter:
610            os: 'ubuntu1604'
611        - maven-exec:
612            maven-version: 'mvn33-new'
613
614    scm:
615        - gerrit-trigger-scm:
616            credentials-id: 'jenkins-gerrit-credentials'
617            refspec: '$GERRIT_REFSPEC'
618            choosing-strategy: 'gerrit'
619
620    wrappers:
621        - fdio-infra-wrappers:
622            build-timeout: '{build-timeout}'
623
624    triggers:
625        - gerrit-trigger-patch-submitted:
626            name: '{project}'
627            branch: '{branch}'
628
629    builders:
630        - maven-target:
631            maven-version: 'mvn33-new'
632            goals: '--version'
633            settings: 'vpp-settings'
634            settings-type: cfp
635            global-settings: 'global-settings'
636            global-settings-type: cfp
637        - provide-maven-settings:
638            settings-file: 'vpp-settings'
639            global-settings-file: 'global-settings'
640        - shell:
641            !include-raw-escape: include-raw-vpp-make-test-docs.sh
642    publishers:
643        - archive:
644            artifacts: 'build-root/test-doc/build/html/*'
645            allow-empty: 'true'
646            fingerprint: false
647            only-if-success: true
648            default-excludes: false
649        - fdio-infra-shiplogs:
650            maven-version: 'mvn33-new'
651
652- job-template:
653    name: 'vpp-make-test-docs-merge-{stream}'
654
655    project-type: freestyle
656    node: ubuntu1604-basebuild-8c-32g
657    concurrent: true
658
659    logrotate:
660        daysToKeep: '{build-days-to-keep}'
661        numToKeep: '{build-num-to-keep}'
662        artifactDaysToKeep: '{build-artifact-days-to-keep}'
663        artifactNumToKeep: '{build-artifact-num-to-keep}'
664
665    parameters:
666        - project-parameter:
667            project: '{project}'
668        - gerrit-parameter:
669            branch: '{branch}'
670        - os-parameter:
671            os: 'ubuntu1604'
672        - maven-exec:
673            maven-version: 'mvn33-new'
674
675    scm:
676        - gerrit-trigger-scm:
677            credentials-id: 'jenkins-gerrit-credentials'
678            refspec: ''
679            choosing-strategy: 'default'
680
681    wrappers:
682        - fdio-infra-wrappers:
683            build-timeout: '{build-timeout}'
684
685    triggers:
686        - reverse:
687            jobs: 'vpp-merge-{stream}-ubuntu1604'
688            result: 'success'
689        - gerrit:
690            server-name: 'Primary'
691            trigger-on:
692                - comment-added-contains-event:
693                    comment-contains-value: 'run-docs'
694            projects:
695              - project-compare-type: 'ANT'
696                project-pattern: '{project}'
697                branches:
698                  - branch-compare-type: 'ANT'
699                    branch-pattern: '**/{branch}'
700            skip-vote:
701                successful: true
702                failed: true
703                unstable: true
704                notbuilt: true
705
706    builders:
707        - maven-target:
708            maven-version: 'mvn33-new'
709            goals: '--version'
710            settings: 'vpp-settings'
711            settings-type: cfp
712            global-settings: 'global-settings'
713            global-settings-type: cfp
714        - provide-maven-settings:
715            settings-file: 'vpp-settings'
716            global-settings-file: 'global-settings'
717        - shell:
718            !include-raw-escape: include-raw-vpp-make-test-docs.sh
719    publishers:
720        - archive:
721            artifacts: 'build-root/test-doc/build/html/*'
722            allow-empty: 'true'
723            fingerprint: false
724            only-if-success: true
725            default-excludes: false
726        - fdio-infra-shiplogs:
727            maven-version: 'mvn33-new'
728
729- job-template:
730    name: 'vpp-test-packagecloud-{stream}-{os}'
731
732    project-type: freestyle
733    node: '{os}-basebuild-8c-32g'
734    concurrent: true
735
736    logrotate:
737        daysToKeep: '{build-days-to-keep}'
738        numToKeep: '{build-num-to-keep}'
739        artifactDaysToKeep: '{build-artifact-days-to-keep}'
740        artifactNumToKeep: '{build-artifact-num-to-keep}'
741
742    parameters:
743        - project-parameter:
744            project: '{project}'
745        - gerrit-parameter:
746            branch: '{branch}'
747        - os-parameter:
748            os: '{os}'
749        - stream-parameter:
750            stream: '{stream}'
751        - repo-name-parameter:
752            repo-name: '{repo-stream-part}.{repo-os-part}'
753
754    scm:
755        - gerrit-trigger-scm:
756            credentials-id: 'jenkins-gerrit-credentials'
757            refspec: '$GERRIT_REFSPEC'
758            choosing-strategy: 'gerrit'
759
760    wrappers:
761        - fdio-infra-wrappers:
762            build-timeout: '{build-timeout}'
763
764    triggers:
765        - gerrit-trigger-manually-triggered:
766            name: '{project}'
767            branch: '{branch}'
768            comment-trigger-value: 'test-pkgcloud'
769
770
771    builders:
772        - config-file-provider:
773            files:
774              - file-id: '.packagecloud'
775                target: '/home/jenkins'
776                #variable: 'SETTINGS_FILE'
777        - shell:
778            !include-raw-escape: include-raw-vpp-checkstyle.sh
779        - shell:
780            !include-raw-escape: include-raw-vpp-test-checkstyle.sh
781        - shell:
782            !include-raw-escape:
783                - ../scripts/setup_vpp_dpdk_dev_env.sh
784                - include-raw-vpp-build.sh
785        - shell:
786            !include-raw-escape:
787                - ../scripts/packagecloud_push.sh
788
789    publishers:
790        - archive:
791            artifacts: 'build-root/*.rpm,build-root/*.deb,dpdk/*.rpm,dpdk/*.deb'
792            allow-empty: 'true'
793            fingerprint: false
794            only-if-success: true
795            default-excludes: false
796        - fdio-infra-shiplogs:
797            maven-version: 'mvn33-new'
798
799- job-template:
800    name: 'vpp-promote-{stream}-{os}'
801
802    project-type: freestyle
803    node: '{os}-basebuild-8c-32g'
804
805    logrotate:
806      daysToKeep: '{build-days-to-keep}'
807      numToKeep: '{build-num-to-keep}'
808      artifactDaysToKeep: '{build-artifact-days-to-keep}'
809      artifactNumToKeep: '{build-artifact-num-to-keep}'
810
811    parameters:
812      - project-parameter:
813          project: '{project}'
814      - gerrit-parameter:
815          branch: '{branch}'
816      - os-parameter:
817          os: '{os}'
818      - stream-parameter:
819          stream: '{stream}'
820      - repo-name-parameter:
821          repo-name: '{repo-stream-part}.{repo-os-part}'
822
823    scm:
824      - gerrit-trigger-scm:
825          credentials-id: 'jenkins-gerrit-credentials'
826          refspec: '$GERRIT_REFSPEC'
827          choosing-strategy: 'gerrit'
828
829    wrappers:
830      - fdio-infra-wrappers:
831          build-timeout: '{build-timeout}'
832
833    triggers:
834      - gerrit-trigger-manually-triggered:
835          name: '{project}'
836          branch: '{branch}'
837          comment-trigger-value: 'test-pkgcloud'
838
839    builders:
840      - config-file-provider:
841          files:
842            - file-id: '.packagecloud'
843              target: '/home/jenkins'
844      - config-file-provider:
845          files:
846            - file-id: 'packagecloud_api'
847              target: '/home/jenkins'
848      - shell:
849          !include-raw-escape: include-raw-vpp-checkstyle.sh
850      - shell:
851          !include-raw-escape: include-raw-vpp-test-checkstyle.sh
852      - shell:
853          !include-raw-escape:
854          - ../scripts/setup_vpp_dpdk_dev_env.sh
855          - include-raw-vpp-build.sh
856      - shell:
857          !include-raw-escape:
858          - ../scripts/packagecloud_promote.sh
859
860    publishers:
861      - fdio-infra-shiplogs:
862          maven-version: 'mvn33-new'
863
864- job-template:
865    name: 'vpp-test-poc-verify-{stream}-{os}'
866
867    project-type: freestyle
868    node: '{os}-m'
869    concurrent: true
870
871    logrotate:
872        daysToKeep: '{build-days-to-keep}'
873        numToKeep: '{build-num-to-keep}'
874        artifactDaysToKeep: '{build-artifact-days-to-keep}'
875        artifactNumToKeep: '{build-artifact-num-to-keep}'
876
877    parameters:
878        - project-parameter:
879            project: '{project}'
880        - gerrit-parameter:
881            branch: '{branch}'
882        - os-parameter:
883            os: '{os}'
884        - repo-name-parameter:
885            repo-name: '{repo-stream-part}.{repo-os-part}'
886
887    scm:
888        - gerrit-trigger-scm:
889            credentials-id: 'jenkins-gerrit-credentials'
890            refspec: '$GERRIT_REFSPEC'
891            choosing-strategy: 'gerrit'
892
893    wrappers:
894        - fdio-infra-wrappers:
895            build-timeout: '{build-timeout}'
896
897    triggers:
898        - gerrit-trigger-manually-triggered:
899            name: '{project}'
900            branch: '{branch}'
901            comment-trigger-value: 'test-cpoc'
902
903    builders:
904        - shell:
905            !include-raw-escape: include-raw-vpp-checkstyle.sh
906        - shell:
907            !include-raw-escape: include-raw-vpp-test-checkstyle.sh
908        - shell:
909            !include-raw-escape:
910                - ../scripts/setup_vpp_dpdk_dev_env.sh
911                - include-raw-vpp-build.sh
912    publishers:
913        - archive:
914            artifacts: 'build-root/*.rpm,build-root/*.deb,dpdk/*.rpm,dpdk/*.deb'
915            allow-empty: 'true'
916            fingerprint: false
917            only-if-success: true
918            default-excludes: false
919        - fdio-infra-shiplogs:
920            maven-version: 'mvn33-new'
921            archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core'
922
923