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