[SDFAB-391] Create a new fabric-tna job and pipeline to run linerate tests
Change-Id: I7be6f3151a945385df9c77ba905eb22e0ffdfe79
diff --git a/jjb/templates/fabric-tna-jobs.yaml b/jjb/templates/fabric-tna-jobs.yaml
index efabd3b..8e8db60 100644
--- a/jjb/templates/fabric-tna-jobs.yaml
+++ b/jjb/templates/fabric-tna-jobs.yaml
@@ -159,3 +159,60 @@
# branch and the new pull request.
artifacts: '**/*.log,**/*.json'
excludes: 'tmp/**/*'
+
+- job-template:
+ id: 'fabric-tna-linerate-tests'
+ name: 'fabric-tna-linerate-tests'
+
+ description: |
+ Created by {id} job-template from ci-management/jjb/fabric-tna-jobs.yaml, script ../pipeline/fabric-tna.groovy<br/>
+
+ # Cron syntax; trigger daily at 23:00 PST
+ triggers:
+ - timed: |
+ TZ=US/Pacific
+ H 23 * * *
+
+ properties:
+ - onf-infra-onfstaff-private:
+ - onf-infra-properties:
+ build-days-to-keep: '15'
+ artifact-num-to-keep: '15'
+
+ wrappers:
+ - lf-infra-wrappers:
+ build-timeout: '60'
+ jenkins-ssh-credential: '{github-onf-bot-ssh-credential}'
+
+ parameters:
+ - string:
+ name: BUILD_NODE
+ default: 'menlo-pdp-lotta-nics'
+ description: 'Name of the Jenkins build executor to run the job on'
+ - string:
+ name: GIT_URL
+ default: 'git@github.com:stratum/fabric-tna.git'
+ description: 'Location of fabric-tna repository that tests will check'
+ - string:
+ name: GIT_BRANCH
+ default: 'main'
+ description: 'Name of Git branch to pull from fabric-tna repository'
+ - string:
+ name: PROFILE
+ default: 'fabric-spgw-int'
+ description: 'Name of the flavor of linerate tests to run'
+ - string:
+ name: SWITCH_IP
+ default: '10.128.13.29'
+ description: 'Address of the Stratum service (P4Runtime, gNMI, etc.) running on the remote switch'
+ - string:
+ name: STRATUM_PORT
+ default: '28000'
+ description: 'Port of the Stratum service (P4Runtime, gNMI, etc.) running on the remote switch'
+
+ project-type: pipeline
+ concurrent: true
+ extraEnvironmentVars: ""
+ sandbox: true
+
+ dsl: !include-raw-escape: ../pipeline/fabric-tna-hardware.groovy