Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 1 | --- |
Emanuele Gallone | 3b0861c | 2021-11-09 16:53:57 +0100 | [diff] [blame] | 2 | # Run pull request verify job for each fabric profile and architecture |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 3 | |
| 4 | - job-template: |
Emanuele Gallone | 3b0861c | 2021-11-09 16:53:57 +0100 | [diff] [blame] | 5 | id: 'pr-verify-{profile}-{arch}' |
| 6 | name: pr-verify-{profile}-{arch} |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 7 | |
| 8 | description: | |
| 9 | Created by {id} job-template from ci-management/jjb/templates/fabric-tna-jobs.yaml<br/> |
| 10 | |
| 11 | properties: |
Carmelo Cascone | 7980549 | 2022-02-04 17:27:21 -0800 | [diff] [blame] | 12 | # Visibility restricted 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 | |
Emanuele Gallone | 3b0861c | 2021-11-09 16:53:57 +0100 | [diff] [blame] | 21 | project-type: pipeline |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 22 | concurrent: true |
| 23 | |
| 24 | parameters: |
Emanuele Gallone | 3b0861c | 2021-11-09 16:53:57 +0100 | [diff] [blame] | 25 | - string: |
| 26 | name: buildNode |
| 27 | default: "{medium-build-node}" |
| 28 | description: "Name of the Jenkins executor node to run the job on." |
| 29 | - string: |
| 30 | name: sha1 |
| 31 | default: "origin/{stream}" |
| 32 | description: "SHA string of the pull request commit to build. Populated by GitHUb Pull Request Builder." |
| 33 | - string: |
| 34 | name: profile |
| 35 | default: "{profile}" |
| 36 | description: "Profile to build and test." |
| 37 | - string: |
| 38 | name: architecture |
| 39 | default: "{arch}" |
| 40 | description: "P4 architecture to use (v1model or tna)." |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 41 | |
Emanuele Gallone | 3b0861c | 2021-11-09 16:53:57 +0100 | [diff] [blame] | 42 | # Run pipeline that is checked-in in the same PR we want to verify. |
| 43 | pipeline-scm: |
| 44 | script-path: ".jenkins/Jenkinsfile" |
| 45 | scm: |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 46 | - onf-infra-github-ssh-scm: |
| 47 | github-organization: '{github-organization}' |
| 48 | project: '{project}' |
| 49 | branch: "$sha1" |
| 50 | ssh-credential: "{github-onf-bot-ssh-credential}" |
| 51 | |
| 52 | triggers: |
| 53 | - onf-infra-github-pr-trigger: |
| 54 | github_pr_org_list: '{obj:github_pr_org_list}' |
| 55 | github_pr_auth_id: '{github_pr_auth_id}' |
Emanuele Gallone | 3b0861c | 2021-11-09 16:53:57 +0100 | [diff] [blame] | 56 | status_context: 'pr-verify-{profile}-{arch}' |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 57 | |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 58 | - job-template: |
Emanuele Gallone | 3b0861c | 2021-11-09 16:53:57 +0100 | [diff] [blame] | 59 | id: 'postmerge-{profile}-{arch}' |
| 60 | name: 'postmerge-{profile}-{arch}' |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 61 | |
| 62 | description: | |
| 63 | Created by {id} job-template from ci-management/jjb/templates/fabric-tna-jobs.yaml<br/> |
| 64 | |
| 65 | properties: |
Carmelo Cascone | 010ab11 | 2021-01-13 00:37:06 -0800 | [diff] [blame] | 66 | # Visibility restricted to because logs contain output from |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 67 | # Barefoot toolchain (under NDA). |
Carmelo Cascone | 010ab11 | 2021-01-13 00:37:06 -0800 | [diff] [blame] | 68 | - onf-infra-pronto-private: |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 69 | - onf-infra-properties: |
| 70 | build-days-to-keep: '{build-days-to-keep}' |
| 71 | artifact-num-to-keep: '-1' |
| 72 | - github: |
| 73 | url: 'https://github.com/{github-organization}/{project}' |
| 74 | |
Emanuele Gallone | 3b0861c | 2021-11-09 16:53:57 +0100 | [diff] [blame] | 75 | project-type: pipeline |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 76 | concurrent: true |
| 77 | |
| 78 | parameters: |
| 79 | - onf-infra-github-pr-merge-parameters: |
| 80 | repo-name: '{project}' |
| 81 | repo-url: 'git@github.com:{github-organization}/{project}.git' |
| 82 | branch: '{stream}' |
| 83 | sha1: '{stream}' |
Emanuele Gallone | 3b0861c | 2021-11-09 16:53:57 +0100 | [diff] [blame] | 84 | - string: |
| 85 | name: buildNode |
| 86 | default: "{medium-build-node}" |
| 87 | description: "Name of the Jenkins executor node to run the job on." |
| 88 | - string: |
| 89 | name: profile |
| 90 | default: "{profile}" |
| 91 | description: "Profile to be built and tested." |
| 92 | - string: |
| 93 | name: architecture |
| 94 | default: "{arch}" |
| 95 | description: "P4 architecture to use (v1model or tna)." |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 96 | |
Emanuele Gallone | 3b0861c | 2021-11-09 16:53:57 +0100 | [diff] [blame] | 97 | pipeline-scm: |
| 98 | script-path: ".jenkins/Jenkinsfile" |
| 99 | scm: |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 100 | - onf-infra-github-ssh-scm: |
| 101 | github-organization: '{github-organization}' |
| 102 | project: '{project}' |
| 103 | branch: "$commitHash" |
| 104 | ssh-credential: "{github-onf-bot-ssh-credential}" |
| 105 | |
| 106 | triggers: |
| 107 | - onf-infra-github-pr-trigger-merge: |
| 108 | project: '{project}' |
Carmelo Cascone | 9a4cbfa | 2020-08-19 23:11:50 -0700 | [diff] [blame] | 109 | - timed: "@midnight" |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 110 | |
Darius Grassi | 8b7a5e6 | 2021-07-30 15:35:04 -0700 | [diff] [blame] | 111 | - job-template: |
| 112 | id: 'fabric-tna-linerate-tests' |
| 113 | name: 'fabric-tna-linerate-tests' |
| 114 | |
| 115 | description: | |
| 116 | Created by {id} job-template from ci-management/jjb/fabric-tna-jobs.yaml, script ../pipeline/fabric-tna.groovy<br/> |
| 117 | |
| 118 | # Cron syntax; trigger daily at 23:00 PST |
| 119 | triggers: |
| 120 | - timed: | |
| 121 | TZ=US/Pacific |
| 122 | H 23 * * * |
| 123 | |
| 124 | properties: |
| 125 | - onf-infra-onfstaff-private: |
| 126 | - onf-infra-properties: |
| 127 | build-days-to-keep: '15' |
| 128 | artifact-num-to-keep: '15' |
| 129 | |
| 130 | wrappers: |
| 131 | - lf-infra-wrappers: |
| 132 | build-timeout: '60' |
| 133 | jenkins-ssh-credential: '{github-onf-bot-ssh-credential}' |
| 134 | |
| 135 | parameters: |
| 136 | - string: |
| 137 | name: BUILD_NODE |
| 138 | default: 'menlo-pdp-lotta-nics' |
| 139 | description: 'Name of the Jenkins build executor to run the job on' |
| 140 | - string: |
| 141 | name: GIT_URL |
| 142 | default: 'git@github.com:stratum/fabric-tna.git' |
| 143 | description: 'Location of fabric-tna repository that tests will check' |
| 144 | - string: |
| 145 | name: GIT_BRANCH |
| 146 | default: 'main' |
| 147 | description: 'Name of Git branch to pull from fabric-tna repository' |
| 148 | - string: |
| 149 | name: PROFILE |
Carmelo Cascone | c4adf13 | 2022-02-03 16:55:19 -0800 | [diff] [blame] | 150 | default: 'fabric-upf-int' |
Darius Grassi | 8b7a5e6 | 2021-07-30 15:35:04 -0700 | [diff] [blame] | 151 | description: 'Name of the flavor of linerate tests to run' |
| 152 | - string: |
| 153 | name: SWITCH_IP |
| 154 | default: '10.128.13.29' |
| 155 | description: 'Address of the Stratum service (P4Runtime, gNMI, etc.) running on the remote switch' |
| 156 | - string: |
| 157 | name: STRATUM_PORT |
| 158 | default: '28000' |
| 159 | description: 'Port of the Stratum service (P4Runtime, gNMI, etc.) running on the remote switch' |
| 160 | |
| 161 | project-type: pipeline |
| 162 | concurrent: true |
| 163 | extraEnvironmentVars: "" |
| 164 | sandbox: true |
| 165 | |
| 166 | dsl: !include-raw-escape: ../pipeline/fabric-tna-hardware.groovy |