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