blob: 10f319a29ef8b029c4edd3eca671ba960562ec40 [file] [log] [blame]
Andrew Grimbergebc710a2017-01-30 12:59:38 -08001---
2- job-template:
3 # Job template for Java verify jobs
4 #
5 # The purpose of this job template is to run "maven clean install" for
6 # projects using this template.
7 #
8 # Required Variables:
9 # branch: git branch (eg. stable/lithium or master)
10
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050011 name: '{project-name}-{stream}-verify-java-skip-tests'
12
13 project-type: freestyle
14 concurrent: true
15 node: '{build-node}'
16
17 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070018 - infra-properties:
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050019 build-days-to-keep: '{build-days-to-keep}'
20
21 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070022 - infra-parameters:
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050023 project: '{project}'
24 branch: '{branch}'
25 refspec: 'refs/heads/{branch}'
26 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080027 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080028 maven-version: '{maven-version}'
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050029
30 scm:
31 - gerrit-trigger-scm:
32 refspec: '$GERRIT_REFSPEC'
33 choosing-strategy: 'gerrit'
34
35 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070036 - infra-wrappers:
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050037 build-timeout: '{build-timeout}'
38
39 triggers:
40 - gerrit-trigger-patch-submitted:
41 server: '{server-name}'
42 project: '{project}'
43 branch: '{branch}'
44 files: '**'
45
46 builders:
47 - provide-maven-settings:
48 global-settings-file: 'global-settings'
49 settings-file: '{mvn-settings}'
50 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -080051 maven-version: '{maven-version}'
Gary Wua697f8b2017-04-13 09:13:40 -070052 goals: 'clean install -DskipTests=true -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050053 settings: '{mvn-settings}'
54 settings-type: cfp
55 global-settings: 'global-settings'
56 global-settings-type: cfp
57 maven-opts:
58 - maven.test.skip=true
59
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070060 publishers:
61 - infra-shiplogs:
62 maven-version: '{maven-version}'
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050063
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050064- job-template:
65 # Job template for Java verify jobs
66 #
67 # The purpose of this job template is to run "maven clean install" for
68 # projects using this template.
69 #
70 # Required Variables:
71 # branch: git branch (eg. stable/lithium or master)
72
Andrew Grimbergce2286c2017-01-31 05:50:39 -080073 name: '{project-name}-{stream}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080074
75 project-type: freestyle
76 concurrent: true
77 node: '{build-node}'
78
79 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070080 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080081 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080082
83 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070084 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080085 project: '{project}'
86 branch: '{branch}'
87 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080088 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080089 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080090 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080091
92 scm:
93 - gerrit-trigger-scm:
94 refspec: '$GERRIT_REFSPEC'
95 choosing-strategy: 'gerrit'
96
97 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070098 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080099 build-timeout: '{build-timeout}'
100
101 triggers:
102 - gerrit-trigger-patch-submitted:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800103 server: '{server-name}'
104 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800105 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800106 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800107
108 builders:
109 - provide-maven-settings:
110 global-settings-file: 'global-settings'
111 settings-file: '{mvn-settings}'
112 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800113 maven-version: '{maven-version}'
Gary Wua697f8b2017-04-13 09:13:40 -0700114 goals: 'clean install -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800115 settings: '{mvn-settings}'
116 settings-type: cfp
117 global-settings: 'global-settings'
118 global-settings-type: cfp
119
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700120 publishers:
121 - infra-shiplogs:
122 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800123
124- job-template:
JulienBeef823f12017-04-12 04:52:40 -0700125 # Job template for Java verify jobs that takes a maven template
126 #
127 # The purpose of this job template is to run "maven clean install -P {x}"
128 # for projects using this template.
129 #
130 # Required Variables:
131 # branch: git branch (eg. stable/lithium or master)
132
133 name: '{project-name}-{stream}-verify-profile-java'
134
135 project-type: freestyle
136 concurrent: true
137 node: '{build-node}'
138
139 properties:
140 - infra-properties:
141 build-days-to-keep: '{build-days-to-keep}'
142
143 parameters:
144 - infra-parameters:
145 project: '{project}'
146 branch: '{branch}'
147 refspec: 'refs/heads/{branch}'
148 artifacts: '{archive-artifacts}'
149 - maven-exec:
150 maven-version: '{maven-version}'
151
152 scm:
153 - gerrit-trigger-scm:
154 refspec: '$GERRIT_REFSPEC'
155 choosing-strategy: 'gerrit'
156
157 wrappers:
158 - infra-wrappers:
159 build-timeout: '{build-timeout}'
160
161 triggers:
162 - gerrit-trigger-patch-submitted:
163 server: '{server-name}'
164 project: '{project}'
165 branch: '{branch}'
166 files: '**'
167
168 builders:
169 - provide-maven-settings:
170 global-settings-file: 'global-settings'
171 settings-file: '{mvn-settings}'
172 - maven-target:
173 maven-version: '{maven-version}'
Gary Wua697f8b2017-04-13 09:13:40 -0700174 goals: 'clean install -P {mvn-profile} -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBeef823f12017-04-12 04:52:40 -0700175 settings: '{mvn-settings}'
176 settings-type: cfp
177 global-settings: 'global-settings'
178 global-settings-type: cfp
179
180 publishers:
181 - infra-shiplogs:
182 maven-version: '{maven-version}'
183
184- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800185 # Job template for Java verify jobs with POM not at the root
186 #
187 # The purpose of this job template is to run "maven clean install" for
188 # projects using this template.
189 #
190 # Required Variables:
191 # branch: git branch (eg. stable/lithium or master)
192 # pom: name/location of the pom.xml file relative to the workspace
193 # pattern: ant file-path pattern relative to the workspace used to
194 # trigger the job
195
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800196 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800197
198 project-type: freestyle
199 concurrent: true
200 node: '{build-node}'
201
202 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700203 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800204 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800205
206 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700207 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800208 project: '{project}'
209 branch: '{branch}'
210 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800211 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800212 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800213 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800214
215 scm:
216 - gerrit-trigger-scm:
217 refspec: '$GERRIT_REFSPEC'
218 choosing-strategy: 'gerrit'
219
220 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700221 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800222 build-timeout: '{build-timeout}'
223
224 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800225 - gerrit-trigger-patch-submitted:
226 server: '{server-name}'
227 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800228 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800229 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800230
231 builders:
232 - provide-maven-settings:
233 global-settings-file: 'global-settings'
234 settings-file: '{mvn-settings}'
235 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800236 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800237 pom: '{pom}'
Gary Wua697f8b2017-04-13 09:13:40 -0700238 goals: 'clean install -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800239 settings: '{mvn-settings}'
240 settings-type: cfp
241 global-settings: 'global-settings'
242 global-settings-type: cfp
243
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700244 publishers:
245 - infra-shiplogs:
246 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800247
248- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100249 # Job template for Java daily release jobs
250 #
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800251 # The purpose of this job template is to run "maven version && maven clean
252 # deploy" for projects using this template.
JulienBe2f4ee072017-02-01 21:42:32 +0100253 #
254 # Required Variables:
255 # branch: git branch (eg. stable/lithium or master)
256 name: '{project-name}-{stream}-release-java-daily'
257
258 project-type: freestyle
259 node: '{build-node}'
260 maven-deploy-properties:
261 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700262 - infra-properties:
JulienBe2f4ee072017-02-01 21:42:32 +0100263 build-days-to-keep: '{build-days-to-keep}'
264
265 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700266 - infra-parameters:
JulienBe2f4ee072017-02-01 21:42:32 +0100267 project: '{project}'
268 branch: '{branch}'
269 refspec: 'refs/heads/{branch}'
270 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800271 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800272 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100273
274 scm:
275 - gerrit-trigger-scm:
276 refspec: ''
277 choosing-strategy: 'default'
278
279 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700280 - infra-wrappers:
JulienBe2f4ee072017-02-01 21:42:32 +0100281 build-timeout: '{build-timeout}'
282
283 triggers:
284 # 11 AM UTC
285 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800286 - gerrit-trigger-release-manually:
287 server: '{server-name}'
288 project: '{project}'
289 branch: '{branch}'
JulienBe2f4ee072017-02-01 21:42:32 +0100290
291 builders:
292 - provide-maven-settings:
293 global-settings-file: 'global-settings'
294 settings-file: '{mvn-settings}'
295
JulienBe5641aa02017-02-17 01:08:38 -0800296 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800297 maven-version: '{maven-version}'
Gary Wua697f8b2017-04-13 09:13:40 -0700298 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}} -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBe5641aa02017-02-17 01:08:38 -0800299 properties:
300 - '{maven-deploy-properties}'
301 settings: '{mvn-settings}'
302 settings-type: cfp
303 global-settings: 'global-settings'
304 global-settings-type: cfp
305
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700306 publishers:
307 - infra-shiplogs:
308 maven-version: '{maven-version}'
309
JulienBe5641aa02017-02-17 01:08:38 -0800310- job-template:
311 # Job template for Java daily release jobs
312 #
313 # The purpose of this job template is to run "maven version && maven clean
314 # deploy" for projects using this template.
315 #
316 # Required Variables:
317 # branch: git branch (eg. stable/lithium or master)
318 name: '{project-name}-{stream}-release-version-java-daily'
319
320 project-type: freestyle
321 node: '{build-node}'
322 maven-deploy-properties:
323 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700324 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800325 build-days-to-keep: '{build-days-to-keep}'
326
327 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700328 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800329 project: '{project}'
330 branch: '{branch}'
331 refspec: 'refs/heads/{branch}'
332 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800333 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800334 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800335
336 scm:
337 - gerrit-trigger-scm:
338 refspec: ''
339 choosing-strategy: 'default'
340
341 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700342 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800343 build-timeout: '{build-timeout}'
344
345 triggers:
346 # 11 AM UTC
347 - timed: 'H 11 * * *'
348 - gerrit-trigger-release-manually:
349 server: '{server-name}'
350 project: '{project}'
351 branch: '{branch}'
352
353 builders:
354 - provide-maven-settings:
355 global-settings-file: 'global-settings'
356 settings-file: '{mvn-settings}'
357
JulienBe2f4ee072017-02-01 21:42:32 +0100358 - inject:
359 properties-file: version.properties
360 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800361 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100362 goals: 'versions:set versions:update-child-modules versions:commit'
363 properties:
364 - 'newVersion=${{release_version}}'
365 settings: '{mvn-settings}'
366 settings-type: cfp
367 global-settings: 'global-settings'
368 global-settings-type: cfp
369
370 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800371 maven-version: '{maven-version}'
Gary Wua697f8b2017-04-13 09:13:40 -0700372 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}} -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800373 properties:
374 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100375 settings: '{mvn-settings}'
376 settings-type: cfp
377 global-settings: 'global-settings'
378 global-settings-type: cfp
379
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700380 publishers:
381 - infra-shiplogs:
382 maven-version: '{maven-version}'
383
JulienBe2f4ee072017-02-01 21:42:32 +0100384- job-template:
Carsten Lundda8b6972017-02-15 23:59:25 +0000385 # Job template for Java daily release jobs with POM not at the root
386 #
387 # The purpose of this job template is to run "maven version && maven clean
388 # deploy" for projects using this template.
389 #
390 # Required Variables:
391 # branch: git branch (eg. stable/lithium or master)
392 # pom: name/location of the pom.xml file relative to the workspace
393
394
395 name: '{project-name}-{stream}-{subproject}-release-java-daily'
396
397 project-type: freestyle
398 node: '{build-node}'
399 maven-deploy-properties:
400 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700401 - infra-properties:
Carsten Lundda8b6972017-02-15 23:59:25 +0000402 build-days-to-keep: '{build-days-to-keep}'
403
404 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700405 - infra-parameters:
Carsten Lundda8b6972017-02-15 23:59:25 +0000406 project: '{project}'
407 branch: '{branch}'
408 refspec: 'refs/heads/{branch}'
409 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800410 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800411 maven-version: '{maven-version}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000412
413 scm:
414 - gerrit-trigger-scm:
415 refspec: ''
416 choosing-strategy: 'default'
417
418 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700419 - infra-wrappers:
Carsten Lundda8b6972017-02-15 23:59:25 +0000420 build-timeout: '{build-timeout}'
421
422 triggers:
423 # 11 AM UTC
424 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800425 - gerrit-trigger-release-manually:
426 server: '{server-name}'
427 project: '{project}'
428 branch: '{branch}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000429
430 builders:
431 - provide-maven-settings:
432 global-settings-file: 'global-settings'
433 settings-file: '{mvn-settings}'
434
Carsten Lundda8b6972017-02-15 23:59:25 +0000435 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800436 maven-version: '{maven-version}'
Carsten Lund63cd3b82017-02-18 18:19:22 +0000437 pom: '{pom}'
Gary Wua697f8b2017-04-13 09:13:40 -0700438 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}} -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lundda8b6972017-02-15 23:59:25 +0000439 properties:
440 - '{maven-deploy-properties}'
441 settings: '{mvn-settings}'
442 settings-type: cfp
443 global-settings: 'global-settings'
444 global-settings-type: cfp
445
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700446 publishers:
447 - infra-shiplogs:
448 maven-version: '{maven-version}'
449
Carsten Lundda8b6972017-02-15 23:59:25 +0000450- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800451 # Job template for Java merge jobs
452 #
453 # The purpose of this job template is to run "maven clean deploy" for
454 # projects using this template.
455 #
456 # Required Variables:
457 # branch: git branch (eg. stable/lithium or master)
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800458 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800459
460 project-type: freestyle
461 node: '{build-node}'
462
463 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700464 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800465 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800466
467 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700468 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800469 project: '{project}'
470 branch: '{branch}'
471 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800472 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800473 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800474 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800475
476 scm:
477 - gerrit-trigger-scm:
478 refspec: ''
479 choosing-strategy: 'default'
480
481 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700482 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800483 build-timeout: '{build-timeout}'
484
485 triggers:
486 - gerrit-trigger-patch-merged:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800487 server: '{server-name}'
488 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800489 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800490 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800491
492 builders:
493 - provide-maven-settings:
494 global-settings-file: 'global-settings'
495 settings-file: '{mvn-settings}'
496 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800497 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800498 # yamllint disable rule:line-length
Gary Wua697f8b2017-04-13 09:13:40 -0700499 goals: 'clean deploy -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800500 # yamllint enable
501 settings: '{mvn-settings}'
502 settings-type: cfp
503 global-settings: 'global-settings'
504 global-settings-type: cfp
505
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700506 publishers:
507 - infra-shiplogs:
508 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800509
510- job-template:
JulienBeef823f12017-04-12 04:52:40 -0700511 # Job template for Java merge jobs that takes a maven template
512 #
513 # The purpose of this job template is to run "maven clean deploy -P {x}"
514 # for projects using this template.
515 #
516 # Required Variables:
517 # branch: git branch (eg. stable/lithium or master)
518 name: '{project-name}-{stream}-merge-profile-java'
519
520 project-type: freestyle
521 node: '{build-node}'
522
523 properties:
524 - infra-properties:
525 build-days-to-keep: '{build-days-to-keep}'
526
527 parameters:
528 - infra-parameters:
529 project: '{project}'
530 branch: '{branch}'
531 refspec: 'refs/heads/{branch}'
532 artifacts: '{archive-artifacts}'
533 - maven-exec:
534 maven-version: '{maven-version}'
535
536 scm:
537 - gerrit-trigger-scm:
538 refspec: ''
539 choosing-strategy: 'default'
540
541 wrappers:
542 - infra-wrappers:
543 build-timeout: '{build-timeout}'
544
545 triggers:
546 - gerrit-trigger-patch-merged:
547 server: '{server-name}'
548 project: '{project}'
549 branch: '{branch}'
550 files: '**'
551
552 builders:
553 - provide-maven-settings:
554 global-settings-file: 'global-settings'
555 settings-file: '{mvn-settings}'
Determe, Sebastien (sd378r)62e4e662017-04-26 08:00:00 -0700556
557 - docker-login
558
JulienBeef823f12017-04-12 04:52:40 -0700559 - maven-target:
560 maven-version: '{maven-version}'
561 # yamllint disable rule:line-length
Gary Wua697f8b2017-04-13 09:13:40 -0700562 goals: 'clean deploy -P {mvn-profile} -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBeef823f12017-04-12 04:52:40 -0700563 # yamllint enable
564 settings: '{mvn-settings}'
565 settings-type: cfp
566 global-settings: 'global-settings'
567 global-settings-type: cfp
Determe, Sebastien (sd378r)345956b2017-04-28 08:45:52 -0700568 properties:
569 - docker.pull.registry=nexus3.onap.org:10001
570 - docker.push.registry=nexus3.onap.org:10003
JulienBeef823f12017-04-12 04:52:40 -0700571
572 publishers:
573 - infra-shiplogs:
574 maven-version: '{maven-version}'
575
576- job-template:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800577 # Job template for Java merge jobs that should also be triggered by upstream
578 # merges
579 #
580 # Required Variables:
581 # stream: release stream
582 # branch: git branch
583 # dependencies: fully qualified upstream job name to trigger on
584 # this may be ''
585 name: '{project-name}-{stream}-downstream-merge-java'
586
587 project-type: freestyle
588 node: '{build-node}'
589
590 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700591 - infra-properties:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800592 build-days-to-keep: '{build-days-to-keep}'
593
594 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700595 - infra-parameters:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800596 project: '{project}'
597 branch: '{branch}'
598 refspec: 'refs/heads/{branch}'
599 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800600 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800601 maven-version: '{maven-version}'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800602
603 scm:
604 - gerrit-trigger-scm:
605 refspec: ''
606 choosing-strategy: 'default'
607
608 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700609 - infra-wrappers:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800610 build-timeout: '{build-timeout}'
611
612 triggers:
613 - reverse:
614 jobs: '{dependencies}'
615 result: 'success'
616 - gerrit-trigger-patch-merged:
617 server: '{server-name}'
618 project: '{project}'
619 branch: '{branch}'
620 files: '**'
621
622 builders:
623 - provide-maven-settings:
624 global-settings-file: 'global-settings'
625 settings-file: '{mvn-settings}'
626 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800627 maven-version: '{maven-version}'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800628 # yamllint disable rule:line-length
Gary Wua697f8b2017-04-13 09:13:40 -0700629 goals: 'clean deploy -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800630 # yamllint enable
631 settings: '{mvn-settings}'
632 settings-type: cfp
633 global-settings: 'global-settings'
634 global-settings-type: cfp
635
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700636 publishers:
637 - infra-shiplogs:
638 maven-version: '{maven-version}'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800639
640- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800641 # Job template for Java merge jobs with POM not at the root
642 #
643 # The purpose of this job template is to run "maven clean deploy" for
644 # projects using this template.
645 #
646 # Required Variables:
647 # branch: git branch (eg. stable/lithium or master)
648 # pom: name/location of the pom.xml file relative to the workspace
649 # pattern: ant file-path pattern relative to the workspace used to
650 # trigger the job
651
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800652 name: '{project-name}-{stream}-{subproject}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800653
654 project-type: freestyle
655 node: '{build-node}'
656
657 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700658 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800659 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800660
661 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700662 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800663 project: '{project}'
664 branch: '{branch}'
665 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800666 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800667 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800668 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800669
670 scm:
671 - gerrit-trigger-scm:
672 refspec: ''
673 choosing-strategy: 'default'
674
675 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700676 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800677 build-timeout: '{build-timeout}'
678
679 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800680 - gerrit-trigger-patch-merged:
681 server: '{server-name}'
682 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800683 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800684 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800685
686 builders:
687 - provide-maven-settings:
688 global-settings-file: 'global-settings'
689 settings-file: '{mvn-settings}'
690 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800691 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800692 pom: '{pom}'
693 # yamllint disable rule:line-length
Gary Wua697f8b2017-04-13 09:13:40 -0700694 goals: 'clean deploy -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800695 # yamllint enable
696 settings: '{mvn-settings}'
697 settings-type: cfp
698 global-settings: 'global-settings'
699 global-settings-type: cfp
700
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700701 publishers:
702 - infra-shiplogs:
703 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100704
705- job-template:
706 name: '{project-name}-{stream}-docker-java-daily'
707 project-type: freestyle
Andrew Grimberg2137b1d2017-02-15 07:24:53 -0800708 node: 'ubuntu1604-docker-8c-8g'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100709
710 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700711 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100712 build-days-to-keep: '{build-days-to-keep}'
713
714 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700715 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100716 project: '{project}'
717 branch: '{branch}'
718 refspec: 'refs/heads/{branch}'
719 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800720 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800721 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100722
723 scm:
724 - gerrit-trigger-scm:
725 refspec: ''
726 choosing-strategy: 'default'
727
Anaël Clossonabbafb52017-02-09 17:55:10 +0100728 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700729 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100730 build-timeout: '{build-timeout}'
731
732 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800733 # 12 AM UTC
Anaël Clossonabbafb52017-02-09 17:55:10 +0100734 - timed: 'H 12 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800735 - gerrit-trigger-release-manually:
736 server: '{server-name}'
737 project: '{project}'
738 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100739
740 builders:
Anaël Closson63e090e2017-02-15 14:50:45 +0100741
Anaël Clossonabbafb52017-02-09 17:55:10 +0100742 - provide-maven-settings:
743 global-settings-file: 'global-settings'
744 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100745
Anaël Closson63e090e2017-02-15 14:50:45 +0100746 - docker-login
747
Anaël Clossonabbafb52017-02-09 17:55:10 +0100748 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800749 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100750 mvn-settings: '{mvn-settings}'
751 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100752 # use default as mvn-profile if profile is not needed
753 mvn-profile: '{mvn-profile}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500754
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700755 publishers:
756 - infra-shiplogs:
757 maven-version: '{maven-version}'
758
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500759- job-template:
760 name: '{project-name}-{stream}-docker-java-shell-daily'
761 project-type: freestyle
762 node: 'ubuntu1604-docker-8c-8g'
763
764 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700765 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500766 build-days-to-keep: '{build-days-to-keep}'
767
768 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700769 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500770 project: '{project}'
771 branch: '{branch}'
772 refspec: 'refs/heads/{branch}'
773 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800774 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800775 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500776
777 scm:
778 - gerrit-trigger-scm:
779 refspec: ''
780 choosing-strategy: 'default'
781
782 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700783 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500784 build-timeout: '{build-timeout}'
785
786 triggers:
787 # 12 AM UTC
788 - timed: 'H 12 * * *'
789 - gerrit-trigger-release-manually:
790 server: '{server-name}'
791 project: '{project}'
792 branch: '{branch}'
793
794 builders:
795
796 - provide-maven-settings:
797 global-settings-file: 'global-settings'
798 settings-file: '{mvn-settings}'
799
800 - docker-login
801
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500802 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800803 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500804 goals: '{mvn-goals}'
805 settings: '{mvn-settings}'
806 settings-type: cfp
807 global-settings: 'global-settings'
808 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500809
810 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000811
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700812 publishers:
813 - infra-shiplogs:
814 maven-version: '{maven-version}'
815
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000816- job-template:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400817 name: '{project-name}-{stream}-docker-java-version-shell-daily'
818 project-type: freestyle
819 node: 'ubuntu1604-docker-8c-8g'
820
821 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700822 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400823 build-days-to-keep: '{build-days-to-keep}'
824
825 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700826 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400827 project: '{project}'
828 branch: '{branch}'
829 refspec: 'refs/heads/{branch}'
830 artifacts: '{archive-artifacts}'
831 - maven-exec:
832 maven-version: '{maven-version}'
833
834 scm:
835 - gerrit-trigger-scm:
836 refspec: ''
837 choosing-strategy: 'default'
838
839 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700840 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400841 build-timeout: '{build-timeout}'
842
843 triggers:
844 # 12 AM UTC
845 - timed: 'H 12 * * *'
846 - gerrit-trigger-release-manually:
847 server: '{server-name}'
848 project: '{project}'
849 branch: '{branch}'
850
851 builders:
852
853 - provide-maven-settings:
854 global-settings-file: 'global-settings'
855 settings-file: '{mvn-settings}'
856
857 - inject:
858 properties-file: version.properties
859
860 - maven-target:
861 maven-version: '{maven-version}'
862 goals: 'versions:set versions:update-child-modules versions:commit'
863 properties:
864 - 'newVersion=${{release_version}}'
865 settings: '{mvn-settings}'
866 settings-type: cfp
867 global-settings: 'global-settings'
868 global-settings-type: cfp
869
870 - docker-login
871
872 - maven-target:
873 maven-version: '{maven-version}'
874 goals: '{mvn-goals}'
875 settings: '{mvn-settings}'
876 settings-type: cfp
877 global-settings: 'global-settings'
878 global-settings-type: cfp
879
880 - shell: '{script}'
881
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700882 publishers:
883 - infra-shiplogs:
884 maven-version: '{maven-version}'
885
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400886- job-template:
Patrick Brady39f388a2017-03-09 11:26:59 -0800887 name: '{project-name}-{stream}-docker-version-java-daily'
888 project-type: freestyle
889 node: 'ubuntu1604-docker-8c-8g'
890
891 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700892 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -0800893 build-days-to-keep: '{build-days-to-keep}'
894
895 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700896 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -0800897 project: '{project}'
898 branch: '{branch}'
899 refspec: 'refs/heads/{branch}'
900 artifacts: '{archive-artifacts}'
901 - maven-exec:
902 maven-version: '{maven-version}'
903
904 scm:
905 - gerrit-trigger-scm:
906 refspec: ''
907 choosing-strategy: 'default'
908
909 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700910 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -0800911 build-timeout: '{build-timeout}'
912
913 triggers:
914 # 12 AM UTC
915 - timed: 'H 12 * * *'
916 - gerrit-trigger-release-manually:
917 server: '{server-name}'
918 project: '{project}'
919 branch: '{branch}'
920
921 builders:
922
923 - provide-maven-settings:
924 global-settings-file: 'global-settings'
925 settings-file: '{mvn-settings}'
926
927 - inject:
928 properties-file: version.properties
929
930 - maven-target:
931 maven-version: '{maven-version}'
932 goals: 'versions:set versions:update-child-modules versions:commit'
933 properties:
934 - 'newVersion=${{release_version}}'
935 settings: '{mvn-settings}'
936 settings-type: cfp
937 global-settings: 'global-settings'
938 global-settings-type: cfp
939
940 - docker-login
941
942 - maven-docker-push-daily:
943 maven-version: '{maven-version}'
944 mvn-settings: '{mvn-settings}'
945 pom: '{docker-pom}'
946 # use default as mvn-profile if profile is not needed
947 mvn-profile: '{mvn-profile}'
948
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700949 publishers:
950 - infra-shiplogs:
951 maven-version: '{maven-version}'
952
Patrick Brady39f388a2017-03-09 11:26:59 -0800953- job-template:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000954 name: '{project-name}-{stream}-aai-docker-java-daily'
955 project-type: freestyle
956 node: 'ubuntu1604-docker-8c-8g'
957
958 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700959 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000960 build-days-to-keep: '{build-days-to-keep}'
961
962 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700963 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000964 project: '{project}'
965 branch: '{branch}'
966 refspec: 'refs/heads/{branch}'
967 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800968 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800969 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000970
971 scm:
972 - gerrit-trigger-scm:
973 refspec: ''
974 choosing-strategy: 'default'
975
976 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700977 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000978 build-timeout: '{build-timeout}'
979
980 triggers:
981 # 12 AM UTC
982 - timed: 'H 12 * * *'
983 - gerrit-trigger-release-manually:
984 server: '{server-name}'
985 project: '{project}'
986 branch: '{branch}'
987
988 builders:
989
990 - provide-maven-settings:
991 global-settings-file: 'global-settings'
992 settings-file: '{mvn-settings}'
993
994 - docker-login
995
996 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800997 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000998 pom: 'pom.xml'
Gary Wua697f8b2017-04-13 09:13:40 -0700999 goals: 'clean install -DskipTests -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001000 settings: '{mvn-settings}'
1001 settings-type: cfp
1002 global-settings: 'global-settings'
1003 global-settings-type: cfp
1004
1005 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001006 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001007 pom: '{pom}'
1008 goals: '{mvn-goals}'
1009 settings: '{mvn-settings}'
1010 settings-type: cfp
1011 global-settings: 'global-settings'
1012 global-settings-type: cfp
1013 properties:
1014 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001015 - docker.pull.registry=nexus3.onap.org:10001
1016 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001017
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001018 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001019
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001020 publishers:
1021 - infra-shiplogs:
1022 maven-version: '{maven-version}'
1023
Carsten Lund2d06a692017-02-23 18:23:07 +00001024- job-template:
1025 # Job template for Java daily release jobs
1026 #
1027 # The purpose of this job template is to run
1028 # - change version in all POM files to the release version specified
1029 # in version.properties. This is done using a script instread of
1030 # the mvn version plugin that assumes some specific parent structure.
1031 # - runs maven clean deploy sonar
1032 #
1033 # The POM files are required to use the Maven staging plugin so the deploy
1034 # does not deploy directly to the release repo.
1035 #
1036 # Required Variables:
1037 # branch: git branch (eg. stable/lithium or master)
1038 name: '{project-name}-{stream}-release-version2-java-daily'
1039
1040 project-type: freestyle
1041 node: '{build-node}'
1042 maven-deploy-properties:
1043 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001044 - infra-properties:
Carsten Lund2d06a692017-02-23 18:23:07 +00001045 build-days-to-keep: '{build-days-to-keep}'
1046
1047 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001048 - infra-parameters:
Carsten Lund2d06a692017-02-23 18:23:07 +00001049 project: '{project}'
1050 branch: '{branch}'
1051 refspec: 'refs/heads/{branch}'
1052 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001053 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001054 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001055
1056 scm:
1057 - gerrit-trigger-scm:
1058 refspec: ''
1059 choosing-strategy: 'default'
1060
1061 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001062 - infra-wrappers:
Carsten Lund2d06a692017-02-23 18:23:07 +00001063 build-timeout: '{build-timeout}'
1064
1065 triggers:
1066 # 11 AM UTC
1067 - timed: 'H 11 * * *'
1068 - gerrit-trigger-release-manually:
1069 server: '{server-name}'
1070 project: '{project}'
1071 branch: '{branch}'
1072
1073 builders:
1074 - provide-maven-settings:
1075 global-settings-file: 'global-settings'
1076 settings-file: '{mvn-settings}'
Andrew Grimbergb7f16152017-02-24 13:13:15 -08001077 - maven-install:
1078 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001079
1080 - inject:
1081 properties-file: version.properties
1082
1083 - shell: !include-raw-escape: include-update-pom-versions.sh
1084
1085 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001086 maven-version: '{maven-version}'
Gary Wua697f8b2017-04-13 09:13:40 -07001087 goals: 'clean deploy sonar:sonar site:site site:stage-deploy -Dsonar.host.url=${{SONAR}} -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lund2d06a692017-02-23 18:23:07 +00001088 properties:
1089 - '{maven-deploy-properties}'
1090 settings: '{mvn-settings}'
1091 settings-type: cfp
1092 global-settings: 'global-settings'
1093 global-settings-type: cfp
1094
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001095 publishers:
1096 - infra-shiplogs:
1097 maven-version: '{maven-version}'
1098
Carsten Lund2d06a692017-02-23 18:23:07 +00001099- job-template:
1100 # Job template for Java daily release jobs
1101 #
1102 # The purpose of this job template is to run
1103 # - change version in all POM files to the release version specified
1104 # in version.properties. This is done using a script instread of
1105 # the mvn version plugin that assumes some specific parent structure.
1106 # - runs maven clean deploy sonar
1107 #
1108 # The POM files are required to use the Maven staging plugin so the deploy
1109 # does not deploy directly to the release repo.
1110 #
1111 # Required Variables:
1112 # branch: git branch (eg. stable/lithium or master)
1113 # pom: name/location of the pom.xml file relative to the workspace
1114 # pattern: ant file-path pattern relative to the workspace used to
1115 # trigger the job
1116
1117 name: '{project-name}-{stream}-{subproject}-release-version2-java-daily'
1118
1119 project-type: freestyle
1120 node: '{build-node}'
1121 maven-deploy-properties:
1122 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001123 - infra-properties:
Carsten Lund2d06a692017-02-23 18:23:07 +00001124 build-days-to-keep: '{build-days-to-keep}'
1125
1126 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001127 - infra-parameters:
Carsten Lund2d06a692017-02-23 18:23:07 +00001128 project: '{project}'
1129 branch: '{branch}'
1130 refspec: 'refs/heads/{branch}'
1131 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001132 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001133 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001134
1135 scm:
1136 - gerrit-trigger-scm:
1137 refspec: ''
1138 choosing-strategy: 'default'
1139
1140 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001141 - infra-wrappers:
Carsten Lund2d06a692017-02-23 18:23:07 +00001142 build-timeout: '{build-timeout}'
1143
1144 triggers:
1145 # 11 AM UTC
1146 - timed: 'H 11 * * *'
1147 - gerrit-trigger-release-manually:
1148 server: '{server-name}'
1149 project: '{project}'
1150 branch: '{branch}'
1151 files: '{pattern}'
1152
1153 builders:
1154 - provide-maven-settings:
1155 global-settings-file: 'global-settings'
1156 settings-file: '{mvn-settings}'
Andrew Grimbergb7f16152017-02-24 13:13:15 -08001157 - maven-install:
1158 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001159
1160 - inject:
1161 properties-file: version.properties
1162
1163 - shell: !include-raw-escape: include-update-pom-versions.sh
1164
1165 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001166 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001167 pom: '{pom}'
Gary Wua697f8b2017-04-13 09:13:40 -07001168 goals: 'clean deploy sonar:sonar site:site site:stage-deploy -Dsonar.host.url=${{SONAR}} -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lund2d06a692017-02-23 18:23:07 +00001169 properties:
1170 - '{maven-deploy-properties}'
1171 settings: '{mvn-settings}'
1172 settings-type: cfp
1173 global-settings: 'global-settings'
1174 global-settings-type: cfp
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001175
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001176 publishers:
1177 - infra-shiplogs:
1178 maven-version: '{maven-version}'
1179
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001180- job-template:
1181 # Template for maven site plugin invocation
1182 #
1183 # It's designed to be triggered when the trigger-job job
1184 # succeeds as there's no need for new documentaiton
1185 # if the build job fails.
1186 #
1187 # Those parameters should be set :
1188 # - site-pom : the pom file that contains the site confiration
1189 # - trigger-job : the name of the project that triggers this job
1190 # upon success. The job name can be
1191 # parameterized.
1192 name: '{project-name}-{stream}-stage-site-java'
1193 project-type: freestyle
Anaël Clossonb8c5fb52017-03-14 15:43:18 +01001194 node: '{build-node}'
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001195
1196 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001197 - infra-properties:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001198 build-days-to-keep: '{build-days-to-keep}'
1199
1200 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001201 - infra-parameters:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001202 project: '{project}'
1203 branch: '{branch}'
1204 refspec: 'refs/heads/{branch}'
1205 artifacts: '{archive-artifacts}'
1206 - maven-exec:
1207 maven-version: '{maven-version}'
1208
1209 scm:
1210 - gerrit-trigger-scm:
1211 refspec: ''
1212 choosing-strategy: 'default'
1213
1214 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001215 - infra-wrappers:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001216 build-timeout: '{build-timeout}'
1217
1218 triggers:
1219 - trigger-on-build-success:
1220 job-name: '{trigger-job}'
1221
1222 builders:
1223 - provide-maven-settings:
1224 global-settings-file: 'global-settings'
1225 settings-file: '{mvn-settings}'
Anaël Closson09166842017-03-15 11:19:40 +01001226 - inject:
1227 properties-file: version.properties
1228 - maven-target:
1229 maven-version: '{maven-version}'
1230 goals: 'versions:set versions:update-child-modules versions:commit'
1231 properties:
1232 - 'newVersion=${{release_version}}'
1233 settings: '{mvn-settings}'
1234 settings-type: cfp
1235 global-settings: 'global-settings'
1236 global-settings-type: cfp
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001237
1238 - maven-target:
1239 maven-version: '{maven-version}'
Anaël Closson03222ed2017-03-13 16:37:09 +01001240 pom: '{site-pom}'
Anaël Clossonb7c8aa32017-03-14 15:50:20 +01001241 goals: 'clean site:site site:stage-deploy'
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001242 settings: '{mvn-settings}'
1243 settings-type: cfp
1244 global-settings: 'global-settings'
1245 global-settings-type: cfp
ig61339fdb9d22017-04-03 17:47:19 +03001246
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001247 publishers:
1248 - infra-shiplogs:
1249 maven-version: '{maven-version}'
1250
ig61339fdb9d22017-04-03 17:47:19 +03001251- job-template:
1252 # Job template for Java merge jobs
1253 #
1254 # The purpose of this job template is to run "maven clean deploy" for
1255 # projects using this template.
1256 #
1257 # Required Variables:
1258 # branch: git branch (eg. stable/lithium or master)
1259 name: '{project-name}-{stream}-sdc-merge-java'
1260
1261 project-type: freestyle
ig6133cb3f8232017-04-05 14:22:42 +03001262 node: 'ubuntu1604-docker-8c-8g'
ig61339fdb9d22017-04-03 17:47:19 +03001263
1264 properties:
1265 - infra-properties:
1266 build-days-to-keep: '{build-days-to-keep}'
1267
1268 parameters:
1269 - infra-parameters:
1270 project: '{project}'
1271 branch: '{branch}'
1272 refspec: 'refs/heads/{branch}'
1273 artifacts: '{archive-artifacts}'
1274 - maven-exec:
1275 maven-version: '{maven-version}'
1276
1277 scm:
1278 - gerrit-trigger-scm:
1279 refspec: ''
1280 choosing-strategy: 'default'
1281
1282 wrappers:
1283 - infra-wrappers:
1284 build-timeout: '{build-timeout}'
1285
1286 triggers:
1287 - gerrit-trigger-patch-merged:
1288 server: '{server-name}'
1289 project: '{project}'
1290 branch: '{branch}'
1291 files: '**'
1292
1293 builders:
1294 - provide-maven-settings:
1295 global-settings-file: 'global-settings'
1296 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001297
1298 - docker-login
1299
ig6133cb3f8232017-04-05 14:22:42 +03001300 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001301 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001302 mvn-settings: '{mvn-settings}'
1303 pom: '{docker-pom}'
1304 # use default as mvn-profile if profile is not needed
1305 mvn-profile: '{mvn-profile}'
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001306
1307 publishers:
1308 - infra-shiplogs:
1309 maven-version: '{maven-version}'