blob: b14a57ee4ce9dea7c5f2044a1ad2020be08476f8 [file] [log] [blame]
pierventrefb03d642020-07-02 23:10:12 +02001---
2# Run fabric.p4 test pipeline
3
4- job-template:
5 id: 'fabric-p4-verify'
6 name: 'fabric-p4-verify'
7
8 description: |
9 Created by {id} job-template from ci-management/jjb/templates/fabric-p4-verify.yaml<br/>
10 Runs fabric.p4 test pipeline
11
12 properties:
13 - authorization:
14 JenkinsPowerusers:
15 - credentials-create
16 - credentials-delete
17 - credentials-manage-domains
18 - credentials-update
19 - credentials-view
20 - job-build
21 - job-cancel
22 - job-configure
23 - job-delete
24 - job-discover
25 - job-extended-read
26 - job-move
27 - job-read
28 - job-workspace
29 - run-delete
30 - run-replay
31 - run-update
32 ONFStaff:
33 - job-discover
34 - job-read
35 - onf-infra-properties:
36 build-days-to-keep: '{build-days-to-keep}'
37 artifact-num-to-keep: '-1'
38 - onf-infra-docker-properties:
39 docker-credentials-id: '{docker-credentials-id}'
40 docker-registry: '{docker-registry}'
41
42 parameters:
43 - onf-infra-parameters:
44 project: '{project}'
45 stream: '{stream}'
46 gerrit_project: '{gerrit_project}'
47
48 node: '{bigger-build-node}'
49 project-type: freestyle
50 concurrent: true
51
52 scm:
53 - onf-infra-gerrit-scm:
54 git-url: '$GIT_URL/$GERRIT_PROJECT'
55 refspec: '$GERRIT_REFSPEC'
56 branch: '$GERRIT_BRANCH'
57 submodule-recursive: '{submodule-recursive}'
58 choosing-strategy: gerrit
59 jenkins-ssh-credential: '{jenkins-ssh-credential}'
60 basedir: '{project}'
61
62 triggers:
63 - gerrit:
64 server-name: '{gerrit-server-name}'
65 dependency-jobs: '{dependency-jobs}'
66 trigger-on:
67 - patchset-created-event:
68 exclude-drafts: true
69 exclude-trivial-rebase: false
70 exclude-no-code-change: true
71 - draft-published-event: true
72 - comment-added-contains-event:
73 comment-contains-value: '(?i)^.*recheck$'
74 projects:
75 - project-compare-type: PLAIN
76 project-pattern: 'onos'
77 branches:
78 - branch-compare-type: REG_EXP
79 branch-pattern: '{branch-regexp}'
80 - branch-compare-type: PLAIN
81 branch-pattern: 'master'
82 file-paths:
83 - compare-type: ANT
84 pattern: 'pipelines/fabric/impl/src/main/resources/**'
85 - compare-type: ANT
86 pattern: 'pipelines/fabric/impl/src/main/java/org/onosproject/pipelines/fabric/impl/behaviour/FabricConstants.java'
87
88 wrappers:
89 - lf-infra-wrappers:
90 build-timeout: '30'
91 jenkins-ssh-credential: '{jenkins-ssh-credential}'
92
93 builders:
94 - inject:
95 properties-content: |
96 RESOURCES_PATH={resources_path}
97 SDE_REPO={sde_repo}
98 SDE_VER={sde_ver}
99 FABRIC_TOFINO={fabric_tofino}
100 FABRIC_TOFINO_REPO={fabric_tofino_repo}
101 FABRIC_P4TEST={fabric_p4test}
102 FABRIC_P4TEST_REPO={fabric_p4test_repo}
103 BMV2_RUN={bmv2_run}
104 TM_RUN={tm_run}
105 - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-build-bmv2.sh
106 - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-build-tofino.sh
107 - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-p4test.sh
108 - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-test-bmv2.sh
109 - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-test-tofino.sh
110
111 publishers:
112 - onf-infra-wscleanup-publisher