CI job for fabric.p4
Additionally introduces new defaults
Change-Id: I8d85855931de32b01fac0a436be4f6844919e97c
diff --git a/jjb/templates/fabric-p4-verify.yaml b/jjb/templates/fabric-p4-verify.yaml
new file mode 100644
index 0000000..b14a57e
--- /dev/null
+++ b/jjb/templates/fabric-p4-verify.yaml
@@ -0,0 +1,112 @@
+---
+# 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:
+ - authorization:
+ JenkinsPowerusers:
+ - credentials-create
+ - credentials-delete
+ - credentials-manage-domains
+ - credentials-update
+ - credentials-view
+ - job-build
+ - job-cancel
+ - job-configure
+ - job-delete
+ - job-discover
+ - job-extended-read
+ - job-move
+ - job-read
+ - job-workspace
+ - run-delete
+ - run-replay
+ - run-update
+ ONFStaff:
+ - job-discover
+ - job-read
+ - onf-infra-properties:
+ build-days-to-keep: '{build-days-to-keep}'
+ artifact-num-to-keep: '-1'
+ - onf-infra-docker-properties:
+ docker-credentials-id: '{docker-credentials-id}'
+ docker-registry: '{docker-registry}'
+
+ 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: '{project}'
+
+ 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/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}'
+
+ 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-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