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 | c3fcb71 | 2021-07-07 16:36:16 +0200 | [diff] [blame] | 46 | build-timeout: '80' |
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: |
Yi Tseng | 2526a50 | 2021-06-07 02:36:50 -0700 | [diff] [blame] | 59 | - username-password-separated: |
| 60 | credential-id: onf-internal-registry |
| 61 | username: ONF_REGISTRY_USERNAME |
| 62 | password: ONF_REGISTRY_PASSWORD |
| 63 | - credentials-binding: |
Yi Tseng | 9c7b114 | 2021-04-19 10:33:11 -0700 | [diff] [blame] | 64 | - text: |
| 65 | credential-id: codecov-fabric-tna |
| 66 | variable: CODECOV_TOKEN |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 67 | |
| 68 | builders: |
| 69 | - shell: !include-raw-escape: ../shell/docker-login.sh |
| 70 | # For now, let the actual job script evolve in the repo. We can make that |
| 71 | # a pipeline later. |
| 72 | - shell: | |
| 73 | bash .jenkins/pr_verify.sh |
| 74 | |
| 75 | publishers: |
| 76 | - onf-infra-wscleanup-publisher |
Yi Tseng | aa7a60f | 2020-09-24 16:57:18 -0700 | [diff] [blame] | 77 | - archive: |
Yi Tseng | b75fcfe | 2021-04-27 17:23:02 -0700 | [diff] [blame] | 78 | artifacts: '**/*.log,**/*.pcap,**/*.json' |
Yi Tseng | aa7a60f | 2020-09-24 16:57:18 -0700 | [diff] [blame] | 79 | excludes: 'tmp/**/*' |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 80 | |
| 81 | - job-template: |
| 82 | id: 'fabric-tna-postmerge' |
| 83 | name: 'fabric-tna-postmerge' |
| 84 | |
| 85 | description: | |
| 86 | Created by {id} job-template from ci-management/jjb/templates/fabric-tna-jobs.yaml<br/> |
| 87 | |
| 88 | properties: |
Carmelo Cascone | 010ab11 | 2021-01-13 00:37:06 -0800 | [diff] [blame] | 89 | # Visibility restricted to because logs contain output from |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 90 | # Barefoot toolchain (under NDA). |
Carmelo Cascone | 010ab11 | 2021-01-13 00:37:06 -0800 | [diff] [blame] | 91 | - onf-infra-pronto-private: |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 92 | - onf-infra-properties: |
| 93 | build-days-to-keep: '{build-days-to-keep}' |
| 94 | artifact-num-to-keep: '-1' |
| 95 | - github: |
| 96 | url: 'https://github.com/{github-organization}/{project}' |
| 97 | |
| 98 | node: '{bigger-build-node}' |
| 99 | project-type: freestyle |
| 100 | concurrent: true |
| 101 | |
| 102 | parameters: |
| 103 | - onf-infra-github-pr-merge-parameters: |
| 104 | repo-name: '{project}' |
| 105 | repo-url: 'git@github.com:{github-organization}/{project}.git' |
| 106 | branch: '{stream}' |
| 107 | sha1: '{stream}' |
| 108 | |
| 109 | |
| 110 | scm: |
| 111 | - onf-infra-github-ssh-scm: |
| 112 | github-organization: '{github-organization}' |
| 113 | project: '{project}' |
| 114 | branch: "$commitHash" |
| 115 | ssh-credential: "{github-onf-bot-ssh-credential}" |
| 116 | |
| 117 | triggers: |
| 118 | - onf-infra-github-pr-trigger-merge: |
| 119 | project: '{project}' |
Carmelo Cascone | 9a4cbfa | 2020-08-19 23:11:50 -0700 | [diff] [blame] | 120 | - timed: "@midnight" |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 121 | |
| 122 | wrappers: |
| 123 | - lf-infra-wrappers: |
Carmelo Cascone | c3fcb71 | 2021-07-07 16:36:16 +0200 | [diff] [blame] | 124 | build-timeout: '80' |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 125 | jenkins-ssh-credential: '{github-onf-bot-ssh-credential}' |
| 126 | - credentials-binding: |
| 127 | - username-password-separated: |
| 128 | credential-id: docker-artifact-push-credentials |
| 129 | username: DOCKERHUB_USERNAME |
| 130 | password: DOCKERHUB_PASSWORD |
Carmelo Cascone | 2ce1d77 | 2020-09-02 19:37:32 -0700 | [diff] [blame] | 131 | - credentials-binding: |
| 132 | - username-password-separated: |
| 133 | credential-id: aether-internal-registry |
| 134 | username: AETHER_REGISTRY_USERNAME |
| 135 | password: AETHER_REGISTRY_PASSWORD |
Yi Tseng | 17e77b7 | 2021-04-23 02:02:25 -0700 | [diff] [blame] | 136 | - credentials-binding: |
Yi Tseng | 2526a50 | 2021-06-07 02:36:50 -0700 | [diff] [blame] | 137 | - username-password-separated: |
| 138 | credential-id: onf-internal-registry |
| 139 | username: ONF_REGISTRY_USERNAME |
| 140 | password: ONF_REGISTRY_PASSWORD |
| 141 | - credentials-binding: |
Yi Tseng | 17e77b7 | 2021-04-23 02:02:25 -0700 | [diff] [blame] | 142 | - text: |
| 143 | credential-id: codecov-fabric-tna |
| 144 | variable: CODECOV_TOKEN |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 145 | |
| 146 | builders: |
Carmelo Cascone | 09e86b9 | 2020-08-19 21:09:25 -0700 | [diff] [blame] | 147 | - github-notifier |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 148 | - shell: !include-raw-escape: ../shell/docker-login.sh |
| 149 | # For now, let the actual job script evolve in the repo. We can make that |
| 150 | # a pipeline later. |
| 151 | - shell: | |
| 152 | bash .jenkins/postmerge.sh |
| 153 | |
| 154 | publishers: |
Carmelo Cascone | 09e86b9 | 2020-08-19 21:09:25 -0700 | [diff] [blame] | 155 | - github-notifier |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 156 | - onf-infra-wscleanup-publisher |
Yi Tseng | b75fcfe | 2021-04-27 17:23:02 -0700 | [diff] [blame] | 157 | - archive: |
| 158 | # Preserve the build log so we can compare the resources between the main |
| 159 | # branch and the new pull request. |
| 160 | artifacts: '**/*.log,**/*.json' |
| 161 | excludes: 'tmp/**/*' |
Darius Grassi | 8b7a5e6 | 2021-07-30 15:35:04 -0700 | [diff] [blame] | 162 | |
| 163 | - job-template: |
| 164 | id: 'fabric-tna-linerate-tests' |
| 165 | name: 'fabric-tna-linerate-tests' |
| 166 | |
| 167 | description: | |
| 168 | Created by {id} job-template from ci-management/jjb/fabric-tna-jobs.yaml, script ../pipeline/fabric-tna.groovy<br/> |
| 169 | |
| 170 | # Cron syntax; trigger daily at 23:00 PST |
| 171 | triggers: |
| 172 | - timed: | |
| 173 | TZ=US/Pacific |
| 174 | H 23 * * * |
| 175 | |
| 176 | properties: |
| 177 | - onf-infra-onfstaff-private: |
| 178 | - onf-infra-properties: |
| 179 | build-days-to-keep: '15' |
| 180 | artifact-num-to-keep: '15' |
| 181 | |
| 182 | wrappers: |
| 183 | - lf-infra-wrappers: |
| 184 | build-timeout: '60' |
| 185 | jenkins-ssh-credential: '{github-onf-bot-ssh-credential}' |
| 186 | |
| 187 | parameters: |
| 188 | - string: |
| 189 | name: BUILD_NODE |
| 190 | default: 'menlo-pdp-lotta-nics' |
| 191 | description: 'Name of the Jenkins build executor to run the job on' |
| 192 | - string: |
| 193 | name: GIT_URL |
| 194 | default: 'git@github.com:stratum/fabric-tna.git' |
| 195 | description: 'Location of fabric-tna repository that tests will check' |
| 196 | - string: |
| 197 | name: GIT_BRANCH |
| 198 | default: 'main' |
| 199 | description: 'Name of Git branch to pull from fabric-tna repository' |
| 200 | - string: |
| 201 | name: PROFILE |
| 202 | default: 'fabric-spgw-int' |
| 203 | description: 'Name of the flavor of linerate tests to run' |
| 204 | - string: |
| 205 | name: SWITCH_IP |
| 206 | default: '10.128.13.29' |
| 207 | description: 'Address of the Stratum service (P4Runtime, gNMI, etc.) running on the remote switch' |
| 208 | - string: |
| 209 | name: STRATUM_PORT |
| 210 | default: '28000' |
| 211 | description: 'Port of the Stratum service (P4Runtime, gNMI, etc.) running on the remote switch' |
| 212 | |
| 213 | project-type: pipeline |
| 214 | concurrent: true |
| 215 | extraEnvironmentVars: "" |
| 216 | sandbox: true |
| 217 | |
| 218 | dsl: !include-raw-escape: ../pipeline/fabric-tna-hardware.groovy |