Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 1 | --- |
| 2 | # jobs for https://github.com/omec-project/up4 |
| 3 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 4 | - project: |
| 5 | name: up4 |
| 6 | project: "{name}" |
| 7 | github-organization: "omec-project" |
| 8 | github_pr_auth_id: "64fe2b1a-b33a-4f13-8442-ad8360434003" |
| 9 | github_pr_org_list: |
| 10 | - "omec-project" |
Daniele Moro | 5e0a7b2 | 2022-01-31 16:10:41 +0100 | [diff] [blame] | 11 | |
| 12 | # Matrix |
| 13 | up4Ctrl: |
| 14 | - pfcp |
| 15 | - p4rt |
| 16 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 17 | jobs: |
| 18 | - "up4-jobs": |
| 19 | stream: "master" |
| 20 | # As we run integration tests with 3 ONOS instances, |
| 21 | # we need a beefy node. |
Hung-Wei Chiu | f6cbde2 | 2021-04-22 22:15:23 -0700 | [diff] [blame] | 22 | build-node: "ubuntu18.04-basebuild-8c-15g" |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 23 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 24 | - job-group: |
| 25 | name: "up4-jobs" |
| 26 | jobs: |
Daniele Moro | 5e0a7b2 | 2022-01-31 16:10:41 +0100 | [diff] [blame] | 27 | - "up4-pr-verify-{up4Ctrl}" |
| 28 | - "up4-postmerge-{up4Ctrl}" |
| 29 | - "up4-devel-nightly-{up4Ctrl}" |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 30 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 31 | - job-template: |
Daniele Moro | 5e0a7b2 | 2022-01-31 16:10:41 +0100 | [diff] [blame] | 32 | id: "up4-pr-verify-{up4Ctrl}" |
| 33 | name: "up4-pr-verify-{up4Ctrl}" |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 34 | description: | |
| 35 | Created by {id} job-template from ci-management/up4.yaml<br/> |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 36 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 37 | project-type: pipeline |
| 38 | concurrent: true |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 39 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 40 | properties: |
| 41 | # Visibility restricted to Aether members only. |
| 42 | - cord-infra-aether-private: |
| 43 | - cord-infra-properties: |
| 44 | build-days-to-keep: "15" |
| 45 | artifact-num-to-keep: "-1" |
| 46 | - github: |
| 47 | url: "https://github.com/{github-organization}/{project}" |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 48 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 49 | parameters: |
| 50 | - string: |
| 51 | name: buildNode |
| 52 | default: "{build-node}" |
| 53 | description: "Name of the Jenkins executor node to run the job on." |
| 54 | - string: |
| 55 | name: sha1 |
| 56 | default: "origin/{stream}" |
| 57 | description: "SHA string of the pull request commit to build. Populated by GitHUb Pull Request Builder." |
Daniele Moro | 5e0a7b2 | 2022-01-31 16:10:41 +0100 | [diff] [blame] | 58 | - choice: |
| 59 | name: up4Ctrl |
| 60 | choices: |
| 61 | - pfcp |
| 62 | - p4rt |
| 63 | default: "{up4Ctrl}" |
| 64 | description: "Run p4rt or pfpc -based STC scenarios" |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 65 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 66 | # Run pipeline that is checked-in in the same PR we want to verify. |
| 67 | pipeline-scm: |
| 68 | script-path: ".jenkins/Jenkinsfile" |
| 69 | scm: |
| 70 | - git: |
| 71 | url: "git@github.com:{github-organization}/{project}.git" |
| 72 | credentials-id: "github-onf-bot-ssh-key" |
| 73 | refspec: "+refs/pull/*:refs/remotes/origin/pr/*" |
| 74 | branches: |
| 75 | - "$sha1" |
| 76 | submodule: |
| 77 | disable: true |
| 78 | shallow-clone: true |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 79 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 80 | triggers: |
| 81 | - cord-infra-github-pr-trigger: |
| 82 | github_pr_org_list: "{obj:github_pr_org_list}" |
| 83 | github_pr_auth_id: "{github_pr_auth_id}" |
Daniele Moro | d0c2915 | 2022-02-01 14:23:50 +0100 | [diff] [blame^] | 84 | status_context: "up4-pr-verify-{up4Ctrl}" |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 85 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 86 | wrappers: |
| 87 | - lf-infra-wrappers: |
| 88 | build-timeout: "{build-timeout}" |
| 89 | jenkins-ssh-credential: "{jenkins-ssh-credential}" |
Yi Tseng | feca1aa | 2021-04-23 01:59:01 -0700 | [diff] [blame] | 90 | - credentials-binding: |
| 91 | - text: |
| 92 | credential-id: codecov-up4 |
| 93 | variable: CODECOV_TOKEN |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 94 | |
| 95 | - job-template: |
Daniele Moro | 5e0a7b2 | 2022-01-31 16:10:41 +0100 | [diff] [blame] | 96 | id: "up4-postmerge-{up4Ctrl}" |
| 97 | name: "up4-postmerge-{up4Ctrl}" |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 98 | description: | |
| 99 | Created by {id} job-template from ci-management/up4.yaml<br/> |
| 100 | |
| 101 | project-type: pipeline |
| 102 | concurrent: true |
| 103 | |
| 104 | properties: |
| 105 | # Visibility restricted to Aether members only. |
| 106 | - cord-infra-aether-private: |
| 107 | - cord-infra-properties: |
| 108 | build-days-to-keep: "15" |
| 109 | artifact-num-to-keep: "-1" |
| 110 | - github: |
| 111 | url: "https://github.com/{github-organization}/{project}" |
| 112 | |
| 113 | parameters: |
| 114 | - string: |
| 115 | name: buildNode |
| 116 | default: "{build-node}" |
| 117 | description: "Name of the Jenkins executor node to run the job on." |
| 118 | - string: |
| 119 | name: commitHash |
| 120 | default: 'origin/{stream}' |
| 121 | description: 'SHA string of the merged commit to build. Populated by Generic Webhook Trigger.' |
Daniele Moro | 5e0a7b2 | 2022-01-31 16:10:41 +0100 | [diff] [blame] | 122 | - choice: |
| 123 | name: up4Ctrl |
| 124 | choices: |
| 125 | - pfcp |
| 126 | - p4rt |
| 127 | default: "{up4Ctrl}" |
| 128 | description: "Run p4rt or pfpc -based STC scenarios" |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 129 | |
| 130 | pipeline-scm: |
| 131 | script-path: ".jenkins/Jenkinsfile" |
| 132 | scm: |
| 133 | - git: |
| 134 | url: "git@github.com:{github-organization}/{project}.git" |
| 135 | credentials-id: "github-onf-bot-ssh-key" |
| 136 | refspec: "+refs/heads/*:refs/remotes/origin/*" |
| 137 | branches: |
| 138 | - "$commitHash" |
| 139 | submodule: |
| 140 | disable: true |
| 141 | shallow-clone: true |
| 142 | |
| 143 | triggers: |
| 144 | - cord-infra-github-pr-trigger-merge: |
| 145 | project: '{project}' |
| 146 | - timed: "@midnight" |
| 147 | |
| 148 | wrappers: |
| 149 | - lf-infra-wrappers: |
| 150 | build-timeout: "{build-timeout}" |
| 151 | jenkins-ssh-credential: "{jenkins-ssh-credential}" |
Yi Tseng | feca1aa | 2021-04-23 01:59:01 -0700 | [diff] [blame] | 152 | - credentials-binding: |
| 153 | - text: |
| 154 | credential-id: codecov-up4 |
| 155 | variable: CODECOV_TOKEN |
Daniele Moro | 2be339e | 2022-01-24 19:27:09 +0100 | [diff] [blame] | 156 | |
| 157 | - job-template: |
Daniele Moro | 5e0a7b2 | 2022-01-31 16:10:41 +0100 | [diff] [blame] | 158 | id: "up4-devel-nightly-{up4Ctrl}" |
| 159 | name: "up4-devel-nightly-{up4Ctrl}" |
Daniele Moro | 2be339e | 2022-01-24 19:27:09 +0100 | [diff] [blame] | 160 | description: | |
| 161 | Created by {id} job-template from ci-management/up4.yaml<br/> |
| 162 | |
| 163 | project-type: pipeline |
| 164 | concurrent: true |
| 165 | |
| 166 | properties: |
| 167 | # Visibility restricted to Aether members only. |
| 168 | - cord-infra-aether-private: |
| 169 | - cord-infra-properties: |
| 170 | build-days-to-keep: "15" |
| 171 | artifact-num-to-keep: "-1" |
| 172 | - github: |
| 173 | url: "https://github.com/{github-organization}/{project}" |
| 174 | |
| 175 | parameters: |
| 176 | - string: |
| 177 | name: buildNode |
| 178 | default: "{build-node}" |
| 179 | description: "Name of the Jenkins executor node to run the job on." |
| 180 | - string: |
| 181 | name: commitHash |
| 182 | default: 'origin/{stream}' |
| 183 | description: 'SHA string of the merged commit to build. Populated by Generic Webhook Trigger.' |
| 184 | - string: |
| 185 | name: up4Env |
| 186 | default: 'devel' |
| 187 | description: 'UP4 STC scenarios environment (stable or devel)' |
Daniele Moro | 5e0a7b2 | 2022-01-31 16:10:41 +0100 | [diff] [blame] | 188 | - choice: |
| 189 | name: up4Ctrl |
| 190 | choices: |
| 191 | - pfcp |
| 192 | - p4rt |
| 193 | default: "{up4Ctrl}" |
| 194 | description: "Run p4rt or pfpc -based STC scenarios" |
Daniele Moro | 2be339e | 2022-01-24 19:27:09 +0100 | [diff] [blame] | 195 | |
| 196 | pipeline-scm: |
| 197 | script-path: ".jenkins/Jenkinsfile" |
| 198 | scm: |
| 199 | - git: |
| 200 | url: "git@github.com:{github-organization}/{project}.git" |
| 201 | credentials-id: "github-onf-bot-ssh-key" |
| 202 | refspec: "+refs/heads/*:refs/remotes/origin/*" |
| 203 | branches: |
| 204 | - "$commitHash" |
| 205 | submodule: |
| 206 | disable: true |
| 207 | shallow-clone: true |
| 208 | |
| 209 | triggers: |
| 210 | - timed: "@midnight" |
| 211 | |
| 212 | wrappers: |
| 213 | - lf-infra-wrappers: |
| 214 | build-timeout: "{build-timeout}" |
| 215 | jenkins-ssh-credential: "{jenkins-ssh-credential}" |
| 216 | - credentials-binding: |
| 217 | - text: |
| 218 | credential-id: codecov-up4 |
| 219 | variable: CODECOV_TOKEN |