blob: f11199c4005d8af16adad31434756178b64a6308 [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:
14 - pfcp
15 - p4rt
16
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}"
29 - "up4-devel-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:
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 Casconebaceafe2021-01-10 19:28:49 -080048
Carmelo Cascone61030f02021-01-11 22:42:21 -080049 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 Moro5e0a7b22022-01-31 16:10:41 +010058 - choice:
59 name: up4Ctrl
60 choices:
61 - pfcp
62 - p4rt
63 default: "{up4Ctrl}"
64 description: "Run p4rt or pfpc -based STC scenarios"
Carmelo Casconebaceafe2021-01-10 19:28:49 -080065
Carmelo Cascone61030f02021-01-11 22:42:21 -080066 # 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 Casconebaceafe2021-01-10 19:28:49 -080079
Carmelo Cascone61030f02021-01-11 22:42:21 -080080 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}"
84 status_context: "up4-pr-verify"
Carmelo Casconebaceafe2021-01-10 19:28:49 -080085
Carmelo Cascone61030f02021-01-11 22:42:21 -080086 wrappers:
87 - lf-infra-wrappers:
88 build-timeout: "{build-timeout}"
89 jenkins-ssh-credential: "{jenkins-ssh-credential}"
Yi Tsengfeca1aa2021-04-23 01:59:01 -070090 - credentials-binding:
91 - text:
92 credential-id: codecov-up4
93 variable: CODECOV_TOKEN
Carmelo Cascone61030f02021-01-11 22:42:21 -080094
95- job-template:
Daniele Moro5e0a7b22022-01-31 16:10:41 +010096 id: "up4-postmerge-{up4Ctrl}"
97 name: "up4-postmerge-{up4Ctrl}"
Carmelo Cascone61030f02021-01-11 22:42:21 -080098 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 Moro5e0a7b22022-01-31 16:10:41 +0100122 - choice:
123 name: up4Ctrl
124 choices:
125 - pfcp
126 - p4rt
127 default: "{up4Ctrl}"
128 description: "Run p4rt or pfpc -based STC scenarios"
Carmelo Cascone61030f02021-01-11 22:42:21 -0800129
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 Tsengfeca1aa2021-04-23 01:59:01 -0700152 - credentials-binding:
153 - text:
154 credential-id: codecov-up4
155 variable: CODECOV_TOKEN
Daniele Moro2be339e2022-01-24 19:27:09 +0100156
157- job-template:
Daniele Moro5e0a7b22022-01-31 16:10:41 +0100158 id: "up4-devel-nightly-{up4Ctrl}"
159 name: "up4-devel-nightly-{up4Ctrl}"
Daniele Moro2be339e2022-01-24 19:27:09 +0100160 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 Moro5e0a7b22022-01-31 16:10:41 +0100188 - choice:
189 name: up4Ctrl
190 choices:
191 - pfcp
192 - p4rt
193 default: "{up4Ctrl}"
194 description: "Run p4rt or pfpc -based STC scenarios"
Daniele Moro2be339e2022-01-24 19:27:09 +0100195
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