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