| --- |
| # Run fabric.p4 test pipeline |
| |
| - job-template: |
| id: 'fabric-p4-verify' |
| name: 'fabric-p4-verify' |
| |
| description: | |
| Created by {id} job-template from ci-management/jjb/templates/fabric-p4-verify.yaml<br/> |
| Runs fabric.p4 test pipeline |
| |
| properties: |
| - raw: |
| xml: | |
| <hudson.security.AuthorizationMatrixProperty> |
| <inheritanceStrategy class="org.jenkinsci.plugins.matrixauth.inheritance.NonInheritingStrategy"/> |
| <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Create:JenkinsPowerusers</permission> |
| <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Delete:JenkinsPowerusers</permission> |
| <permission>com.cloudbees.plugins.credentials.CredentialsProvider.ManageDomains:JenkinsPowerusers</permission> |
| <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Update:JenkinsPowerusers</permission> |
| <permission>com.cloudbees.plugins.credentials.CredentialsProvider.View:JenkinsPowerusers</permission> |
| <permission>hudson.model.Item.Build:JenkinsPowerusers</permission> |
| <permission>hudson.model.Item.Cancel:JenkinsPowerusers</permission> |
| <permission>hudson.model.Item.Configure:JenkinsPowerusers</permission> |
| <permission>hudson.model.Item.Delete:JenkinsPowerusers</permission> |
| <permission>hudson.model.Item.Discover:JenkinsPowerusers</permission> |
| <permission>hudson.model.Item.Discover:ONFStaff</permission> |
| <permission>hudson.model.Item.ExtendedRead:JenkinsPowerusers</permission> |
| <permission>hudson.model.Item.Move:JenkinsPowerusers</permission> |
| <permission>hudson.model.Item.Read:JenkinsPowerusers</permission> |
| <permission>hudson.model.Item.Read:ONFStaff</permission> |
| <permission>hudson.model.Item.Workspace:JenkinsPowerusers</permission> |
| <permission>hudson.model.Run.Delete:JenkinsPowerusers</permission> |
| <permission>hudson.model.Run.Replay:JenkinsPowerusers</permission> |
| <permission>hudson.model.Run.Update:JenkinsPowerusers</permission> |
| </hudson.security.AuthorizationMatrixProperty> |
| - onf-infra-properties: |
| build-days-to-keep: '{build-days-to-keep}' |
| artifact-num-to-keep: '-1' |
| |
| parameters: |
| - onf-infra-parameters: |
| project: '{project}' |
| stream: '{stream}' |
| gerrit_project: '{gerrit_project}' |
| |
| node: '{bigger-build-node}' |
| project-type: freestyle |
| concurrent: true |
| |
| scm: |
| - onf-infra-gerrit-scm: |
| git-url: '$GIT_URL/$GERRIT_PROJECT' |
| refspec: '$GERRIT_REFSPEC' |
| branch: '$GERRIT_BRANCH' |
| submodule-recursive: '{submodule-recursive}' |
| choosing-strategy: gerrit |
| jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| basedir: '' |
| |
| triggers: |
| - gerrit: |
| server-name: '{gerrit-server-name}' |
| dependency-jobs: '{dependency-jobs}' |
| trigger-on: |
| - patchset-created-event: |
| exclude-drafts: true |
| exclude-trivial-rebase: false |
| exclude-no-code-change: true |
| - draft-published-event: true |
| - comment-added-contains-event: |
| comment-contains-value: '(?i)^.*recheck$' |
| projects: |
| - project-compare-type: PLAIN |
| project-pattern: 'onos' |
| branches: |
| - branch-compare-type: REG_EXP |
| branch-pattern: '{branch-regexp}' |
| - branch-compare-type: PLAIN |
| branch-pattern: 'master' |
| file-paths: |
| - compare-type: ANT |
| pattern: 'pipelines/fabric/impl/src/main/resources/**' |
| - compare-type: ANT |
| pattern: 'pipelines/fabric/api/src/main/java/org/onosproject/pipelines/fabric/FabricConstants.java' |
| - compare-type: ANT |
| pattern: 'pipelines/fabric/impl/src/main/java/org/onosproject/pipelines/fabric/impl/behaviour/FabricConstants.java' |
| |
| wrappers: |
| - lf-infra-wrappers: |
| build-timeout: '30' |
| jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| - credentials-binding: |
| - username-password-separated: |
| credential-id: docker-artifact-push-credentials |
| username: DOCKERHUB_USERNAME |
| password: DOCKERHUB_PASSWORD |
| |
| builders: |
| - inject: |
| properties-content: | |
| RESOURCES_PATH={resources_path} |
| SDE_REPO={sde_repo} |
| SDE_VER={sde_ver} |
| FABRIC_TOFINO={fabric_tofino} |
| FABRIC_TOFINO_REPO={fabric_tofino_repo} |
| FABRIC_P4TEST={fabric_p4test} |
| FABRIC_P4TEST_REPO={fabric_p4test_repo} |
| BMV2_RUN={bmv2_run} |
| TM_RUN={tm_run} |
| - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-pre.sh |
| - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-build-bmv2.sh |
| - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-build-tofino.sh |
| - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-p4test.sh |
| - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-test-bmv2.sh |
| - shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-test-tofino.sh |
| |
| publishers: |
| - onf-infra-wscleanup-publisher |