blob: f70bc051f8e56b8414bd859b6fb6b849840bf1b3 [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 Moro3b6646d2022-02-01 14:49:17 +010058 - string:
Daniele Moro5e0a7b22022-01-31 16:10:41 +010059 name: up4Ctrl
Daniele Moro5e0a7b22022-01-31 16:10:41 +010060 default: "{up4Ctrl}"
Daniele Moro3b6646d2022-02-01 14:49:17 +010061 description: "Run p4rt or pfpc -based STC scenarios: [p4rt, pfcp]"
Carmelo Casconebaceafe2021-01-10 19:28:49 -080062
Carmelo Cascone61030f02021-01-11 22:42:21 -080063 # 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 Casconebaceafe2021-01-10 19:28:49 -080076
Carmelo Cascone61030f02021-01-11 22:42:21 -080077 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 Morod0c29152022-02-01 14:23:50 +010081 status_context: "up4-pr-verify-{up4Ctrl}"
Carmelo Casconebaceafe2021-01-10 19:28:49 -080082
Carmelo Cascone61030f02021-01-11 22:42:21 -080083 wrappers:
84 - lf-infra-wrappers:
85 build-timeout: "{build-timeout}"
86 jenkins-ssh-credential: "{jenkins-ssh-credential}"
Yi Tsengfeca1aa2021-04-23 01:59:01 -070087 - credentials-binding:
88 - text:
89 credential-id: codecov-up4
90 variable: CODECOV_TOKEN
Carmelo Cascone61030f02021-01-11 22:42:21 -080091
92- job-template:
Daniele Moro5e0a7b22022-01-31 16:10:41 +010093 id: "up4-postmerge-{up4Ctrl}"
94 name: "up4-postmerge-{up4Ctrl}"
Carmelo Cascone61030f02021-01-11 22:42:21 -080095 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 Moro3b6646d2022-02-01 14:49:17 +0100119 - string:
Daniele Moro5e0a7b22022-01-31 16:10:41 +0100120 name: up4Ctrl
Daniele Moro5e0a7b22022-01-31 16:10:41 +0100121 default: "{up4Ctrl}"
Daniele Moro3b6646d2022-02-01 14:49:17 +0100122 description: "Run p4rt or pfpc -based STC scenarios: [p4rt, pfcp]"
Carmelo Cascone61030f02021-01-11 22:42:21 -0800123
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 Tsengfeca1aa2021-04-23 01:59:01 -0700146 - credentials-binding:
147 - text:
148 credential-id: codecov-up4
149 variable: CODECOV_TOKEN
Daniele Moro2be339e2022-01-24 19:27:09 +0100150
151- job-template:
Daniele Moro5e0a7b22022-01-31 16:10:41 +0100152 id: "up4-devel-nightly-{up4Ctrl}"
153 name: "up4-devel-nightly-{up4Ctrl}"
Daniele Moro2be339e2022-01-24 19:27:09 +0100154 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 Moro3b6646d2022-02-01 14:49:17 +0100182 - string:
Daniele Moro5e0a7b22022-01-31 16:10:41 +0100183 name: up4Ctrl
Daniele Moro5e0a7b22022-01-31 16:10:41 +0100184 default: "{up4Ctrl}"
Daniele Moro3b6646d2022-02-01 14:49:17 +0100185 description: "Run p4rt or pfpc -based STC scenarios: [p4rt, pfcp]"
Daniele Moro2be339e2022-01-24 19:27:09 +0100186
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