blob: 25df505ebefb80ddc1c9dd81ea44598af4b5fa73 [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}'
Gary Wu5918acd2018-08-06 16:42:21 -070016 pattern: '**'
Gary Wu6c702772018-08-06 18:48:02 -070017 pom:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080018
19 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070020 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080021 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080022
23 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070024 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080025 project: '{project}'
26 branch: '{branch}'
27 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080028 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080029 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080030 maven-version: '{maven-version}'
Jessica Wagantalld25908c2018-03-28 12:06:39 -070031 - maven-params:
32 mvn-params: '{mvn-params}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080033
34 scm:
35 - gerrit-trigger-scm:
36 refspec: '$GERRIT_REFSPEC'
37 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050038 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080039
40 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070041 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080042 build-timeout: '{build-timeout}'
43
44 triggers:
45 - gerrit-trigger-patch-submitted:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080046 server: '{server-name}'
47 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080048 branch: '{branch}'
Gary Wu5918acd2018-08-06 16:42:21 -070049 files: '{obj:pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080050
51 builders:
52 - provide-maven-settings:
53 global-settings-file: 'global-settings'
54 settings-file: '{mvn-settings}'
55 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -080056 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -070057 pom: '{obj:pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -040058 goals: 'clean install -B
Jessica Wagantalld25908c2018-03-28 12:06:39 -070059 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn {mvn-params}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080060 settings: '{mvn-settings}'
61 settings-type: cfp
62 global-settings: 'global-settings'
63 global-settings-type: cfp
64
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070065 publishers:
66 - infra-shiplogs:
67 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080068
69- job-template:
JulienBe77903ed2017-07-17 15:30:26 +020070 # Job template for Java verify jobs running checkstyle at the end
71 # When checkstyle will be fully incorporated, it is meant to replace
72 # '{project-name}-{stream}-verify-java-checkstyle'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080073 #
74 # The purpose of this job template is to run:
75 # 1. maven clean install
76 #
77 # This job publishes checkstyle results.
JulienBe77903ed2017-07-17 15:30:26 +020078 #
79 # Required Variables:
80 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080081
Gary Wu6c702772018-08-06 18:48:02 -070082 <<: *verify_java_defaults
JulienBe77903ed2017-07-17 15:30:26 +020083 name: '{project-name}-{stream}-verify-java-checkstyle'
JulienBe77903ed2017-07-17 15:30:26 +020084 publishers:
85 - infra-shiplogs:
86 maven-version: '{maven-version}'
87 - checkstyle-result
88
89- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080090 # Job template for Java verify jobs with POM not at the root
91 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080092 # The purpose of this job template is to run:
93 # 1. maven clean install
94 #
95 # This job supports subprojects.
Andrew Grimbergebc710a2017-01-30 12:59:38 -080096 #
97 # Required Variables:
98 # branch: git branch (eg. stable/lithium or master)
99 # pom: name/location of the pom.xml file relative to the workspace
100 # pattern: ant file-path pattern relative to the workspace used to
101 # trigger the job
102
Gary Wu6c702772018-08-06 18:48:02 -0700103 <<: *verify_java_defaults
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800104 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800105
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800106- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100107 # Job template for Java daily release jobs
108 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800109 # The purpose of this job template is to run:
110 # 1. maven clean deploy with Sonar scans
JulienBe2f4ee072017-02-01 21:42:32 +0100111 #
112 # Required Variables:
113 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800114
JulienBe2f4ee072017-02-01 21:42:32 +0100115 name: '{project-name}-{stream}-release-java-daily'
116
117 project-type: freestyle
118 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700119 disabled: '{disabled}'
JulienBe2f4ee072017-02-01 21:42:32 +0100120 maven-deploy-properties:
121 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700122 - infra-properties:
JulienBe2f4ee072017-02-01 21:42:32 +0100123 build-days-to-keep: '{build-days-to-keep}'
124
125 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700126 - infra-parameters:
JulienBe2f4ee072017-02-01 21:42:32 +0100127 project: '{project}'
128 branch: '{branch}'
129 refspec: 'refs/heads/{branch}'
130 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800131 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800132 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100133
134 scm:
135 - gerrit-trigger-scm:
136 refspec: ''
137 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500138 submodule-recursive: '{submodule-recursive}'
JulienBe2f4ee072017-02-01 21:42:32 +0100139
140 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700141 - infra-wrappers:
JulienBe2f4ee072017-02-01 21:42:32 +0100142 build-timeout: '{build-timeout}'
143
144 triggers:
145 # 11 AM UTC
146 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800147 - gerrit-trigger-release-manually:
148 server: '{server-name}'
149 project: '{project}'
150 branch: '{branch}'
JulienBe2f4ee072017-02-01 21:42:32 +0100151
152 builders:
153 - provide-maven-settings:
154 global-settings-file: 'global-settings'
155 settings-file: '{mvn-settings}'
156
JulienBe5641aa02017-02-17 01:08:38 -0800157 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800158 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800159 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400160 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBe5641aa02017-02-17 01:08:38 -0800161 properties:
162 - '{maven-deploy-properties}'
Jessica Wagantall6223d1d2017-08-07 14:46:58 -0700163 java-opts:
164 - '-Xmx4096m -XX:MaxPermSize=512m'
JulienBe5641aa02017-02-17 01:08:38 -0800165 settings: '{mvn-settings}'
166 settings-type: cfp
167 global-settings: 'global-settings'
168 global-settings-type: cfp
169
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700170 publishers:
171 - infra-shiplogs:
172 maven-version: '{maven-version}'
173
JulienBe5641aa02017-02-17 01:08:38 -0800174- job-template:
JulienBe77903ed2017-07-17 15:30:26 +0200175 # Job template for Java daily release jobs running checkstyle at the end
176 # When checkstyle will be fully incorporated, it is meant to replace
177 # '{project-name}-{stream}-release-java-daily'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800178 #
179 # The purpose of this job template is to run:
180 # 1. maven clean deploy with Sonar scans
181 #
182 # This job publishes checkstyle results.
183 # This job uses a conditional regex match step to set versions.
JulienBe77903ed2017-07-17 15:30:26 +0200184 #
185 # Required Variables:
186 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800187
JulienBe77903ed2017-07-17 15:30:26 +0200188 name: '{project-name}-{stream}-release-java-daily-checkstyle'
189 project-type: freestyle
190 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700191 disabled: '{disabled}'
JulienBe77903ed2017-07-17 15:30:26 +0200192 maven-deploy-properties:
193 properties:
194 - infra-properties:
195 build-days-to-keep: '{build-days-to-keep}'
196 parameters:
197 - infra-parameters:
198 project: '{project}'
199 branch: '{branch}'
200 refspec: 'refs/heads/{branch}'
201 artifacts: '{archive-artifacts}'
202 - maven-exec:
203 maven-version: '{maven-version}'
204 scm:
205 - gerrit-trigger-scm:
206 refspec: ''
207 choosing-strategy: 'default'
208 submodule-recursive: '{submodule-recursive}'
209 wrappers:
210 - infra-wrappers:
211 build-timeout: '{build-timeout}'
212 triggers:
213 # 11 AM UTC
214 - timed: 'H 11 * * *'
215 - gerrit-trigger-release-manually:
216 server: '{server-name}'
217 project: '{project}'
218 branch: '{branch}'
219 builders:
220 - provide-maven-settings:
221 global-settings-file: 'global-settings'
222 settings-file: '{mvn-settings}'
JulienBed91a33a2017-09-25 15:56:34 +0200223 - conditional-step:
224 condition-kind: regex-match
225 regex: DoSetVersion
226 label: '{setVersion}'
227 steps:
228 - inject:
229 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700230 - maven-set-release-version:
JulienBed91a33a2017-09-25 15:56:34 +0200231 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700232 mvn-settings: '{mvn-settings}'
233 pom:
JulienBe77903ed2017-07-17 15:30:26 +0200234 - maven-target:
235 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800236 goals: 'clean deploy -B
JulienBe77903ed2017-07-17 15:30:26 +0200237 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBec9d90e22017-08-08 10:44:10 +0200238 properties: '{obj:mvn_properties}'
JulienBe77903ed2017-07-17 15:30:26 +0200239 settings: '{mvn-settings}'
240 settings-type: cfp
241 global-settings: 'global-settings'
242 global-settings-type: cfp
243 publishers:
244 - infra-shiplogs:
245 maven-version: '{maven-version}'
246 - checkstyle-result-daily
247
248- job-template:
JulienBe5641aa02017-02-17 01:08:38 -0800249 # Job template for Java daily release jobs
250 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800251 # The purpose of this job template is to run:
252 # 1. maven set versions
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800253 # 2. maven clean deploy with Sonar scans
Pamela Dragosh55ceb8f2017-05-23 12:23:16 -0400254 #
255 # Required Variables:
256 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800257
JulienBe5641aa02017-02-17 01:08:38 -0800258 name: '{project-name}-{stream}-release-version-java-daily'
259
260 project-type: freestyle
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700261 disabled: '{disabled}'
JulienBe5641aa02017-02-17 01:08:38 -0800262 node: '{build-node}'
263 maven-deploy-properties:
264 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700265 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800266 build-days-to-keep: '{build-days-to-keep}'
267
268 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700269 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800270 project: '{project}'
271 branch: '{branch}'
272 refspec: 'refs/heads/{branch}'
273 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800274 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800275 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800276
277 scm:
278 - gerrit-trigger-scm:
279 refspec: ''
280 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500281 submodule-recursive: '{submodule-recursive}'
JulienBe5641aa02017-02-17 01:08:38 -0800282
283 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700284 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800285 build-timeout: '{build-timeout}'
286
287 triggers:
288 # 11 AM UTC
Jessica Wagantall77494942017-10-02 15:12:14 -0700289 - timed: 'H H(10-17) * * *'
JulienBe5641aa02017-02-17 01:08:38 -0800290 - gerrit-trigger-release-manually:
291 server: '{server-name}'
292 project: '{project}'
293 branch: '{branch}'
294
295 builders:
296 - provide-maven-settings:
297 global-settings-file: 'global-settings'
298 settings-file: '{mvn-settings}'
299
JulienBe2f4ee072017-02-01 21:42:32 +0100300 - inject:
301 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700302 - maven-set-release-version:
Andrew Grimberge2465882017-02-24 12:38:05 -0800303 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700304 mvn-settings: '{mvn-settings}'
305 pom:
JulienBe2f4ee072017-02-01 21:42:32 +0100306
307 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800308 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800309 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400310 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800311 properties:
312 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100313 settings: '{mvn-settings}'
314 settings-type: cfp
315 global-settings: 'global-settings'
316 global-settings-type: cfp
317
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700318 publishers:
319 - infra-shiplogs:
320 maven-version: '{maven-version}'
321
JulienBe2f4ee072017-02-01 21:42:32 +0100322- job-template:
JulienBe645951d2017-09-28 18:44:18 +0200323 # Job template for Java daily release jobs
324 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800325 # The purpose of this job template is to run:
326 # 1. maven set versions
327 # 2. maven clean deploy -P {mvn-profile} with Sonar scans
JulienBe645951d2017-09-28 18:44:18 +0200328 #
329 # Required Variables:
330 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800331
JulienBe645951d2017-09-28 18:44:18 +0200332 name: '{project-name}-{stream}-release-version-profile-java-daily'
333
334 project-type: freestyle
335 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700336 disabled: '{disabled}'
JulienBe645951d2017-09-28 18:44:18 +0200337 maven-deploy-properties:
338 properties:
339 - infra-properties:
340 build-days-to-keep: '{build-days-to-keep}'
341
342 parameters:
343 - infra-parameters:
344 project: '{project}'
345 branch: '{branch}'
346 refspec: 'refs/heads/{branch}'
347 artifacts: '{archive-artifacts}'
348 - maven-exec:
349 maven-version: '{maven-version}'
350
351 scm:
352 - gerrit-trigger-scm:
353 refspec: ''
354 choosing-strategy: 'default'
355 submodule-recursive: '{submodule-recursive}'
356
357 wrappers:
358 - infra-wrappers:
359 build-timeout: '{build-timeout}'
360
361 triggers:
362 # 11 AM UTC
363 - timed: 'H 11 * * *'
364 - gerrit-trigger-release-manually:
365 server: '{server-name}'
366 project: '{project}'
367 branch: '{branch}'
368
369 builders:
370 - provide-maven-settings:
371 global-settings-file: 'global-settings'
372 settings-file: '{mvn-settings}'
373
374 - inject:
375 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700376 - maven-set-release-version:
JulienBe645951d2017-09-28 18:44:18 +0200377 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700378 mvn-settings: '{mvn-settings}'
379 pom:
JulienBe645951d2017-09-28 18:44:18 +0200380
381 - maven-target:
382 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800383 goals: 'clean deploy -P {mvn-profile} -B
JulienBe645951d2017-09-28 18:44:18 +0200384 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
385 properties:
386 - '{maven-deploy-properties}'
387 settings: '{mvn-settings}'
388 settings-type: cfp
389 global-settings: 'global-settings'
390 global-settings-type: cfp
391
392 publishers:
393 - infra-shiplogs:
394 maven-version: '{maven-version}'
395
396
397- job-template:
Carsten Lundda8b6972017-02-15 23:59:25 +0000398 # Job template for Java daily release jobs with POM not at the root
399 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800400 # The purpose of this job template is to run:
401 # 1. maven clean deploy with Sonar scans
402 #
403 # This job supports subprojects.
Carsten Lundda8b6972017-02-15 23:59:25 +0000404 #
405 # Required Variables:
406 # branch: git branch (eg. stable/lithium or master)
407 # pom: name/location of the pom.xml file relative to the workspace
408
Carsten Lundda8b6972017-02-15 23:59:25 +0000409 name: '{project-name}-{stream}-{subproject}-release-java-daily'
410
411 project-type: freestyle
412 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700413 disabled: '{disabled}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000414 maven-deploy-properties:
415 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700416 - infra-properties:
Carsten Lundda8b6972017-02-15 23:59:25 +0000417 build-days-to-keep: '{build-days-to-keep}'
418
419 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700420 - infra-parameters:
Carsten Lundda8b6972017-02-15 23:59:25 +0000421 project: '{project}'
422 branch: '{branch}'
423 refspec: 'refs/heads/{branch}'
424 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800425 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800426 maven-version: '{maven-version}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000427
428 scm:
429 - gerrit-trigger-scm:
430 refspec: ''
431 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500432 submodule-recursive: '{submodule-recursive}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000433
434 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700435 - infra-wrappers:
Carsten Lundda8b6972017-02-15 23:59:25 +0000436 build-timeout: '{build-timeout}'
437
438 triggers:
439 # 11 AM UTC
440 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800441 - gerrit-trigger-release-manually:
442 server: '{server-name}'
443 project: '{project}'
444 branch: '{branch}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000445
446 builders:
447 - provide-maven-settings:
448 global-settings-file: 'global-settings'
449 settings-file: '{mvn-settings}'
450
Carsten Lundda8b6972017-02-15 23:59:25 +0000451 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800452 maven-version: '{maven-version}'
Carsten Lund63cd3b82017-02-18 18:19:22 +0000453 pom: '{pom}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800454 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400455 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lundda8b6972017-02-15 23:59:25 +0000456 properties:
457 - '{maven-deploy-properties}'
Jessica Wagantall30f0d782017-08-08 13:37:25 -0700458 java-opts:
459 - '-Xmx4096m -XX:MaxPermSize=512m'
Carsten Lundda8b6972017-02-15 23:59:25 +0000460 settings: '{mvn-settings}'
461 settings-type: cfp
462 global-settings: 'global-settings'
463 global-settings-type: cfp
464
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700465 publishers:
466 - infra-shiplogs:
467 maven-version: '{maven-version}'
468
Carsten Lundda8b6972017-02-15 23:59:25 +0000469- job-template:
Jessica Wagantallae897942017-09-28 10:56:55 -0700470 # Job template for Java daily release jobs with POM not at the root
471 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800472 # The purpose of this job template is to run:
473 # 1. maven set versions
474 # 2. maven clean deploy with Sonar scans
475 #
476 # This job supports subprojects.
Jessica Wagantallae897942017-09-28 10:56:55 -0700477 #
478 # Required Variables:
479 # branch: git branch (eg. stable/lithium or master)
480 # pom: name/location of the pom.xml file relative to the workspace
481
Zhaoxinga77c0412017-10-11 09:05:49 +0800482 name: '{project-name}-{stream}-{subproject}-release-version-java-daily'
483
484 project-type: freestyle
485 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700486 disabled: '{disabled}'
Zhaoxinga77c0412017-10-11 09:05:49 +0800487 maven-deploy-properties:
488 properties:
489 - infra-properties:
490 build-days-to-keep: '{build-days-to-keep}'
491
492 parameters:
493 - infra-parameters:
494 project: '{project}'
495 branch: '{branch}'
496 refspec: 'refs/heads/{branch}'
497 artifacts: '{archive-artifacts}'
498 - maven-exec:
499 maven-version: '{maven-version}'
500
501 scm:
502 - gerrit-trigger-scm:
503 refspec: ''
504 choosing-strategy: 'default'
505 submodule-recursive: '{submodule-recursive}'
506
507 wrappers:
508 - infra-wrappers:
509 build-timeout: '{build-timeout}'
510
511 triggers:
512 # 11 AM UTC
513 - timed: 'H 11 * * *'
514 - gerrit-trigger-release-manually:
515 server: '{server-name}'
516 project: '{project}'
517 branch: '{branch}'
518
519 builders:
520 - provide-maven-settings:
521 global-settings-file: 'global-settings'
522 settings-file: '{mvn-settings}'
523
524 - inject:
525 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700526 - maven-set-release-version:
Zhaoxinga77c0412017-10-11 09:05:49 +0800527 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700528 mvn-settings: '{mvn-settings}'
Zhaoxing327f9592017-10-13 13:37:17 +0800529 pom: '{pom}'
Zhaoxinga77c0412017-10-11 09:05:49 +0800530
531 - maven-target:
532 maven-version: '{maven-version}'
533 pom: '{pom}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800534 goals: 'clean deploy -B
Zhaoxinga77c0412017-10-11 09:05:49 +0800535 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
536 properties:
537 - '{maven-deploy-properties}'
538 settings: '{mvn-settings}'
539 settings-type: cfp
540 global-settings: 'global-settings'
541 global-settings-type: cfp
542
543 publishers:
544 - infra-shiplogs:
545 maven-version: '{maven-version}'
546
Jessica Wagantall91685e12018-03-20 17:13:40 -0700547
Gary Wu6c702772018-08-06 18:48:02 -0700548- job-template: &merge_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800549 # Job template for Java merge jobs
550 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800551 # The purpose of this job template is to run:
552 # 1. maven clean deploy
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800553 #
554 # Required Variables:
555 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800556
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800557 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800558
559 project-type: freestyle
560 node: '{build-node}'
Gary Wu6c702772018-08-06 18:48:02 -0700561 pattern: '**'
562 pom:
563 mvn_properties: []
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800564
565 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700566 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800567 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800568
569 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700570 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800571 project: '{project}'
572 branch: '{branch}'
573 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800574 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800575 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800576 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800577
578 scm:
579 - gerrit-trigger-scm:
580 refspec: ''
581 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500582 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800583
584 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700585 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800586 build-timeout: '{build-timeout}'
587
588 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800589 - gerrit-trigger-patch-merged:
590 server: '{server-name}'
591 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800592 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800593 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800594
595 builders:
596 - provide-maven-settings:
597 global-settings-file: 'global-settings'
598 settings-file: '{mvn-settings}'
599 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800600 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -0700601 pom: '{obj:pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400602 goals: 'clean deploy -B
603 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800604 settings: '{mvn-settings}'
605 settings-type: cfp
606 global-settings: 'global-settings'
607 global-settings-type: cfp
Gary Wu6c702772018-08-06 18:48:02 -0700608 properties: '{obj:mvn_properties}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800609
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700610 publishers:
611 - infra-shiplogs:
612 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100613
614- job-template:
Gary Wu6c702772018-08-06 18:48:02 -0700615 # Job template for Java merge jobs based on
616 # '{project-name}-{stream}-merge-java'
617 # The purpose of this job template is to run:
618 # 1. maven clean deploy
619 #
620 # This project supports maven properties.
621 #
622 # Required Variables:
623 # branch: git branch (eg. stable/lithium or master)
624 # maven-properties: properties passed to maven
625
626 <<: *merge_java_defaults
627 name: '{project-name}-{stream}-merge-properties-java'
628
629- job-template:
630 # Job template for Java merge jobs that takes a maven template
631 #
632 # The purpose of this job template is to run:
633 # 1. maven clean deploy -P {mvn-profile}
634 #
635 # Required Variables:
636 # branch: git branch (eg. stable/lithium or master)
637
638 <<: *merge_java_defaults
639 name: '{project-name}-{stream}-merge-profile-java'
640
641 builders:
642 - provide-maven-settings:
643 global-settings-file: 'global-settings'
644 settings-file: '{mvn-settings}'
645
646 - docker-login
647
648 - maven-target:
649 maven-version: '{maven-version}'
650 goals: 'clean deploy -P {mvn-profile} -B
651 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
652 settings: '{mvn-settings}'
653 settings-type: cfp
654 global-settings: 'global-settings'
655 global-settings-type: cfp
656 properties:
657 - docker.pull.registry=nexus3.onap.org:10001
658 - docker.push.registry=nexus3.onap.org:10003
659
660- job-template:
661 # Job template for Java merge jobs with POM not at the root
662 #
663 # The purpose of this job template is to run:
664 # 1. maven clean deploy
665 #
666 # This job supports subprojects.
667 #
668 # Required Variables:
669 # branch: git branch (eg. stable/lithium or master)
670 # pom: name/location of the pom.xml file relative to the workspace
671 # pattern: ant file-path pattern relative to the workspace used to
672 # trigger the job
673
674 <<: *merge_java_defaults
675 name: '{project-name}-{stream}-{subproject}-merge-java'
676
Gary Wu350fbcb2018-08-07 11:13:59 -0700677- job-template: &docker_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800678 # Job template for Docker daily jobs
679 #
680 # The purpose of this job template is to run:
681 # 1. login to the docker registry
682 # 2. docker push
683 #
684 # Required Variables:
685 # branch: git branch (eg. stable/lithium or master)
686
Anaël Clossonabbafb52017-02-09 17:55:10 +0100687 name: '{project-name}-{stream}-docker-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700688 id: '{project-name}-{stream}-docker-java-daily'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100689 project-type: freestyle
Andrew Grimberg2137b1d2017-02-15 07:24:53 -0800690 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700691 disabled: '{disabled}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100692 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700693 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100694 build-days-to-keep: '{build-days-to-keep}'
695
696 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700697 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100698 project: '{project}'
699 branch: '{branch}'
700 refspec: 'refs/heads/{branch}'
701 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800702 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800703 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700704 - maven-params:
705 mvn-params: '{mvn-params}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100706
707 scm:
708 - gerrit-trigger-scm:
709 refspec: ''
710 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500711 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100712
Anaël Clossonabbafb52017-02-09 17:55:10 +0100713 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700714 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100715 build-timeout: '{build-timeout}'
716
717 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800718 # 12 AM UTC
Anaël Clossonabbafb52017-02-09 17:55:10 +0100719 - timed: 'H 12 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800720 - gerrit-trigger-release-manually:
721 server: '{server-name}'
722 project: '{project}'
723 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100724
725 builders:
Anaël Closson63e090e2017-02-15 14:50:45 +0100726
Anaël Clossonabbafb52017-02-09 17:55:10 +0100727 - provide-maven-settings:
728 global-settings-file: 'global-settings'
729 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100730
Anaël Closson63e090e2017-02-15 14:50:45 +0100731 - docker-login
732
Anaël Clossonabbafb52017-02-09 17:55:10 +0100733 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800734 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100735 mvn-settings: '{mvn-settings}'
736 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100737 # use default as mvn-profile if profile is not needed
738 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700739 mvn-params: '{mvn-params}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500740
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700741 publishers:
742 - infra-shiplogs:
743 maven-version: '{maven-version}'
744
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500745- job-template:
Gary Wu9e9210f2018-07-18 16:19:20 -0700746 # Job template for Docker daily jobs
747 #
748 # The purpose of this job template is to run:
749 # 1. login to the docker registry
750 # 2. docker push
751 #
752 # Required Variables:
753 # branch: git branch (eg. stable/lithium or master)
754
Gary Wu350fbcb2018-08-07 11:13:59 -0700755 <<: *docker_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700756 name: '{project-name}-{stream}-docker-java-daily'
757 id: docker-java-daily
Gary Wu9e9210f2018-07-18 16:19:20 -0700758 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700759 wrappers:
760 - infra-wrappers-docker-build:
761 build-timeout: '{build-timeout}'
762
Gary Wu9e9210f2018-07-18 16:19:20 -0700763- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +0200764 # Job template for building & pushing docker images
765 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800766 # The purpose of this job template is to run:
JulienBe91c56ec2017-06-21 23:37:39 +0200767 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800768 # 2. maven clean deploy on the specified profile
769 #
770 # This job uses a conditional regex match step to set versions.
771 # This template supports maven properties.
JulienBe91c56ec2017-06-21 23:37:39 +0200772 #
773 # Required Variables:
774 # pom: name/location of the pom.xml file relative to the workspace
775 # profile: the docker profile defined in the pom
776 # maven-properties: properties passed to maven
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800777
JulienBe91c56ec2017-06-21 23:37:39 +0200778 name: '{project-name}-{stream}-docker-java-properties-daily'
779 project-type: freestyle
780 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700781 disabled: '{disabled}'
JulienBe91c56ec2017-06-21 23:37:39 +0200782 properties:
783 - infra-properties:
784 build-days-to-keep: '{build-days-to-keep}'
785 parameters:
786 - infra-parameters:
787 project: '{project}'
788 branch: '{branch}'
789 refspec: 'refs/heads/{branch}'
790 artifacts: '{archive-artifacts}'
791 - maven-exec:
792 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700793 - maven-params:
794 mvn-params: '{mvn-params}'
JulienBe91c56ec2017-06-21 23:37:39 +0200795 scm:
796 - gerrit-trigger-scm:
797 refspec: ''
798 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500799 submodule-recursive: '{submodule-recursive}'
JulienBe91c56ec2017-06-21 23:37:39 +0200800 wrappers:
801 - infra-wrappers:
802 build-timeout: '{build-timeout}'
803 triggers:
804 # 12 AM UTC
805 - timed: 'H 12 * * *'
806 - gerrit-trigger-release-manually:
807 server: '{server-name}'
808 project: '{project}'
809 branch: '{branch}'
810 builders:
811 - provide-maven-settings:
812 global-settings-file: 'global-settings'
813 settings-file: '{mvn-settings}'
JulienBecda17972017-10-17 13:46:51 +0200814 - conditional-step:
815 condition-kind: regex-match
816 regex: DoSetVersion
817 label: '{setVersion}'
818 steps:
819 - inject:
820 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700821 - maven-set-release-version:
JulienBecda17972017-10-17 13:46:51 +0200822 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700823 mvn-settings: '{mvn-settings}'
824 pom:
JulienBe91c56ec2017-06-21 23:37:39 +0200825 - docker-login
826 - maven-docker-push-daily:
827 maven-version: '{maven-version}'
828 mvn-settings: '{mvn-settings}'
829 pom: '{docker-pom}'
830 properties: '{maven-properties}'
831 # use default as mvn-profile if profile is not needed
832 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700833 mvn-params: '{mvn-params}'
JulienBe91c56ec2017-06-21 23:37:39 +0200834 publishers:
835 - infra-shiplogs:
836 maven-version: '{maven-version}'
837
838- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800839 # Job template for building & pushing docker images
840 #
841 # The purpose of this job template is to run:
842 # 1. login to the docker registry
843 # 2. run a specified shell builder
844 #
845 # Required Variables:
846 # pom: name/location of the pom.xml file relative to the workspace
847 # maven-properties: properties passed to maven
848
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500849 name: '{project-name}-{stream}-docker-java-shell-daily'
850 project-type: freestyle
Jessica Wagantallfe5efea2018-08-07 16:02:39 -0700851 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700852 disabled: '{disabled}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500853 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700854 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500855 build-days-to-keep: '{build-days-to-keep}'
856
857 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700858 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500859 project: '{project}'
860 branch: '{branch}'
861 refspec: 'refs/heads/{branch}'
862 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800863 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800864 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500865
866 scm:
867 - gerrit-trigger-scm:
868 refspec: ''
869 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500870 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500871
872 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700873 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500874 build-timeout: '{build-timeout}'
875
876 triggers:
877 # 12 AM UTC
878 - timed: 'H 12 * * *'
879 - gerrit-trigger-release-manually:
880 server: '{server-name}'
881 project: '{project}'
882 branch: '{branch}'
883
884 builders:
885
886 - provide-maven-settings:
887 global-settings-file: 'global-settings'
888 settings-file: '{mvn-settings}'
889
890 - docker-login
891
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500892 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800893 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500894 goals: '{mvn-goals}'
895 settings: '{mvn-settings}'
896 settings-type: cfp
897 global-settings: 'global-settings'
898 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500899
900 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000901
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700902 publishers:
903 - infra-shiplogs:
904 maven-version: '{maven-version}'
905
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000906- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800907 # Job template for building & pushing docker images
908 #
909 # The purpose of this job template is to run:
910 # 1. login to the docker registry
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700911 # 2. run a specified shell builder
912 #
913 # Required Variables:
914 # pom: name/location of the pom.xml file relative to the workspace
915 # maven-properties: properties passed to maven
916
917 name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily'
918 project-type: freestyle
919 node: '{build-node}'
920 disabled: '{disabled}'
921 properties:
922 - infra-properties:
923 build-days-to-keep: '{build-days-to-keep}'
924
925 parameters:
926 - infra-parameters:
927 project: '{project}'
928 branch: '{branch}'
929 refspec: 'refs/heads/{branch}'
930 artifacts: '{archive-artifacts}'
931 - maven-exec:
932 maven-version: '{maven-version}'
933
934 scm:
935 - gerrit-trigger-scm:
936 refspec: ''
937 choosing-strategy: 'default'
938 submodule-recursive: '{submodule-recursive}'
939
940 wrappers:
941 - infra-wrappers:
942 build-timeout: '{build-timeout}'
943
944 triggers:
945 # 12 AM UTC
946 - timed: 'H 12 * * *'
947 - gerrit-trigger-release-manually:
948 server: '{server-name}'
949 project: '{project}'
950 branch: '{branch}'
951
952 builders:
953
954 - provide-maven-settings:
955 global-settings-file: 'global-settings'
956 settings-file: '{mvn-settings}'
957
958 - docker-login
959
960 - maven-target:
961 maven-version: '{maven-version}'
962 pom: '{pom}'
963 goals: '{mvn-goals}'
964 settings: '{mvn-settings}'
965 settings-type: cfp
966 global-settings: 'global-settings'
967 global-settings-type: cfp
968
969 - shell: '{script}'
970
971 publishers:
972 - infra-shiplogs:
973 maven-version: '{maven-version}'
974
975- job-template:
976 # Job template for building & pushing docker images
977 #
978 # The purpose of this job template is to run:
979 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800980 # 2. inject a version.properties file and set versions
981 # 3. run a specified shell builder
982 #
983 # Required Variables:
984 # pom: name/location of the pom.xml file relative to the workspace
985 # maven-properties: properties passed to maven
986
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400987 name: '{project-name}-{stream}-docker-java-version-shell-daily'
988 project-type: freestyle
989 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700990 disabled: '{disabled}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400991 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700992 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400993 build-days-to-keep: '{build-days-to-keep}'
994
995 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700996 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400997 project: '{project}'
998 branch: '{branch}'
999 refspec: 'refs/heads/{branch}'
1000 artifacts: '{archive-artifacts}'
1001 - maven-exec:
1002 maven-version: '{maven-version}'
1003
1004 scm:
1005 - gerrit-trigger-scm:
1006 refspec: ''
1007 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001008 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001009
1010 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001011 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001012 build-timeout: '{build-timeout}'
1013
1014 triggers:
1015 # 12 AM UTC
1016 - timed: 'H 12 * * *'
1017 - gerrit-trigger-release-manually:
1018 server: '{server-name}'
1019 project: '{project}'
1020 branch: '{branch}'
1021
1022 builders:
1023
1024 - provide-maven-settings:
1025 global-settings-file: 'global-settings'
1026 settings-file: '{mvn-settings}'
1027
1028 - inject:
1029 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001030 - maven-set-release-version:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001031 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001032 mvn-settings: '{mvn-settings}'
1033 pom:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001034
1035 - docker-login
1036
1037 - maven-target:
1038 maven-version: '{maven-version}'
1039 goals: '{mvn-goals}'
1040 settings: '{mvn-settings}'
1041 settings-type: cfp
1042 global-settings: 'global-settings'
1043 global-settings-type: cfp
1044
1045 - shell: '{script}'
1046
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001047 publishers:
1048 - infra-shiplogs:
1049 maven-version: '{maven-version}'
1050
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001051- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001052 # Job template for building & pushing docker images
1053 #
1054 # The purpose of this job template is to run:
1055 # 1. login to the docker registry
1056 # 2. inject a version.properties file and set versions
1057 # 3. run a specified shell builder
1058 #
1059 # This template supports subprojects.
1060 #
1061 # Required Variables:
1062 # pom: name/location of the pom.xml file relative to the workspace
1063 # maven-properties: properties passed to maven
1064
Zhaoxing49773042017-10-13 17:14:35 +08001065 name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
1066 project-type: freestyle
1067 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001068 disabled: '{disabled}'
Zhaoxing49773042017-10-13 17:14:35 +08001069 properties:
1070 - infra-properties:
1071 build-days-to-keep: '{build-days-to-keep}'
1072
1073 parameters:
1074 - infra-parameters:
1075 project: '{project}'
1076 branch: '{branch}'
1077 refspec: 'refs/heads/{branch}'
1078 artifacts: '{archive-artifacts}'
1079 - maven-exec:
1080 maven-version: '{maven-version}'
1081
1082 scm:
1083 - gerrit-trigger-scm:
1084 refspec: ''
1085 choosing-strategy: 'default'
1086 submodule-recursive: '{submodule-recursive}'
1087
1088 wrappers:
1089 - infra-wrappers:
1090 build-timeout: '{build-timeout}'
1091
1092 triggers:
1093 # 12 AM UTC
1094 - timed: 'H 12 * * *'
1095 - gerrit-trigger-release-manually:
1096 server: '{server-name}'
1097 project: '{project}'
1098 branch: '{branch}'
1099
1100 builders:
1101
1102 - provide-maven-settings:
1103 global-settings-file: 'global-settings'
1104 settings-file: '{mvn-settings}'
1105
1106 - inject:
1107 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001108 - maven-set-release-version:
Zhaoxing49773042017-10-13 17:14:35 +08001109 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001110 mvn-settings: '{mvn-settings}'
Zhaoxing49773042017-10-13 17:14:35 +08001111 pom: '{pom}'
Zhaoxing49773042017-10-13 17:14:35 +08001112
1113 - docker-login
1114
1115 - maven-target:
1116 maven-version: '{maven-version}'
1117 pom: '{pom}'
1118 goals: '{mvn-goals}'
1119 settings: '{mvn-settings}'
1120 settings-type: cfp
1121 global-settings: 'global-settings'
1122 global-settings-type: cfp
1123
1124 - shell: '{script}'
1125
1126 publishers:
1127 - infra-shiplogs:
1128 maven-version: '{maven-version}'
1129
Gary Wu350fbcb2018-08-07 11:13:59 -07001130- job-template: &docker_version_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001131 # Job template for building & pushing docker images
1132 #
1133 # The purpose of this job template is to run:
1134 # 1. login to the docker registry
1135 # 2. inject a version.properties file and set versions
1136 # 3. run a docker push
1137 #
1138 # Required Variables:
1139 # pom: name/location of the pom.xml file relative to the workspace
1140 # profile: the docker profile defined in the pom
1141 # maven-properties: properties passed to maven
1142
Patrick Brady39f388a2017-03-09 11:26:59 -08001143 name: '{project-name}-{stream}-docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -07001144 id: '{project-name}-{stream}-docker-version-java-daily'
Patrick Brady39f388a2017-03-09 11:26:59 -08001145 project-type: freestyle
1146 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001147 disabled: '{disabled}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001148 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001149 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -08001150 build-days-to-keep: '{build-days-to-keep}'
1151
1152 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001153 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -08001154 project: '{project}'
1155 branch: '{branch}'
1156 refspec: 'refs/heads/{branch}'
1157 artifacts: '{archive-artifacts}'
1158 - maven-exec:
1159 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -07001160 - maven-params:
1161 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001162
1163 scm:
1164 - gerrit-trigger-scm:
1165 refspec: ''
1166 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001167 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001168
1169 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001170 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -08001171 build-timeout: '{build-timeout}'
1172
1173 triggers:
1174 # 12 AM UTC
1175 - timed: 'H 12 * * *'
1176 - gerrit-trigger-release-manually:
1177 server: '{server-name}'
1178 project: '{project}'
1179 branch: '{branch}'
1180
1181 builders:
1182
1183 - provide-maven-settings:
1184 global-settings-file: 'global-settings'
1185 settings-file: '{mvn-settings}'
1186
1187 - inject:
1188 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001189 - maven-set-release-version:
Patrick Brady39f388a2017-03-09 11:26:59 -08001190 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001191 mvn-settings: '{mvn-settings}'
1192 pom:
Patrick Brady39f388a2017-03-09 11:26:59 -08001193
1194 - docker-login
1195
1196 - maven-docker-push-daily:
1197 maven-version: '{maven-version}'
1198 mvn-settings: '{mvn-settings}'
1199 pom: '{docker-pom}'
1200 # use default as mvn-profile if profile is not needed
1201 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -07001202 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001203
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001204 publishers:
1205 - infra-shiplogs:
1206 maven-version: '{maven-version}'
1207
Patrick Brady39f388a2017-03-09 11:26:59 -08001208- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001209 # Job template for building & pushing docker images
1210 #
1211 # The purpose of this job template is to run:
Gary Wu9e9210f2018-07-18 16:19:20 -07001212 # 1. login to the docker registry
1213 # 2. inject a version.properties file and set versions
1214 # 3. run a docker push
1215 #
1216 # Required Variables:
1217 # pom: name/location of the pom.xml file relative to the workspace
1218 # profile: the docker profile defined in the pom
1219 # maven-properties: properties passed to maven
1220
Gary Wu350fbcb2018-08-07 11:13:59 -07001221 <<: *docker_version_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -07001222 name: '{project-name}-{stream}-docker-version-java-daily'
1223 id: 'docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -07001224 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -07001225 wrappers:
1226 - infra-wrappers-docker-build:
1227 build-timeout: '{build-timeout}'
1228
Zhaoxing49773042017-10-13 17:14:35 +08001229- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001230 # Job template for building & pushing docker images for AAI specific repos
1231 #
1232 # The purpose of this job template is to run:
1233 # 1. login to the docker registry
1234 # 2. run maven goals
1235 # 3. run include-docker-push.sh
1236 #
1237 # Required Variables:
1238 # pom: name/location of the pom.xml file relative to the workspace
1239 # maven-properties: properties passed to maven
1240
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001241 name: '{project-name}-{stream}-aai-docker-java-daily'
1242 project-type: freestyle
1243 node: 'ubuntu1604-docker-8c-8g'
Gary Wudc3f2952017-08-23 16:48:59 -07001244 docker-image-name: ''
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001245 disabled: '{disabled}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001246 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001247 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001248 build-days-to-keep: '{build-days-to-keep}'
1249
1250 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001251 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001252 project: '{project}'
1253 branch: '{branch}'
1254 refspec: 'refs/heads/{branch}'
1255 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001256 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001257 maven-version: '{maven-version}'
Gary Wudc3f2952017-08-23 16:48:59 -07001258 - docker-image-name:
1259 docker-image-name: '{docker-image-name}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001260
1261 scm:
1262 - gerrit-trigger-scm:
1263 refspec: ''
1264 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001265 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001266
1267 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001268 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001269 build-timeout: '{build-timeout}'
1270
1271 triggers:
1272 # 12 AM UTC
1273 - timed: 'H 12 * * *'
1274 - gerrit-trigger-release-manually:
1275 server: '{server-name}'
1276 project: '{project}'
1277 branch: '{branch}'
1278
1279 builders:
1280
1281 - provide-maven-settings:
1282 global-settings-file: 'global-settings'
1283 settings-file: '{mvn-settings}'
1284
1285 - docker-login
1286
1287 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001288 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001289 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001290 goals: 'clean install -DskipTests -B
1291 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001292 settings: '{mvn-settings}'
1293 settings-type: cfp
1294 global-settings: 'global-settings'
1295 global-settings-type: cfp
1296
1297 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001298 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001299 pom: '{pom}'
1300 goals: '{mvn-goals}'
1301 settings: '{mvn-settings}'
1302 settings-type: cfp
1303 global-settings: 'global-settings'
1304 global-settings-type: cfp
1305 properties:
1306 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001307 - docker.pull.registry=nexus3.onap.org:10001
1308 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001309
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001310 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001311
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001312 publishers:
1313 - infra-shiplogs:
1314 maven-version: '{maven-version}'
1315
Carsten Lund2d06a692017-02-23 18:23:07 +00001316- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001317 # Job template for Java merge jobs for SDC specific repos
ig61339fdb9d22017-04-03 17:47:19 +03001318 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001319 # The purpose of this job template is to run:
1320 # 1. maven clean deploy
ig61339fdb9d22017-04-03 17:47:19 +03001321 #
1322 # Required Variables:
1323 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001324
Gary Wu6c702772018-08-06 18:48:02 -07001325 <<: *merge_java_defaults
ig61339fdb9d22017-04-03 17:47:19 +03001326 name: '{project-name}-{stream}-sdc-merge-java'
1327
ig6133cb3f8232017-04-05 14:22:42 +03001328 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall9a89de42018-04-18 11:35:17 -07001329 build-timeout: 120
ig61339fdb9d22017-04-03 17:47:19 +03001330
ig61339fdb9d22017-04-03 17:47:19 +03001331 builders:
1332 - provide-maven-settings:
1333 global-settings-file: 'global-settings'
1334 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001335
1336 - docker-login
1337
Gary Wu6c702772018-08-06 18:48:02 -07001338 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001339 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001340 mvn-settings: '{mvn-settings}'
1341 pom: '{docker-pom}'
1342 # use default as mvn-profile if profile is not needed
1343 mvn-profile: '{mvn-profile}'
Gary Wu6c702772018-08-06 18:48:02 -07001344 mvn-params: ''