blob: 8d1f01c88aa5b6aac169d536e2e3833521478004 [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:
pierventre2a6e0062020-07-07 18:08:01 +020013 - raw:
14 xml: |
15 <hudson.security.AuthorizationMatrixProperty>
16 <inheritanceStrategy class="org.jenkinsci.plugins.matrixauth.inheritance.NonInheritingStrategy"/>
17 <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Create:JenkinsPowerusers</permission>
18 <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Delete:JenkinsPowerusers</permission>
19 <permission>com.cloudbees.plugins.credentials.CredentialsProvider.ManageDomains:JenkinsPowerusers</permission>
20 <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Update:JenkinsPowerusers</permission>
21 <permission>com.cloudbees.plugins.credentials.CredentialsProvider.View:JenkinsPowerusers</permission>
22 <permission>hudson.model.Item.Build:JenkinsPowerusers</permission>
23 <permission>hudson.model.Item.Cancel:JenkinsPowerusers</permission>
24 <permission>hudson.model.Item.Configure:JenkinsPowerusers</permission>
25 <permission>hudson.model.Item.Delete:JenkinsPowerusers</permission>
26 <permission>hudson.model.Item.Discover:JenkinsPowerusers</permission>
27 <permission>hudson.model.Item.Discover:ONFStaff</permission>
28 <permission>hudson.model.Item.ExtendedRead:JenkinsPowerusers</permission>
29 <permission>hudson.model.Item.Move:JenkinsPowerusers</permission>
30 <permission>hudson.model.Item.Read:JenkinsPowerusers</permission>
31 <permission>hudson.model.Item.Read:ONFStaff</permission>
32 <permission>hudson.model.Item.Workspace:JenkinsPowerusers</permission>
33 <permission>hudson.model.Run.Delete:JenkinsPowerusers</permission>
34 <permission>hudson.model.Run.Replay:JenkinsPowerusers</permission>
35 <permission>hudson.model.Run.Update:JenkinsPowerusers</permission>
36 </hudson.security.AuthorizationMatrixProperty>
pierventrefb03d642020-07-02 23:10:12 +020037 - onf-infra-properties:
38 build-days-to-keep: '{build-days-to-keep}'
39 artifact-num-to-keep: '-1'
pierventrefb03d642020-07-02 23:10:12 +020040
41 parameters:
42 - onf-infra-parameters:
43 project: '{project}'
44 stream: '{stream}'
45 gerrit_project: '{gerrit_project}'
46
47 node: '{bigger-build-node}'
48 project-type: freestyle
49 concurrent: true
50
51 scm:
52 - onf-infra-gerrit-scm:
53 git-url: '$GIT_URL/$GERRIT_PROJECT'
54 refspec: '$GERRIT_REFSPEC'
55 branch: '$GERRIT_BRANCH'
56 submodule-recursive: '{submodule-recursive}'
57 choosing-strategy: gerrit
58 jenkins-ssh-credential: '{jenkins-ssh-credential}'
pierventre113c0f22020-07-07 12:41:38 +020059 basedir: ''
pierventrefb03d642020-07-02 23:10:12 +020060
61 triggers:
62 - gerrit:
63 server-name: '{gerrit-server-name}'
64 dependency-jobs: '{dependency-jobs}'
65 trigger-on:
66 - patchset-created-event:
67 exclude-drafts: true
68 exclude-trivial-rebase: false
69 exclude-no-code-change: true
70 - draft-published-event: true
71 - comment-added-contains-event:
72 comment-contains-value: '(?i)^.*recheck$'
73 projects:
74 - project-compare-type: PLAIN
75 project-pattern: 'onos'
76 branches:
77 - branch-compare-type: REG_EXP
78 branch-pattern: '{branch-regexp}'
79 - branch-compare-type: PLAIN
80 branch-pattern: 'master'
81 file-paths:
82 - compare-type: ANT
83 pattern: 'pipelines/fabric/impl/src/main/resources/**'
84 - compare-type: ANT
Carmelo Casconef4bf7602020-07-06 22:30:24 -070085 pattern: 'pipelines/fabric/api/src/main/java/org/onosproject/pipelines/fabric/FabricConstants.java'
86 - compare-type: ANT
pierventrefb03d642020-07-02 23:10:12 +020087 pattern: 'pipelines/fabric/impl/src/main/java/org/onosproject/pipelines/fabric/impl/behaviour/FabricConstants.java'
88
89 wrappers:
90 - lf-infra-wrappers:
91 build-timeout: '30'
92 jenkins-ssh-credential: '{jenkins-ssh-credential}'
pierventre2a6e0062020-07-07 18:08:01 +020093 - credentials-binding:
94 - username-password-separated:
95 credential-id: docker-artifact-push-credentials
96 username: DOCKERHUB_USERNAME
97 password: DOCKERHUB_PASSWORD
pierventrefb03d642020-07-02 23:10:12 +020098
99 builders:
100 - inject:
101 properties-content: |
102 RESOURCES_PATH={resources_path}
103 SDE_REPO={sde_repo}
104 SDE_VER={sde_ver}
105 FABRIC_TOFINO={fabric_tofino}
106 FABRIC_TOFINO_REPO={fabric_tofino_repo}
107 FABRIC_P4TEST={fabric_p4test}
108 FABRIC_P4TEST_REPO={fabric_p4test_repo}
109 BMV2_RUN={bmv2_run}
110 TM_RUN={tm_run}
pierventre2a6e0062020-07-07 18:08:01 +0200111 - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-pre.sh
pierventrefb03d642020-07-02 23:10:12 +0200112 - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-build-bmv2.sh
113 - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-build-tofino.sh
114 - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-p4test.sh
115 - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-test-bmv2.sh
116 - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-test-tofino.sh
117
118 publishers:
119 - onf-infra-wscleanup-publisher