pierventre | fb03d64 | 2020-07-02 23:10:12 +0200 | [diff] [blame] | 1 | --- |
| 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 Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame^] | 13 | # Visibility restricted to ONFStaff because logs contain output from |
| 14 | # Barefoot toolchain (under NDA). |
| 15 | - onf-infra-onfstaff-private: |
pierventre | fb03d64 | 2020-07-02 23:10:12 +0200 | [diff] [blame] | 16 | - onf-infra-properties: |
| 17 | build-days-to-keep: '{build-days-to-keep}' |
| 18 | artifact-num-to-keep: '-1' |
pierventre | fb03d64 | 2020-07-02 23:10:12 +0200 | [diff] [blame] | 19 | |
| 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}' |
pierventre | 113c0f2 | 2020-07-07 12:41:38 +0200 | [diff] [blame] | 38 | basedir: '' |
pierventre | fb03d64 | 2020-07-02 23:10:12 +0200 | [diff] [blame] | 39 | |
| 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 Cascone | f4bf760 | 2020-07-06 22:30:24 -0700 | [diff] [blame] | 64 | pattern: 'pipelines/fabric/api/src/main/java/org/onosproject/pipelines/fabric/FabricConstants.java' |
| 65 | - compare-type: ANT |
pierventre | fb03d64 | 2020-07-02 23:10:12 +0200 | [diff] [blame] | 66 | 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}' |
pierventre | 2a6e006 | 2020-07-07 18:08:01 +0200 | [diff] [blame] | 72 | - credentials-binding: |
| 73 | - username-password-separated: |
| 74 | credential-id: docker-artifact-push-credentials |
| 75 | username: DOCKERHUB_USERNAME |
| 76 | password: DOCKERHUB_PASSWORD |
pierventre | fb03d64 | 2020-07-02 23:10:12 +0200 | [diff] [blame] | 77 | |
| 78 | builders: |
| 79 | - inject: |
| 80 | properties-content: | |
| 81 | RESOURCES_PATH={resources_path} |
| 82 | SDE_REPO={sde_repo} |
| 83 | SDE_VER={sde_ver} |
| 84 | FABRIC_TOFINO={fabric_tofino} |
| 85 | FABRIC_TOFINO_REPO={fabric_tofino_repo} |
| 86 | FABRIC_P4TEST={fabric_p4test} |
| 87 | FABRIC_P4TEST_REPO={fabric_p4test_repo} |
| 88 | BMV2_RUN={bmv2_run} |
| 89 | TM_RUN={tm_run} |
pierventre | 2a6e006 | 2020-07-07 18:08:01 +0200 | [diff] [blame] | 90 | - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-pre.sh |
pierventre | fb03d64 | 2020-07-02 23:10:12 +0200 | [diff] [blame] | 91 | - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-build-bmv2.sh |
| 92 | - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-build-tofino.sh |
| 93 | - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-p4test.sh |
| 94 | - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-test-bmv2.sh |
| 95 | - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-test-tofino.sh |
| 96 | |
| 97 | publishers: |
| 98 | - onf-infra-wscleanup-publisher |