| --- |
| # 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/**/*' |