blob: cd8886d7a32e8dc57a06baf9df9a31f04a95d3c0 [file] [log] [blame]
Carmelo Casconebaceafe2021-01-10 19:28:49 -08001---
2# jobs for https://github.com/omec-project/up4
3
Carmelo Cascone61030f02021-01-11 22:42:21 -08004- 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 Moro5e0a7b22022-01-31 16:10:41 +010011
12 # Matrix
13 up4Ctrl:
Joey Armstrongca4cb462023-01-12 17:51:05 -050014 - pfcp
15 - p4rt
Daniele Moro5e0a7b22022-01-31 16:10:41 +010016
Carmelo Cascone61030f02021-01-11 22:42:21 -080017 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 Chiuf6cbde22021-04-22 22:15:23 -070022 build-node: "ubuntu18.04-basebuild-8c-15g"
Carmelo Casconebaceafe2021-01-10 19:28:49 -080023
Carmelo Cascone61030f02021-01-11 22:42:21 -080024- job-group:
25 name: "up4-jobs"
26 jobs:
Daniele Moro5e0a7b22022-01-31 16:10:41 +010027 - "up4-pr-verify-{up4Ctrl}"
28 - "up4-postmerge-{up4Ctrl}"
Daniele Morocdbc7e92022-05-18 10:55:46 +020029 - "up4-latest-nightly-{up4Ctrl}"
Carmelo Casconebaceafe2021-01-10 19:28:49 -080030
Carmelo Cascone61030f02021-01-11 22:42:21 -080031- job-template:
Daniele Moro5e0a7b22022-01-31 16:10:41 +010032 id: "up4-pr-verify-{up4Ctrl}"
33 name: "up4-pr-verify-{up4Ctrl}"
Carmelo Cascone61030f02021-01-11 22:42:21 -080034 description: |
35 Created by {id} job-template from ci-management/up4.yaml<br/>
Carmelo Casconebaceafe2021-01-10 19:28:49 -080036
Carmelo Cascone61030f02021-01-11 22:42:21 -080037 project-type: pipeline
38 concurrent: true
Carmelo Casconebaceafe2021-01-10 19:28:49 -080039
Carmelo Cascone61030f02021-01-11 22:42:21 -080040 properties:
Carmelo Cascone61030f02021-01-11 22:42:21 -080041 - 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 Casconebaceafe2021-01-10 19:28:49 -080046
Carmelo Cascone61030f02021-01-11 22:42:21 -080047 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 Moro3b6646d2022-02-01 14:49:17 +010056 - string:
Daniele Moro5e0a7b22022-01-31 16:10:41 +010057 name: up4Ctrl
Daniele Moro5e0a7b22022-01-31 16:10:41 +010058 default: "{up4Ctrl}"
Daniele Moro3b6646d2022-02-01 14:49:17 +010059 description: "Run p4rt or pfpc -based STC scenarios: [p4rt, pfcp]"
Carmelo Casconebaceafe2021-01-10 19:28:49 -080060
Carmelo Cascone61030f02021-01-11 22:42:21 -080061 # 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 Casconebaceafe2021-01-10 19:28:49 -080074
Carmelo Cascone61030f02021-01-11 22:42:21 -080075 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 Morod0c29152022-02-01 14:23:50 +010079 status_context: "up4-pr-verify-{up4Ctrl}"
Carmelo Casconebaceafe2021-01-10 19:28:49 -080080
Carmelo Cascone61030f02021-01-11 22:42:21 -080081 wrappers:
82 - lf-infra-wrappers:
83 build-timeout: "{build-timeout}"
84 jenkins-ssh-credential: "{jenkins-ssh-credential}"
Yi Tsengfeca1aa2021-04-23 01:59:01 -070085 - credentials-binding:
86 - text:
87 credential-id: codecov-up4
88 variable: CODECOV_TOKEN
Carmelo Cascone61030f02021-01-11 22:42:21 -080089
90- job-template:
Daniele Moro5e0a7b22022-01-31 16:10:41 +010091 id: "up4-postmerge-{up4Ctrl}"
92 name: "up4-postmerge-{up4Ctrl}"
Carmelo Cascone61030f02021-01-11 22:42:21 -080093 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 Cascone61030f02021-01-11 22:42:21 -0800100 - 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 Moro3b6646d2022-02-01 14:49:17 +0100115 - string:
Daniele Moro5e0a7b22022-01-31 16:10:41 +0100116 name: up4Ctrl
Daniele Moro5e0a7b22022-01-31 16:10:41 +0100117 default: "{up4Ctrl}"
Daniele Moro3b6646d2022-02-01 14:49:17 +0100118 description: "Run p4rt or pfpc -based STC scenarios: [p4rt, pfcp]"
Carmelo Cascone61030f02021-01-11 22:42:21 -0800119
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 Tsengfeca1aa2021-04-23 01:59:01 -0700142 - credentials-binding:
143 - text:
144 credential-id: codecov-up4
145 variable: CODECOV_TOKEN
Daniele Moro2be339e2022-01-24 19:27:09 +0100146
147- job-template:
Daniele Morocdbc7e92022-05-18 10:55:46 +0200148 id: "up4-latest-nightly-{up4Ctrl}"
149 name: "up4-latest-nightly-{up4Ctrl}"
Daniele Moro2be339e2022-01-24 19:27:09 +0100150 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 Moro2be339e2022-01-24 19:27:09 +0100157 - 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 Morocdbc7e92022-05-18 10:55:46 +0200174 default: 'latest'
175 description: 'UP4 STC scenarios environment (stable or latest)'
Daniele Moro3b6646d2022-02-01 14:49:17 +0100176 - string:
Daniele Moro5e0a7b22022-01-31 16:10:41 +0100177 name: up4Ctrl
Daniele Moro5e0a7b22022-01-31 16:10:41 +0100178 default: "{up4Ctrl}"
Daniele Moro3b6646d2022-02-01 14:49:17 +0100179 description: "Run p4rt or pfpc -based STC scenarios: [p4rt, pfcp]"
Daniele Moro2be339e2022-01-24 19:27:09 +0100180
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 Armstrongaf679da2023-01-31 14:22:41 -0500205
206# [EOF]