blob: da5dfdccc15d7137bf03d2842a2e7c95acd4dd89 [file] [log] [blame]
Andrew Grimbergebc710a2017-01-30 12:59:38 -08001---
Gary Wu6c702772018-08-06 18:48:02 -07002- job-template: &verify_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -08003 # Job template for Java verify jobs
4 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08005 # The purpose of this job template is to run:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08006 # 1. maven clean install
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -05007 #
8 # Required Variables:
9 # branch: git branch (eg. stable/lithium or master)
10
Andrew Grimbergce2286c2017-01-31 05:50:39 -080011 name: '{project-name}-{stream}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080012
13 project-type: freestyle
14 concurrent: true
15 node: '{build-node}'
Jessica Wagantall993e5362019-08-30 14:40:34 -070016 build-env-variables: ''
Gary Wu5918acd2018-08-06 16:42:21 -070017 pattern: '**'
Gary Wu6c702772018-08-06 18:48:02 -070018 pom:
Jessica Wagantall5b0faff2019-08-30 12:45:08 -070019 mvn-opts: ''
20 java-opts: ''
Jessica Wagantall52360d62019-11-08 15:32:58 -080021 java-version: openjdk8
Andrew Grimbergebc710a2017-01-30 12:59:38 -080022 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070023 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080024 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080025
26 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070027 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080028 project: '{project}'
29 branch: '{branch}'
30 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080031 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080032 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080033 maven-version: '{maven-version}'
Jessica Wagantalld25908c2018-03-28 12:06:39 -070034 - maven-params:
35 mvn-params: '{mvn-params}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080036
37 scm:
38 - gerrit-trigger-scm:
39 refspec: '$GERRIT_REFSPEC'
40 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050041 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080042
43 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070044 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080045 build-timeout: '{build-timeout}'
46
47 triggers:
48 - gerrit-trigger-patch-submitted:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080049 server: '{server-name}'
50 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080051 branch: '{branch}'
Gary Wu5918acd2018-08-06 16:42:21 -070052 files: '{obj:pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080053
54 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070055 - lf-infra-pre-build
Jessica Wagantall52360d62019-11-08 15:32:58 -080056 - lf-update-java-alternatives:
57 java-version: "{java-version}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080058 - provide-maven-settings:
59 global-settings-file: 'global-settings'
60 settings-file: '{mvn-settings}'
Jessica Wagantall993e5362019-08-30 14:40:34 -070061 - inject:
62 properties-content: "{build-env-variables}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080063 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -080064 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -070065 pom: '{obj:pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -040066 goals: 'clean install -B
Jessica Wagantalld25908c2018-03-28 12:06:39 -070067 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn {mvn-params}'
Jessica Wagantall5b0faff2019-08-30 12:45:08 -070068 properties:
69 - MAVEN_OPTS='{mvn-opts}'
70 java-opts:
71 - "{java-opts}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080072 settings: '{mvn-settings}'
73 settings-type: cfp
74 global-settings: 'global-settings'
75 global-settings-type: cfp
76
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070077 publishers:
78 - infra-shiplogs:
79 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080080
81- job-template:
JulienBe77903ed2017-07-17 15:30:26 +020082 # Job template for Java verify jobs running checkstyle at the end
83 # When checkstyle will be fully incorporated, it is meant to replace
84 # '{project-name}-{stream}-verify-java-checkstyle'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080085 #
86 # The purpose of this job template is to run:
87 # 1. maven clean install
88 #
89 # This job publishes checkstyle results.
JulienBe77903ed2017-07-17 15:30:26 +020090 #
91 # Required Variables:
92 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080093
Gary Wu6c702772018-08-06 18:48:02 -070094 <<: *verify_java_defaults
JulienBe77903ed2017-07-17 15:30:26 +020095 name: '{project-name}-{stream}-verify-java-checkstyle'
JulienBe77903ed2017-07-17 15:30:26 +020096 publishers:
97 - infra-shiplogs:
98 maven-version: '{maven-version}'
99 - checkstyle-result
100
101- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800102 # Job template for Java verify jobs with POM not at the root
103 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800104 # The purpose of this job template is to run:
105 # 1. maven clean install
106 #
107 # This job supports subprojects.
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800108 #
109 # Required Variables:
110 # branch: git branch (eg. stable/lithium or master)
111 # pom: name/location of the pom.xml file relative to the workspace
112 # pattern: ant file-path pattern relative to the workspace used to
113 # trigger the job
114
Gary Wu6c702772018-08-06 18:48:02 -0700115 <<: *verify_java_defaults
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800116 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800117
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800118- job-template:
pwielebsd30b16f2019-11-18 12:17:18 +0100119 # Job template for Java integration pairwise jobs
120 #
121 # The purpose of this job template is to run:
122 # 1. maven clean install
123 #
124 # Required Variables:
125 # branch: git branch (eg. stable/lithium or master)
126
127 <<: *verify_java_defaults
128 name: '{project-name}-{stream}-integration-pairwise'
129 triggers:
130 - timed: '@daily'
131 - gerrit-trigger-patch-submitted:
132 server: '{server-name}'
133 project: '{project}'
134 branch: '{branch}'
135 files: '{obj:pattern}'
136
137- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100138 # Job template for Java daily release jobs
139 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800140 # The purpose of this job template is to run:
141 # 1. maven clean deploy with Sonar scans
JulienBe2f4ee072017-02-01 21:42:32 +0100142 #
143 # Required Variables:
144 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800145
JulienBe2f4ee072017-02-01 21:42:32 +0100146 name: '{project-name}-{stream}-release-java-daily'
147
148 project-type: freestyle
149 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700150 disabled: '{disabled}'
JulienBe2f4ee072017-02-01 21:42:32 +0100151 maven-deploy-properties:
152 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700153 - infra-properties:
JulienBe2f4ee072017-02-01 21:42:32 +0100154 build-days-to-keep: '{build-days-to-keep}'
155
156 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700157 - infra-parameters:
JulienBe2f4ee072017-02-01 21:42:32 +0100158 project: '{project}'
159 branch: '{branch}'
160 refspec: 'refs/heads/{branch}'
161 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800162 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800163 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100164
165 scm:
166 - gerrit-trigger-scm:
167 refspec: ''
168 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500169 submodule-recursive: '{submodule-recursive}'
JulienBe2f4ee072017-02-01 21:42:32 +0100170
171 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700172 - infra-wrappers:
JulienBe2f4ee072017-02-01 21:42:32 +0100173 build-timeout: '{build-timeout}'
174
175 triggers:
176 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700177 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800178 - gerrit-trigger-release-manually:
179 server: '{server-name}'
180 project: '{project}'
181 branch: '{branch}'
JulienBe2f4ee072017-02-01 21:42:32 +0100182
183 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700184 - lf-infra-pre-build
JulienBe2f4ee072017-02-01 21:42:32 +0100185 - provide-maven-settings:
186 global-settings-file: 'global-settings'
187 settings-file: '{mvn-settings}'
188
JulienBe5641aa02017-02-17 01:08:38 -0800189 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800190 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800191 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400192 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBe5641aa02017-02-17 01:08:38 -0800193 properties:
194 - '{maven-deploy-properties}'
Jessica Wagantall6223d1d2017-08-07 14:46:58 -0700195 java-opts:
196 - '-Xmx4096m -XX:MaxPermSize=512m'
JulienBe5641aa02017-02-17 01:08:38 -0800197 settings: '{mvn-settings}'
198 settings-type: cfp
199 global-settings: 'global-settings'
200 global-settings-type: cfp
201
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700202 publishers:
203 - infra-shiplogs:
204 maven-version: '{maven-version}'
205
JulienBe5641aa02017-02-17 01:08:38 -0800206- job-template:
JulienBe77903ed2017-07-17 15:30:26 +0200207 # Job template for Java daily release jobs running checkstyle at the end
208 # When checkstyle will be fully incorporated, it is meant to replace
209 # '{project-name}-{stream}-release-java-daily'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800210 #
211 # The purpose of this job template is to run:
212 # 1. maven clean deploy with Sonar scans
213 #
214 # This job publishes checkstyle results.
215 # This job uses a conditional regex match step to set versions.
JulienBe77903ed2017-07-17 15:30:26 +0200216 #
217 # Required Variables:
218 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800219
JulienBe77903ed2017-07-17 15:30:26 +0200220 name: '{project-name}-{stream}-release-java-daily-checkstyle'
221 project-type: freestyle
222 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700223 disabled: '{disabled}'
JulienBe77903ed2017-07-17 15:30:26 +0200224 maven-deploy-properties:
225 properties:
226 - infra-properties:
227 build-days-to-keep: '{build-days-to-keep}'
228 parameters:
229 - infra-parameters:
230 project: '{project}'
231 branch: '{branch}'
232 refspec: 'refs/heads/{branch}'
233 artifacts: '{archive-artifacts}'
234 - maven-exec:
235 maven-version: '{maven-version}'
236 scm:
237 - gerrit-trigger-scm:
238 refspec: ''
239 choosing-strategy: 'default'
240 submodule-recursive: '{submodule-recursive}'
241 wrappers:
242 - infra-wrappers:
243 build-timeout: '{build-timeout}'
244 triggers:
245 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700246 - timed: '@daily'
JulienBe77903ed2017-07-17 15:30:26 +0200247 - gerrit-trigger-release-manually:
248 server: '{server-name}'
249 project: '{project}'
250 branch: '{branch}'
251 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700252 - lf-infra-pre-build
JulienBe77903ed2017-07-17 15:30:26 +0200253 - provide-maven-settings:
254 global-settings-file: 'global-settings'
255 settings-file: '{mvn-settings}'
JulienBed91a33a2017-09-25 15:56:34 +0200256 - conditional-step:
257 condition-kind: regex-match
258 regex: DoSetVersion
259 label: '{setVersion}'
260 steps:
261 - inject:
262 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700263 - maven-set-release-version:
JulienBed91a33a2017-09-25 15:56:34 +0200264 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700265 mvn-settings: '{mvn-settings}'
266 pom:
JulienBe77903ed2017-07-17 15:30:26 +0200267 - maven-target:
268 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800269 goals: 'clean deploy -B
JulienBe77903ed2017-07-17 15:30:26 +0200270 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBec9d90e22017-08-08 10:44:10 +0200271 properties: '{obj:mvn_properties}'
JulienBe77903ed2017-07-17 15:30:26 +0200272 settings: '{mvn-settings}'
273 settings-type: cfp
274 global-settings: 'global-settings'
275 global-settings-type: cfp
276 publishers:
277 - infra-shiplogs:
278 maven-version: '{maven-version}'
279 - checkstyle-result-daily
280
281- job-template:
JulienBe5641aa02017-02-17 01:08:38 -0800282 # Job template for Java daily release jobs
283 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800284 # The purpose of this job template is to run:
285 # 1. maven set versions
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800286 # 2. maven clean deploy with Sonar scans
Pamela Dragosh55ceb8f2017-05-23 12:23:16 -0400287 #
288 # Required Variables:
289 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800290
JulienBe5641aa02017-02-17 01:08:38 -0800291 name: '{project-name}-{stream}-release-version-java-daily'
292
293 project-type: freestyle
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700294 disabled: '{disabled}'
JulienBe5641aa02017-02-17 01:08:38 -0800295 node: '{build-node}'
296 maven-deploy-properties:
297 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700298 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800299 build-days-to-keep: '{build-days-to-keep}'
300
301 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700302 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800303 project: '{project}'
304 branch: '{branch}'
305 refspec: 'refs/heads/{branch}'
306 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800307 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800308 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800309
310 scm:
311 - gerrit-trigger-scm:
312 refspec: ''
313 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500314 submodule-recursive: '{submodule-recursive}'
JulienBe5641aa02017-02-17 01:08:38 -0800315
316 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700317 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800318 build-timeout: '{build-timeout}'
319
320 triggers:
321 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700322 - timed: '@daily'
JulienBe5641aa02017-02-17 01:08:38 -0800323 - gerrit-trigger-release-manually:
324 server: '{server-name}'
325 project: '{project}'
326 branch: '{branch}'
327
328 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700329 - lf-infra-pre-build
JulienBe5641aa02017-02-17 01:08:38 -0800330 - provide-maven-settings:
331 global-settings-file: 'global-settings'
332 settings-file: '{mvn-settings}'
333
JulienBe2f4ee072017-02-01 21:42:32 +0100334 - inject:
335 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700336 - maven-set-release-version:
Andrew Grimberge2465882017-02-24 12:38:05 -0800337 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700338 mvn-settings: '{mvn-settings}'
339 pom:
JulienBe2f4ee072017-02-01 21:42:32 +0100340
341 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800342 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800343 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400344 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800345 properties:
346 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100347 settings: '{mvn-settings}'
348 settings-type: cfp
349 global-settings: 'global-settings'
350 global-settings-type: cfp
351
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700352 publishers:
353 - infra-shiplogs:
354 maven-version: '{maven-version}'
355
Gary Wu6c702772018-08-06 18:48:02 -0700356- job-template: &merge_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800357 # Job template for Java merge jobs
358 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800359 # The purpose of this job template is to run:
360 # 1. maven clean deploy
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800361 #
362 # Required Variables:
363 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800364
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800365 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800366
367 project-type: freestyle
368 node: '{build-node}'
Gary Wu6c702772018-08-06 18:48:02 -0700369 pattern: '**'
370 pom:
371 mvn_properties: []
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700372 mvn-params: ''
Houa Yangb7778e62019-09-03 13:23:05 -0500373 mvn-opts: ''
374 java-opts: ''
Jessica Wagantall52360d62019-11-08 15:32:58 -0800375 java-version: openjdk8
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800376
377 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700378 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800379 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800380
381 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700382 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800383 project: '{project}'
384 branch: '{branch}'
385 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800386 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800387 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800388 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800389
390 scm:
391 - gerrit-trigger-scm:
392 refspec: ''
393 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500394 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800395
396 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700397 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800398 build-timeout: '{build-timeout}'
399
400 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800401 - gerrit-trigger-patch-merged:
402 server: '{server-name}'
403 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800404 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800405 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800406
407 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700408 - lf-infra-pre-build
Jessica Wagantall52360d62019-11-08 15:32:58 -0800409 - lf-update-java-alternatives:
410 java-version: "{java-version}"
Cristina Paunab4d24a62019-09-12 20:50:02 +0300411 - provide-maven-settings:
412 global-settings-file: 'global-settings'
413 settings-file: '{mvn-settings}'
Cristina Pauna42c1f522019-09-11 17:45:06 +0300414 - conditional-step:
415 condition-kind: regex-match
416 regex: .*(amd64|arm64).*
417 label: '{project-name}'
418 steps:
419 - shell: !include-raw-escape: global-jjb/shell/docker-login.sh
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800420 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800421 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -0700422 pom: '{obj:pom}'
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700423 goals: 'clean deploy -B {mvn-params}
Andrew Grimberge55b6222017-05-03 16:19:28 -0400424 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Houa Yangb7778e62019-09-03 13:23:05 -0500425 properties:
426 - MAVEN_OPTS='{mvn-opts}'
427 java-opts:
428 - "{java-opts}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800429 settings: '{mvn-settings}'
430 settings-type: cfp
431 global-settings: 'global-settings'
432 global-settings-type: cfp
Gary Wu6c702772018-08-06 18:48:02 -0700433 properties: '{obj:mvn_properties}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800434
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700435 publishers:
436 - infra-shiplogs:
437 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100438
439- job-template:
Gary Wu6c702772018-08-06 18:48:02 -0700440 # Job template for Java merge jobs based on
441 # '{project-name}-{stream}-merge-java'
442 # The purpose of this job template is to run:
443 # 1. maven clean deploy
444 #
445 # This project supports maven properties.
446 #
447 # Required Variables:
448 # branch: git branch (eg. stable/lithium or master)
449 # maven-properties: properties passed to maven
450
451 <<: *merge_java_defaults
452 name: '{project-name}-{stream}-merge-properties-java'
453
sebdet72bb3602020-06-11 17:24:40 +0200454 wrappers:
455 - lf-infra-wrappers:
456 build-timeout: '{build-timeout}'
457 jenkins-ssh-credential: '{jenkins-ssh-credential}'
458
Gary Wu6c702772018-08-06 18:48:02 -0700459- job-template:
460 # Job template for Java merge jobs that takes a maven template
461 #
462 # The purpose of this job template is to run:
463 # 1. maven clean deploy -P {mvn-profile}
464 #
465 # Required Variables:
466 # branch: git branch (eg. stable/lithium or master)
467
468 <<: *merge_java_defaults
469 name: '{project-name}-{stream}-merge-profile-java'
470
471 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700472 - lf-infra-pre-build
Gary Wu6c702772018-08-06 18:48:02 -0700473 - provide-maven-settings:
474 global-settings-file: 'global-settings'
475 settings-file: '{mvn-settings}'
476
477 - docker-login
478
479 - maven-target:
480 maven-version: '{maven-version}'
481 goals: 'clean deploy -P {mvn-profile} -B
482 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
483 settings: '{mvn-settings}'
484 settings-type: cfp
485 global-settings: 'global-settings'
486 global-settings-type: cfp
487 properties:
488 - docker.pull.registry=nexus3.onap.org:10001
489 - docker.push.registry=nexus3.onap.org:10003
490
491- job-template:
492 # Job template for Java merge jobs with POM not at the root
493 #
494 # The purpose of this job template is to run:
495 # 1. maven clean deploy
496 #
497 # This job supports subprojects.
498 #
499 # Required Variables:
500 # branch: git branch (eg. stable/lithium or master)
501 # pom: name/location of the pom.xml file relative to the workspace
502 # pattern: ant file-path pattern relative to the workspace used to
503 # trigger the job
504
505 <<: *merge_java_defaults
506 name: '{project-name}-{stream}-{subproject}-merge-java'
507
Gary Wu350fbcb2018-08-07 11:13:59 -0700508- job-template: &docker_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800509 # Job template for Docker daily jobs
510 #
511 # The purpose of this job template is to run:
512 # 1. login to the docker registry
513 # 2. docker push
514 #
515 # Required Variables:
516 # branch: git branch (eg. stable/lithium or master)
517
Anaël Clossonabbafb52017-02-09 17:55:10 +0100518 name: '{project-name}-{stream}-docker-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700519 id: '{project-name}-{stream}-docker-java-daily'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100520 project-type: freestyle
Jessica Wagantall34e6d6b2018-11-08 12:43:06 -0800521 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700522 disabled: '{disabled}'
Anil Belurd6802662020-07-28 13:45:10 +1000523 java-version: openjdk8
Anaël Clossonabbafb52017-02-09 17:55:10 +0100524 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700525 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100526 build-days-to-keep: '{build-days-to-keep}'
527
528 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700529 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100530 project: '{project}'
531 branch: '{branch}'
532 refspec: 'refs/heads/{branch}'
533 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800534 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800535 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700536 - maven-params:
537 mvn-params: '{mvn-params}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100538
539 scm:
540 - gerrit-trigger-scm:
541 refspec: ''
542 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500543 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100544
Anaël Clossonabbafb52017-02-09 17:55:10 +0100545 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700546 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100547 build-timeout: '{build-timeout}'
548
549 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800550 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700551 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800552 - gerrit-trigger-release-manually:
553 server: '{server-name}'
554 project: '{project}'
555 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100556
557 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700558 - lf-infra-pre-build
Anil Belurd6802662020-07-28 13:45:10 +1000559 - lf-update-java-alternatives:
560 java-version: "{java-version}"
561
Anaël Clossonabbafb52017-02-09 17:55:10 +0100562 - provide-maven-settings:
563 global-settings-file: 'global-settings'
564 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100565
Anaël Closson63e090e2017-02-15 14:50:45 +0100566 - docker-login
567
Anaël Clossonabbafb52017-02-09 17:55:10 +0100568 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800569 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100570 mvn-settings: '{mvn-settings}'
571 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100572 # use default as mvn-profile if profile is not needed
573 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700574 mvn-params: '{mvn-params}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500575
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700576 publishers:
577 - infra-shiplogs:
578 maven-version: '{maven-version}'
579
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500580- job-template:
Gary Wu9e9210f2018-07-18 16:19:20 -0700581 # Job template for Docker daily jobs
582 #
583 # The purpose of this job template is to run:
584 # 1. login to the docker registry
585 # 2. docker push
586 #
587 # Required Variables:
588 # branch: git branch (eg. stable/lithium or master)
589
Gary Wu350fbcb2018-08-07 11:13:59 -0700590 <<: *docker_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700591 name: '{project-name}-{stream}-docker-java-daily'
592 id: docker-java-daily
Gary Wu9e9210f2018-07-18 16:19:20 -0700593 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700594 wrappers:
595 - infra-wrappers-docker-build:
596 build-timeout: '{build-timeout}'
597
Gary Wu9e9210f2018-07-18 16:19:20 -0700598- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +0200599 # Job template for building & pushing docker images
600 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800601 # The purpose of this job template is to run:
JulienBe91c56ec2017-06-21 23:37:39 +0200602 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800603 # 2. run a specified shell builder
604 #
605 # Required Variables:
606 # pom: name/location of the pom.xml file relative to the workspace
607 # maven-properties: properties passed to maven
608
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500609 name: '{project-name}-{stream}-docker-java-shell-daily'
610 project-type: freestyle
Jessica Wagantallfe5efea2018-08-07 16:02:39 -0700611 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700612 disabled: '{disabled}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500613 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700614 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500615 build-days-to-keep: '{build-days-to-keep}'
616
617 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700618 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500619 project: '{project}'
620 branch: '{branch}'
621 refspec: 'refs/heads/{branch}'
622 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800623 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800624 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500625
626 scm:
627 - gerrit-trigger-scm:
628 refspec: ''
629 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500630 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500631
632 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700633 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500634 build-timeout: '{build-timeout}'
635
636 triggers:
637 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700638 - timed: '@daily'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500639 - gerrit-trigger-release-manually:
640 server: '{server-name}'
641 project: '{project}'
642 branch: '{branch}'
643
644 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700645 - lf-infra-pre-build
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500646 - provide-maven-settings:
647 global-settings-file: 'global-settings'
648 settings-file: '{mvn-settings}'
649
650 - docker-login
651
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500652 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800653 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500654 goals: '{mvn-goals}'
655 settings: '{mvn-settings}'
656 settings-type: cfp
657 global-settings: 'global-settings'
658 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500659
660 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000661
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700662 publishers:
663 - infra-shiplogs:
664 maven-version: '{maven-version}'
665
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000666- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800667 # Job template for building & pushing docker images
668 #
669 # The purpose of this job template is to run:
670 # 1. login to the docker registry
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700671 # 2. run a specified shell builder
672 #
673 # Required Variables:
674 # pom: name/location of the pom.xml file relative to the workspace
675 # maven-properties: properties passed to maven
676
677 name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily'
678 project-type: freestyle
679 node: '{build-node}'
680 disabled: '{disabled}'
681 properties:
682 - infra-properties:
683 build-days-to-keep: '{build-days-to-keep}'
684
685 parameters:
686 - infra-parameters:
687 project: '{project}'
688 branch: '{branch}'
689 refspec: 'refs/heads/{branch}'
690 artifacts: '{archive-artifacts}'
691 - maven-exec:
692 maven-version: '{maven-version}'
693
694 scm:
695 - gerrit-trigger-scm:
696 refspec: ''
697 choosing-strategy: 'default'
698 submodule-recursive: '{submodule-recursive}'
699
700 wrappers:
701 - infra-wrappers:
702 build-timeout: '{build-timeout}'
703
704 triggers:
705 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700706 - timed: '@daily'
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700707 - gerrit-trigger-release-manually:
708 server: '{server-name}'
709 project: '{project}'
710 branch: '{branch}'
711
712 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700713 - lf-infra-pre-build
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700714 - provide-maven-settings:
715 global-settings-file: 'global-settings'
716 settings-file: '{mvn-settings}'
717
718 - docker-login
719
720 - maven-target:
721 maven-version: '{maven-version}'
722 pom: '{pom}'
723 goals: '{mvn-goals}'
724 settings: '{mvn-settings}'
725 settings-type: cfp
726 global-settings: 'global-settings'
727 global-settings-type: cfp
728
729 - shell: '{script}'
730
731 publishers:
732 - infra-shiplogs:
733 maven-version: '{maven-version}'
734
735- job-template:
736 # Job template for building & pushing docker images
737 #
738 # The purpose of this job template is to run:
739 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800740 # 2. inject a version.properties file and set versions
741 # 3. run a specified shell builder
742 #
743 # Required Variables:
744 # pom: name/location of the pom.xml file relative to the workspace
745 # maven-properties: properties passed to maven
746
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400747 name: '{project-name}-{stream}-docker-java-version-shell-daily'
748 project-type: freestyle
Jessica Wagantalld50aa192018-11-08 13:03:33 -0800749 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700750 disabled: '{disabled}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400751 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700752 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400753 build-days-to-keep: '{build-days-to-keep}'
754
755 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700756 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400757 project: '{project}'
758 branch: '{branch}'
759 refspec: 'refs/heads/{branch}'
760 artifacts: '{archive-artifacts}'
761 - maven-exec:
762 maven-version: '{maven-version}'
763
764 scm:
765 - gerrit-trigger-scm:
766 refspec: ''
767 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500768 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400769
770 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700771 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400772 build-timeout: '{build-timeout}'
773
774 triggers:
775 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700776 - timed: '@daily'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400777 - gerrit-trigger-release-manually:
778 server: '{server-name}'
779 project: '{project}'
780 branch: '{branch}'
781
782 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700783 - lf-infra-pre-build
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400784 - provide-maven-settings:
785 global-settings-file: 'global-settings'
786 settings-file: '{mvn-settings}'
787
788 - inject:
789 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700790 - maven-set-release-version:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400791 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700792 mvn-settings: '{mvn-settings}'
793 pom:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400794
795 - docker-login
796
797 - maven-target:
798 maven-version: '{maven-version}'
799 goals: '{mvn-goals}'
800 settings: '{mvn-settings}'
801 settings-type: cfp
802 global-settings: 'global-settings'
803 global-settings-type: cfp
804
805 - shell: '{script}'
806
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700807 publishers:
808 - infra-shiplogs:
809 maven-version: '{maven-version}'
810
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400811- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800812 # Job template for building & pushing docker images
813 #
814 # The purpose of this job template is to run:
815 # 1. login to the docker registry
816 # 2. inject a version.properties file and set versions
817 # 3. run a specified shell builder
818 #
819 # This template supports subprojects.
820 #
821 # Required Variables:
822 # pom: name/location of the pom.xml file relative to the workspace
823 # maven-properties: properties passed to maven
824
Zhaoxing49773042017-10-13 17:14:35 +0800825 name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
826 project-type: freestyle
Jessica Wagantall612da802020-03-31 10:44:03 -0700827 node: 'ubuntu1804-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700828 disabled: '{disabled}'
Zhaoxing49773042017-10-13 17:14:35 +0800829 properties:
830 - infra-properties:
831 build-days-to-keep: '{build-days-to-keep}'
832
833 parameters:
834 - infra-parameters:
835 project: '{project}'
836 branch: '{branch}'
837 refspec: 'refs/heads/{branch}'
838 artifacts: '{archive-artifacts}'
839 - maven-exec:
840 maven-version: '{maven-version}'
841
842 scm:
843 - gerrit-trigger-scm:
844 refspec: ''
845 choosing-strategy: 'default'
846 submodule-recursive: '{submodule-recursive}'
847
848 wrappers:
849 - infra-wrappers:
850 build-timeout: '{build-timeout}'
851
852 triggers:
853 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700854 - timed: '@daily'
Zhaoxing49773042017-10-13 17:14:35 +0800855 - gerrit-trigger-release-manually:
856 server: '{server-name}'
857 project: '{project}'
858 branch: '{branch}'
859
860 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700861 - lf-infra-pre-build
Zhaoxing49773042017-10-13 17:14:35 +0800862 - provide-maven-settings:
863 global-settings-file: 'global-settings'
864 settings-file: '{mvn-settings}'
865
866 - inject:
867 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700868 - maven-set-release-version:
Zhaoxing49773042017-10-13 17:14:35 +0800869 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700870 mvn-settings: '{mvn-settings}'
Zhaoxing49773042017-10-13 17:14:35 +0800871 pom: '{pom}'
Zhaoxing49773042017-10-13 17:14:35 +0800872
873 - docker-login
874
875 - maven-target:
876 maven-version: '{maven-version}'
877 pom: '{pom}'
878 goals: '{mvn-goals}'
879 settings: '{mvn-settings}'
880 settings-type: cfp
881 global-settings: 'global-settings'
882 global-settings-type: cfp
883
884 - shell: '{script}'
885
886 publishers:
887 - infra-shiplogs:
888 maven-version: '{maven-version}'
889
Gary Wu350fbcb2018-08-07 11:13:59 -0700890- job-template: &docker_version_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800891 # Job template for building & pushing docker images
892 #
893 # The purpose of this job template is to run:
894 # 1. login to the docker registry
895 # 2. inject a version.properties file and set versions
896 # 3. run a docker push
897 #
898 # Required Variables:
899 # pom: name/location of the pom.xml file relative to the workspace
900 # profile: the docker profile defined in the pom
901 # maven-properties: properties passed to maven
902
Patrick Brady39f388a2017-03-09 11:26:59 -0800903 name: '{project-name}-{stream}-docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700904 id: '{project-name}-{stream}-docker-version-java-daily'
Patrick Brady39f388a2017-03-09 11:26:59 -0800905 project-type: freestyle
Paul Vaduva6dd88542018-12-11 16:59:12 +0100906 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700907 disabled: '{disabled}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800908 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700909 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -0800910 build-days-to-keep: '{build-days-to-keep}'
911
912 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700913 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -0800914 project: '{project}'
915 branch: '{branch}'
916 refspec: 'refs/heads/{branch}'
917 artifacts: '{archive-artifacts}'
918 - maven-exec:
919 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700920 - maven-params:
921 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800922
923 scm:
924 - gerrit-trigger-scm:
925 refspec: ''
926 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500927 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800928
929 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700930 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -0800931 build-timeout: '{build-timeout}'
932
933 triggers:
934 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700935 - timed: '@daily'
Patrick Brady39f388a2017-03-09 11:26:59 -0800936 - gerrit-trigger-release-manually:
937 server: '{server-name}'
938 project: '{project}'
939 branch: '{branch}'
940
941 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700942 - lf-infra-pre-build
Patrick Brady39f388a2017-03-09 11:26:59 -0800943 - provide-maven-settings:
944 global-settings-file: 'global-settings'
945 settings-file: '{mvn-settings}'
946
947 - inject:
948 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700949 - maven-set-release-version:
Patrick Brady39f388a2017-03-09 11:26:59 -0800950 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700951 mvn-settings: '{mvn-settings}'
952 pom:
Patrick Brady39f388a2017-03-09 11:26:59 -0800953
954 - docker-login
955
956 - maven-docker-push-daily:
957 maven-version: '{maven-version}'
958 mvn-settings: '{mvn-settings}'
959 pom: '{docker-pom}'
960 # use default as mvn-profile if profile is not needed
961 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700962 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800963
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700964 publishers:
965 - infra-shiplogs:
966 maven-version: '{maven-version}'
967
Patrick Brady39f388a2017-03-09 11:26:59 -0800968- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800969 # Job template for building & pushing docker images
970 #
971 # The purpose of this job template is to run:
Gary Wu9e9210f2018-07-18 16:19:20 -0700972 # 1. login to the docker registry
973 # 2. inject a version.properties file and set versions
974 # 3. run a docker push
975 #
976 # Required Variables:
977 # pom: name/location of the pom.xml file relative to the workspace
978 # profile: the docker profile defined in the pom
979 # maven-properties: properties passed to maven
980
Gary Wu350fbcb2018-08-07 11:13:59 -0700981 <<: *docker_version_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700982 name: '{project-name}-{stream}-docker-version-java-daily'
983 id: 'docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700984 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700985 wrappers:
986 - infra-wrappers-docker-build:
987 build-timeout: '{build-timeout}'
988
Zhaoxing49773042017-10-13 17:14:35 +0800989- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800990 # Job template for building & pushing docker images for AAI specific repos
991 #
992 # The purpose of this job template is to run:
993 # 1. login to the docker registry
994 # 2. run maven goals
995 # 3. run include-docker-push.sh
996 #
997 # Required Variables:
998 # pom: name/location of the pom.xml file relative to the workspace
999 # maven-properties: properties passed to maven
1000
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001001 name: '{project-name}-{stream}-aai-docker-java-daily'
1002 project-type: freestyle
Jessica Wagantallab30bf62018-11-08 12:20:48 -08001003 node: '{build-node}'
Gary Wudc3f2952017-08-23 16:48:59 -07001004 docker-image-name: ''
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001005 disabled: '{disabled}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001006 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001007 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001008 build-days-to-keep: '{build-days-to-keep}'
1009
1010 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001011 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001012 project: '{project}'
1013 branch: '{branch}'
1014 refspec: 'refs/heads/{branch}'
1015 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001016 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001017 maven-version: '{maven-version}'
Gary Wudc3f2952017-08-23 16:48:59 -07001018 - docker-image-name:
1019 docker-image-name: '{docker-image-name}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001020
1021 scm:
1022 - gerrit-trigger-scm:
1023 refspec: ''
1024 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001025 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001026
1027 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001028 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001029 build-timeout: '{build-timeout}'
1030
1031 triggers:
1032 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001033 - timed: '@daily'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001034 - gerrit-trigger-release-manually:
1035 server: '{server-name}'
1036 project: '{project}'
1037 branch: '{branch}'
1038
1039 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001040 - lf-infra-pre-build
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001041 - provide-maven-settings:
1042 global-settings-file: 'global-settings'
1043 settings-file: '{mvn-settings}'
1044
1045 - docker-login
1046
1047 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001048 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001049 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001050 goals: 'clean install -DskipTests -B
1051 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001052 settings: '{mvn-settings}'
1053 settings-type: cfp
1054 global-settings: 'global-settings'
1055 global-settings-type: cfp
1056
1057 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001058 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001059 pom: '{pom}'
1060 goals: '{mvn-goals}'
1061 settings: '{mvn-settings}'
1062 settings-type: cfp
1063 global-settings: 'global-settings'
1064 global-settings-type: cfp
1065 properties:
1066 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001067 - docker.pull.registry=nexus3.onap.org:10001
1068 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001069
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001070 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001071
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001072 publishers:
1073 - infra-shiplogs:
1074 maven-version: '{maven-version}'
1075
Carsten Lund2d06a692017-02-23 18:23:07 +00001076- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001077 # Job template for Java merge jobs for SDC specific repos
ig61339fdb9d22017-04-03 17:47:19 +03001078 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001079 # The purpose of this job template is to run:
1080 # 1. maven clean deploy
ig61339fdb9d22017-04-03 17:47:19 +03001081 #
1082 # Required Variables:
1083 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001084
Gary Wu6c702772018-08-06 18:48:02 -07001085 <<: *merge_java_defaults
ig61339fdb9d22017-04-03 17:47:19 +03001086 name: '{project-name}-{stream}-sdc-merge-java'
1087
Paul Vaduva3aebd312019-02-01 13:35:21 +01001088 node: '{build-node}'
Jessica Wagantall9a89de42018-04-18 11:35:17 -07001089 build-timeout: 120
ig61339fdb9d22017-04-03 17:47:19 +03001090
ig61339fdb9d22017-04-03 17:47:19 +03001091 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001092 - lf-infra-pre-build
ig61339fdb9d22017-04-03 17:47:19 +03001093 - provide-maven-settings:
1094 global-settings-file: 'global-settings'
1095 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001096
1097 - docker-login
1098
Gary Wu6c702772018-08-06 18:48:02 -07001099 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001100 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001101 mvn-settings: '{mvn-settings}'
1102 pom: '{docker-pom}'
1103 # use default as mvn-profile if profile is not needed
1104 mvn-profile: '{mvn-profile}'
Gary Wu6c702772018-08-06 18:48:02 -07001105 mvn-params: ''
Bengt Thuree1515daa2019-09-10 13:39:04 +02001106
1107- job-template:
1108 # Job template for Java merge jobs on multiple architectures
1109 #
1110 # The purpose of this job template is to:
1111 # 1. Run parallel {project-name}-{stream}-verify-java jobs for each supported architecture
1112 # 2. Build and push a docker manifest list for the images created by
1113 # the previous jobs
1114
1115 name: '{project-name}-multiarch-{stream}-merge-java'
1116 node: '{build-node}'
1117 project-type: multijob
1118 disabled: '{obj:disabled}'
1119 pattern: '**'
1120
1121 parameters:
1122 - lf-infra-parameters:
1123 project: '{project}'
1124 stream: '{stream}'
1125 branch: '{branch}'
1126 - string:
1127 name: DOCKER_REGISTRY
1128 default: 'none'
1129 - string:
1130 name: DOCKERHUB_REGISTRY
1131 default: 'registry-1.docker.io'
1132
1133 properties:
1134 - throttle:
1135 max-per-node: 1
1136 option: 'project'
1137 - build-blocker:
1138 use-build-blocker: true
1139 blocking-jobs:
1140 - '{project-name}-.*-merge-.*'
1141 blocking-level: 'NODE'
1142
1143 scm:
1144 - gerrit-trigger-scm:
1145 refspec: ''
1146 choosing-strategy: 'default'
1147 submodule-recursive: '{submodule-recursive}'
1148
1149 wrappers:
1150 - infra-wrappers:
1151 build-timeout: '{build-timeout}'
1152
1153 triggers:
1154 - gerrit-trigger-patch-merged:
1155 server: '{server-name}'
1156 project: '{project}'
1157 branch: '{branch}'
1158 files: '{pattern}'
1159
1160 builders:
1161 - multijob:
1162 name: 'build docker images'
1163 condition: ALWAYS
1164 execution-type: PARALLEL
1165 projects:
1166 - name: '{project-name}-amd64-{stream}-merge-java'
1167 kill-phase-on: FAILURE
1168 current-parameters: true
1169 - name: '{project-name}-arm64-{stream}-merge-java'
1170 kill-phase-on: NEVER
1171 current-parameters: true
1172 - multijob:
1173 name: 'publish docker manifest'
1174 condition: SUCCESSFUL
1175 execution-type: PARALLEL
1176 projects:
1177 - name: '{project-name}-docker-manifest-{stream}'
1178 current-parameters: true
1179 predefined-parameters: |
1180 PARENT_JOB_NAME=$JOB_NAME
1181 DOCKERHUB_REGISTRY=docker.io