blob: 67e3583cfe96d314103a9e80d1288bd0676df572 [file] [log] [blame]
---
# 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:
# Visibility restricted to ONFStaff because logs contain output from
# Barefoot toolchain (under NDA).
- onf-infra-onfstaff-private:
- 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}
FABRIC_P4TEST={fabric_p4test}
FABRIC_P4TEST_REPO={fabric_p4test_repo}
BMV2_RUN={bmv2_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-p4test.sh
- shell: !include-raw-escape: ../shell/fabric-p4/fabric-p4-test-bmv2.sh
publishers:
- onf-infra-wscleanup-publisher