Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 1 | --- |
| 2 | # Run pull request verify job for fabric-tna |
| 3 | |
| 4 | - job-template: |
| 5 | id: 'fabric-tna-pr-verify' |
| 6 | name: 'fabric-tna-pr-verify' |
| 7 | |
| 8 | description: | |
| 9 | Created by {id} job-template from ci-management/jjb/templates/fabric-tna-jobs.yaml<br/> |
| 10 | |
| 11 | properties: |
Carmelo Cascone | 010ab11 | 2021-01-13 00:37:06 -0800 | [diff] [blame] | 12 | # Visibility restricted to because logs contain output from |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 13 | # Barefoot toolchain (under NDA). |
Carmelo Cascone | 010ab11 | 2021-01-13 00:37:06 -0800 | [diff] [blame] | 14 | - onf-infra-pronto-private: |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 15 | - onf-infra-properties: |
Carmelo Cascone | fe5ef68 | 2020-10-01 10:24:01 -0700 | [diff] [blame] | 16 | build-days-to-keep: '15' |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 17 | artifact-num-to-keep: '-1' |
| 18 | - github: |
| 19 | url: 'https://github.com/{github-organization}/{project}' |
| 20 | |
| 21 | node: '{bigger-build-node}' |
| 22 | project-type: freestyle |
| 23 | concurrent: true |
| 24 | |
| 25 | parameters: |
| 26 | - onf-infra-parameters: |
| 27 | project: '{project}' |
| 28 | stream: '{stream}' |
| 29 | gerrit_project: 'not-a-gerrit-project' |
| 30 | |
| 31 | scm: |
| 32 | - onf-infra-github-ssh-scm: |
| 33 | github-organization: '{github-organization}' |
| 34 | project: '{project}' |
| 35 | branch: "$sha1" |
| 36 | ssh-credential: "{github-onf-bot-ssh-credential}" |
| 37 | |
| 38 | triggers: |
| 39 | - onf-infra-github-pr-trigger: |
| 40 | github_pr_org_list: '{obj:github_pr_org_list}' |
| 41 | github_pr_auth_id: '{github_pr_auth_id}' |
| 42 | status_context: 'fabric-tna-pr-verify' |
| 43 | |
| 44 | wrappers: |
| 45 | - lf-infra-wrappers: |
Carmelo Cascone | fe5ef68 | 2020-10-01 10:24:01 -0700 | [diff] [blame] | 46 | build-timeout: '45' |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 47 | jenkins-ssh-credential: '{github-onf-bot-ssh-credential}' |
| 48 | - credentials-binding: |
| 49 | - username-password-separated: |
| 50 | credential-id: docker-artifact-push-credentials |
| 51 | username: DOCKERHUB_USERNAME |
| 52 | password: DOCKERHUB_PASSWORD |
Carmelo Cascone | 2ce1d77 | 2020-09-02 19:37:32 -0700 | [diff] [blame] | 53 | - credentials-binding: |
| 54 | - username-password-separated: |
| 55 | credential-id: aether-internal-registry |
| 56 | username: AETHER_REGISTRY_USERNAME |
| 57 | password: AETHER_REGISTRY_PASSWORD |
Yi Tseng | 9c7b114 | 2021-04-19 10:33:11 -0700 | [diff] [blame^] | 58 | - credentials-binding: |
| 59 | - text: |
| 60 | credential-id: codecov-fabric-tna |
| 61 | variable: CODECOV_TOKEN |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 62 | |
| 63 | builders: |
| 64 | - shell: !include-raw-escape: ../shell/docker-login.sh |
| 65 | # For now, let the actual job script evolve in the repo. We can make that |
| 66 | # a pipeline later. |
| 67 | - shell: | |
| 68 | bash .jenkins/pr_verify.sh |
| 69 | |
| 70 | publishers: |
| 71 | - onf-infra-wscleanup-publisher |
Yi Tseng | aa7a60f | 2020-09-24 16:57:18 -0700 | [diff] [blame] | 72 | - archive: |
| 73 | artifacts: '**/*.log,**/*.pcap' |
| 74 | excludes: 'tmp/**/*' |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 75 | |
| 76 | - job-template: |
| 77 | id: 'fabric-tna-postmerge' |
| 78 | name: 'fabric-tna-postmerge' |
| 79 | |
| 80 | description: | |
| 81 | Created by {id} job-template from ci-management/jjb/templates/fabric-tna-jobs.yaml<br/> |
| 82 | |
| 83 | properties: |
Carmelo Cascone | 010ab11 | 2021-01-13 00:37:06 -0800 | [diff] [blame] | 84 | # Visibility restricted to because logs contain output from |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 85 | # Barefoot toolchain (under NDA). |
Carmelo Cascone | 010ab11 | 2021-01-13 00:37:06 -0800 | [diff] [blame] | 86 | - onf-infra-pronto-private: |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 87 | - onf-infra-properties: |
| 88 | build-days-to-keep: '{build-days-to-keep}' |
| 89 | artifact-num-to-keep: '-1' |
| 90 | - github: |
| 91 | url: 'https://github.com/{github-organization}/{project}' |
| 92 | |
| 93 | node: '{bigger-build-node}' |
| 94 | project-type: freestyle |
| 95 | concurrent: true |
| 96 | |
| 97 | parameters: |
| 98 | - onf-infra-github-pr-merge-parameters: |
| 99 | repo-name: '{project}' |
| 100 | repo-url: 'git@github.com:{github-organization}/{project}.git' |
| 101 | branch: '{stream}' |
| 102 | sha1: '{stream}' |
| 103 | |
| 104 | |
| 105 | scm: |
| 106 | - onf-infra-github-ssh-scm: |
| 107 | github-organization: '{github-organization}' |
| 108 | project: '{project}' |
| 109 | branch: "$commitHash" |
| 110 | ssh-credential: "{github-onf-bot-ssh-credential}" |
| 111 | |
| 112 | triggers: |
| 113 | - onf-infra-github-pr-trigger-merge: |
| 114 | project: '{project}' |
Carmelo Cascone | 9a4cbfa | 2020-08-19 23:11:50 -0700 | [diff] [blame] | 115 | - timed: "@midnight" |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 116 | |
| 117 | wrappers: |
| 118 | - lf-infra-wrappers: |
Carmelo Cascone | fe5ef68 | 2020-10-01 10:24:01 -0700 | [diff] [blame] | 119 | build-timeout: '45' |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 120 | jenkins-ssh-credential: '{github-onf-bot-ssh-credential}' |
| 121 | - credentials-binding: |
| 122 | - username-password-separated: |
| 123 | credential-id: docker-artifact-push-credentials |
| 124 | username: DOCKERHUB_USERNAME |
| 125 | password: DOCKERHUB_PASSWORD |
Carmelo Cascone | 2ce1d77 | 2020-09-02 19:37:32 -0700 | [diff] [blame] | 126 | - credentials-binding: |
| 127 | - username-password-separated: |
| 128 | credential-id: aether-internal-registry |
| 129 | username: AETHER_REGISTRY_USERNAME |
| 130 | password: AETHER_REGISTRY_PASSWORD |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 131 | |
| 132 | builders: |
Carmelo Cascone | 09e86b9 | 2020-08-19 21:09:25 -0700 | [diff] [blame] | 133 | - github-notifier |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 134 | - shell: !include-raw-escape: ../shell/docker-login.sh |
| 135 | # For now, let the actual job script evolve in the repo. We can make that |
| 136 | # a pipeline later. |
| 137 | - shell: | |
| 138 | bash .jenkins/postmerge.sh |
| 139 | |
| 140 | publishers: |
Carmelo Cascone | 09e86b9 | 2020-08-19 21:09:25 -0700 | [diff] [blame] | 141 | - github-notifier |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 142 | - onf-infra-wscleanup-publisher |