blob: 8e8db60073818abda12c66985e85575c43265ea0 [file] [log] [blame]
---
# Run pull request verify job for fabric-tna
- job-template:
id: 'fabric-tna-pr-verify'
name: 'fabric-tna-pr-verify'
description: |
Created by {id} job-template from ci-management/jjb/templates/fabric-tna-jobs.yaml<br/>
properties:
# Visibility restricted to because logs contain output from
# Barefoot toolchain (under NDA).
- onf-infra-pronto-private:
- onf-infra-properties:
build-days-to-keep: '15'
artifact-num-to-keep: '-1'
- github:
url: 'https://github.com/{github-organization}/{project}'
node: '{bigger-build-node}'
project-type: freestyle
concurrent: true
parameters:
- onf-infra-parameters:
project: '{project}'
stream: '{stream}'
gerrit_project: 'not-a-gerrit-project'
scm:
- onf-infra-github-ssh-scm:
github-organization: '{github-organization}'
project: '{project}'
branch: "$sha1"
ssh-credential: "{github-onf-bot-ssh-credential}"
triggers:
- onf-infra-github-pr-trigger:
github_pr_org_list: '{obj:github_pr_org_list}'
github_pr_auth_id: '{github_pr_auth_id}'
status_context: 'fabric-tna-pr-verify'
wrappers:
- lf-infra-wrappers:
build-timeout: '80'
jenkins-ssh-credential: '{github-onf-bot-ssh-credential}'
- credentials-binding:
- username-password-separated:
credential-id: docker-artifact-push-credentials
username: DOCKERHUB_USERNAME
password: DOCKERHUB_PASSWORD
- credentials-binding:
- username-password-separated:
credential-id: aether-internal-registry
username: AETHER_REGISTRY_USERNAME
password: AETHER_REGISTRY_PASSWORD
- credentials-binding:
- username-password-separated:
credential-id: onf-internal-registry
username: ONF_REGISTRY_USERNAME
password: ONF_REGISTRY_PASSWORD
- credentials-binding:
- text:
credential-id: codecov-fabric-tna
variable: CODECOV_TOKEN
builders:
- shell: !include-raw-escape: ../shell/docker-login.sh
# For now, let the actual job script evolve in the repo. We can make that
# a pipeline later.
- shell: |
bash .jenkins/pr_verify.sh
publishers:
- onf-infra-wscleanup-publisher
- archive:
artifacts: '**/*.log,**/*.pcap,**/*.json'
excludes: 'tmp/**/*'
- job-template:
id: 'fabric-tna-postmerge'
name: 'fabric-tna-postmerge'
description: |
Created by {id} job-template from ci-management/jjb/templates/fabric-tna-jobs.yaml<br/>
properties:
# Visibility restricted to because logs contain output from
# Barefoot toolchain (under NDA).
- onf-infra-pronto-private:
- onf-infra-properties:
build-days-to-keep: '{build-days-to-keep}'
artifact-num-to-keep: '-1'
- github:
url: 'https://github.com/{github-organization}/{project}'
node: '{bigger-build-node}'
project-type: freestyle
concurrent: true
parameters:
- onf-infra-github-pr-merge-parameters:
repo-name: '{project}'
repo-url: 'git@github.com:{github-organization}/{project}.git'
branch: '{stream}'
sha1: '{stream}'
scm:
- onf-infra-github-ssh-scm:
github-organization: '{github-organization}'
project: '{project}'
branch: "$commitHash"
ssh-credential: "{github-onf-bot-ssh-credential}"
triggers:
- onf-infra-github-pr-trigger-merge:
project: '{project}'
- timed: "@midnight"
wrappers:
- lf-infra-wrappers:
build-timeout: '80'
jenkins-ssh-credential: '{github-onf-bot-ssh-credential}'
- credentials-binding:
- username-password-separated:
credential-id: docker-artifact-push-credentials
username: DOCKERHUB_USERNAME
password: DOCKERHUB_PASSWORD
- credentials-binding:
- username-password-separated:
credential-id: aether-internal-registry
username: AETHER_REGISTRY_USERNAME
password: AETHER_REGISTRY_PASSWORD
- credentials-binding:
- username-password-separated:
credential-id: onf-internal-registry
username: ONF_REGISTRY_USERNAME
password: ONF_REGISTRY_PASSWORD
- credentials-binding:
- text:
credential-id: codecov-fabric-tna
variable: CODECOV_TOKEN
builders:
- github-notifier
- shell: !include-raw-escape: ../shell/docker-login.sh
# For now, let the actual job script evolve in the repo. We can make that
# a pipeline later.
- shell: |
bash .jenkins/postmerge.sh
publishers:
- github-notifier
- onf-infra-wscleanup-publisher
- archive:
# Preserve the build log so we can compare the resources between the main
# 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