blob: 67e3583cfe96d314103a9e80d1288bd0676df572 [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:
Carmelo Cascone81631ed2020-08-18 19:33:25 -070013 # Visibility restricted to ONFStaff because logs contain output from
14 # Barefoot toolchain (under NDA).
15 - onf-infra-onfstaff-private:
pierventrefb03d642020-07-02 23:10:12 +020016 - onf-infra-properties:
17 build-days-to-keep: '{build-days-to-keep}'
18 artifact-num-to-keep: '-1'
pierventrefb03d642020-07-02 23:10:12 +020019
20 parameters:
21 - onf-infra-parameters:
22 project: '{project}'
23 stream: '{stream}'
24 gerrit_project: '{gerrit_project}'
25
26 node: '{bigger-build-node}'
27 project-type: freestyle
28 concurrent: true
29
30 scm:
31 - onf-infra-gerrit-scm:
32 git-url: '$GIT_URL/$GERRIT_PROJECT'
33 refspec: '$GERRIT_REFSPEC'
34 branch: '$GERRIT_BRANCH'
35 submodule-recursive: '{submodule-recursive}'
36 choosing-strategy: gerrit
37 jenkins-ssh-credential: '{jenkins-ssh-credential}'
pierventre113c0f22020-07-07 12:41:38 +020038 basedir: ''
pierventrefb03d642020-07-02 23:10:12 +020039
40 triggers:
41 - gerrit:
42 server-name: '{gerrit-server-name}'
43 dependency-jobs: '{dependency-jobs}'
44 trigger-on:
45 - patchset-created-event:
46 exclude-drafts: true
47 exclude-trivial-rebase: false
48 exclude-no-code-change: true
49 - draft-published-event: true
50 - comment-added-contains-event:
51 comment-contains-value: '(?i)^.*recheck$'
52 projects:
53 - project-compare-type: PLAIN
54 project-pattern: 'onos'
55 branches:
56 - branch-compare-type: REG_EXP
57 branch-pattern: '{branch-regexp}'
58 - branch-compare-type: PLAIN
59 branch-pattern: 'master'
60 file-paths:
61 - compare-type: ANT
62 pattern: 'pipelines/fabric/impl/src/main/resources/**'
63 - compare-type: ANT
Carmelo Casconef4bf7602020-07-06 22:30:24 -070064 pattern: 'pipelines/fabric/api/src/main/java/org/onosproject/pipelines/fabric/FabricConstants.java'
65 - compare-type: ANT
pierventrefb03d642020-07-02 23:10:12 +020066 pattern: 'pipelines/fabric/impl/src/main/java/org/onosproject/pipelines/fabric/impl/behaviour/FabricConstants.java'
67
68 wrappers:
69 - lf-infra-wrappers:
70 build-timeout: '30'
71 jenkins-ssh-credential: '{jenkins-ssh-credential}'
pierventre2a6e0062020-07-07 18:08:01 +020072 - credentials-binding:
73 - username-password-separated:
74 credential-id: docker-artifact-push-credentials
75 username: DOCKERHUB_USERNAME
76 password: DOCKERHUB_PASSWORD
pierventrefb03d642020-07-02 23:10:12 +020077
78 builders:
79 - inject:
80 properties-content: |
81 RESOURCES_PATH={resources_path}
pierventrefb03d642020-07-02 23:10:12 +020082 FABRIC_P4TEST={fabric_p4test}
83 FABRIC_P4TEST_REPO={fabric_p4test_repo}
84 BMV2_RUN={bmv2_run}
pierventre2a6e0062020-07-07 18:08:01 +020085 - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-pre.sh
pierventrefb03d642020-07-02 23:10:12 +020086 - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-build-bmv2.sh
pierventrefb03d642020-07-02 23:10:12 +020087 - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-p4test.sh
88 - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-test-bmv2.sh
pierventrefb03d642020-07-02 23:10:12 +020089
90 publishers:
91 - onf-infra-wscleanup-publisher