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