blob: 5ddfe81c707fe5ece38b096afebb6acdd67208db [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}'
Timoney, Daniel (dt5972)a9dced72017-02-19 09:06:23 -050052 goals: 'clean install -DskipTests=true'
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
60# publishers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070061# - infra-shiplogs:
Andrew Grimberge2465882017-02-24 12:38:05 -080062# maven-version: '{maven-version}'
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050063
64
65- job-template:
66 # Job template for Java verify jobs
67 #
68 # The purpose of this job template is to run "maven clean install" for
69 # projects using this template.
70 #
71 # Required Variables:
72 # branch: git branch (eg. stable/lithium or master)
73
Andrew Grimbergce2286c2017-01-31 05:50:39 -080074 name: '{project-name}-{stream}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080075
76 project-type: freestyle
77 concurrent: true
78 node: '{build-node}'
79
80 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070081 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080082 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080083
84 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070085 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080086 project: '{project}'
87 branch: '{branch}'
88 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080089 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080090 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080091 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080092
93 scm:
94 - gerrit-trigger-scm:
95 refspec: '$GERRIT_REFSPEC'
96 choosing-strategy: 'gerrit'
97
98 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070099 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800100 build-timeout: '{build-timeout}'
101
102 triggers:
103 - gerrit-trigger-patch-submitted:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800104 server: '{server-name}'
105 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800106 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800107 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800108
109 builders:
110 - provide-maven-settings:
111 global-settings-file: 'global-settings'
112 settings-file: '{mvn-settings}'
113 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800114 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800115 goals: 'clean install'
116 settings: '{mvn-settings}'
117 settings-type: cfp
118 global-settings: 'global-settings'
119 global-settings-type: cfp
120
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800121# publishers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700122# - infra-shiplogs:
Andrew Grimberge2465882017-02-24 12:38:05 -0800123# maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800124
125- job-template:
126 # Job template for Java verify jobs with POM not at the root
127 #
128 # The purpose of this job template is to run "maven clean install" for
129 # projects using this template.
130 #
131 # Required Variables:
132 # branch: git branch (eg. stable/lithium or master)
133 # pom: name/location of the pom.xml file relative to the workspace
134 # pattern: ant file-path pattern relative to the workspace used to
135 # trigger the job
136
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800137 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800138
139 project-type: freestyle
140 concurrent: true
141 node: '{build-node}'
142
143 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700144 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800145 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800146
147 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700148 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800149 project: '{project}'
150 branch: '{branch}'
151 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800152 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800153 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800154 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800155
156 scm:
157 - gerrit-trigger-scm:
158 refspec: '$GERRIT_REFSPEC'
159 choosing-strategy: 'gerrit'
160
161 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700162 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800163 build-timeout: '{build-timeout}'
164
165 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800166 - gerrit-trigger-patch-submitted:
167 server: '{server-name}'
168 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800169 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800170 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800171
172 builders:
173 - provide-maven-settings:
174 global-settings-file: 'global-settings'
175 settings-file: '{mvn-settings}'
176 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800177 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800178 pom: '{pom}'
179 goals: 'clean install'
180 settings: '{mvn-settings}'
181 settings-type: cfp
182 global-settings: 'global-settings'
183 global-settings-type: cfp
184
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800185# publishers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700186# - infra-shiplogs:
Andrew Grimberge2465882017-02-24 12:38:05 -0800187# maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800188
189- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100190 # Job template for Java daily release jobs
191 #
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800192 # The purpose of this job template is to run "maven version && maven clean
193 # deploy" for projects using this template.
JulienBe2f4ee072017-02-01 21:42:32 +0100194 #
195 # Required Variables:
196 # branch: git branch (eg. stable/lithium or master)
197 name: '{project-name}-{stream}-release-java-daily'
198
199 project-type: freestyle
200 node: '{build-node}'
201 maven-deploy-properties:
202 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700203 - infra-properties:
JulienBe2f4ee072017-02-01 21:42:32 +0100204 build-days-to-keep: '{build-days-to-keep}'
205
206 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700207 - infra-parameters:
JulienBe2f4ee072017-02-01 21:42:32 +0100208 project: '{project}'
209 branch: '{branch}'
210 refspec: 'refs/heads/{branch}'
211 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}'
JulienBe2f4ee072017-02-01 21:42:32 +0100214
215 scm:
216 - gerrit-trigger-scm:
217 refspec: ''
218 choosing-strategy: 'default'
219
220 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700221 - infra-wrappers:
JulienBe2f4ee072017-02-01 21:42:32 +0100222 build-timeout: '{build-timeout}'
223
224 triggers:
225 # 11 AM UTC
226 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800227 - gerrit-trigger-release-manually:
228 server: '{server-name}'
229 project: '{project}'
230 branch: '{branch}'
JulienBe2f4ee072017-02-01 21:42:32 +0100231
232 builders:
233 - provide-maven-settings:
234 global-settings-file: 'global-settings'
235 settings-file: '{mvn-settings}'
236
JulienBe5641aa02017-02-17 01:08:38 -0800237 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800238 maven-version: '{maven-version}'
Andrew Grimberg93274ad2017-02-24 13:50:16 -0800239 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}}'
JulienBe5641aa02017-02-17 01:08:38 -0800240 properties:
241 - '{maven-deploy-properties}'
242 settings: '{mvn-settings}'
243 settings-type: cfp
244 global-settings: 'global-settings'
245 global-settings-type: cfp
246
247- job-template:
248 # Job template for Java daily release jobs
249 #
250 # The purpose of this job template is to run "maven version && maven clean
251 # deploy" for projects using this template.
252 #
253 # Required Variables:
254 # branch: git branch (eg. stable/lithium or master)
255 name: '{project-name}-{stream}-release-version-java-daily'
256
257 project-type: freestyle
258 node: '{build-node}'
259 maven-deploy-properties:
260 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700261 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800262 build-days-to-keep: '{build-days-to-keep}'
263
264 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700265 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800266 project: '{project}'
267 branch: '{branch}'
268 refspec: 'refs/heads/{branch}'
269 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800270 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800271 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800272
273 scm:
274 - gerrit-trigger-scm:
275 refspec: ''
276 choosing-strategy: 'default'
277
278 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700279 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800280 build-timeout: '{build-timeout}'
281
282 triggers:
283 # 11 AM UTC
284 - timed: 'H 11 * * *'
285 - gerrit-trigger-release-manually:
286 server: '{server-name}'
287 project: '{project}'
288 branch: '{branch}'
289
290 builders:
291 - provide-maven-settings:
292 global-settings-file: 'global-settings'
293 settings-file: '{mvn-settings}'
294
JulienBe2f4ee072017-02-01 21:42:32 +0100295 - inject:
296 properties-file: version.properties
297 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800298 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100299 goals: 'versions:set versions:update-child-modules versions:commit'
300 properties:
301 - 'newVersion=${{release_version}}'
302 settings: '{mvn-settings}'
303 settings-type: cfp
304 global-settings: 'global-settings'
305 global-settings-type: cfp
306
307 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800308 maven-version: '{maven-version}'
Andrew Grimberg93274ad2017-02-24 13:50:16 -0800309 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}}'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800310 properties:
311 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100312 settings: '{mvn-settings}'
313 settings-type: cfp
314 global-settings: 'global-settings'
315 global-settings-type: cfp
316
317- job-template:
Carsten Lundda8b6972017-02-15 23:59:25 +0000318 # Job template for Java daily release jobs with POM not at the root
319 #
320 # The purpose of this job template is to run "maven version && maven clean
321 # deploy" for projects using this template.
322 #
323 # Required Variables:
324 # branch: git branch (eg. stable/lithium or master)
325 # pom: name/location of the pom.xml file relative to the workspace
326
327
328 name: '{project-name}-{stream}-{subproject}-release-java-daily'
329
330 project-type: freestyle
331 node: '{build-node}'
332 maven-deploy-properties:
333 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700334 - infra-properties:
Carsten Lundda8b6972017-02-15 23:59:25 +0000335 build-days-to-keep: '{build-days-to-keep}'
336
337 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700338 - infra-parameters:
Carsten Lundda8b6972017-02-15 23:59:25 +0000339 project: '{project}'
340 branch: '{branch}'
341 refspec: 'refs/heads/{branch}'
342 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800343 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800344 maven-version: '{maven-version}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000345
346 scm:
347 - gerrit-trigger-scm:
348 refspec: ''
349 choosing-strategy: 'default'
350
351 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700352 - infra-wrappers:
Carsten Lundda8b6972017-02-15 23:59:25 +0000353 build-timeout: '{build-timeout}'
354
355 triggers:
356 # 11 AM UTC
357 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800358 - gerrit-trigger-release-manually:
359 server: '{server-name}'
360 project: '{project}'
361 branch: '{branch}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000362
363 builders:
364 - provide-maven-settings:
365 global-settings-file: 'global-settings'
366 settings-file: '{mvn-settings}'
367
Carsten Lundda8b6972017-02-15 23:59:25 +0000368 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800369 maven-version: '{maven-version}'
Carsten Lund63cd3b82017-02-18 18:19:22 +0000370 pom: '{pom}'
Andrew Grimberg93274ad2017-02-24 13:50:16 -0800371 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000372 properties:
373 - '{maven-deploy-properties}'
374 settings: '{mvn-settings}'
375 settings-type: cfp
376 global-settings: 'global-settings'
377 global-settings-type: cfp
378
379- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800380 # Job template for Java merge jobs
381 #
382 # The purpose of this job template is to run "maven clean deploy" for
383 # projects using this template.
384 #
385 # Required Variables:
386 # branch: git branch (eg. stable/lithium or master)
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800387 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800388
389 project-type: freestyle
390 node: '{build-node}'
391
392 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700393 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800394 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800395
396 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700397 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800398 project: '{project}'
399 branch: '{branch}'
400 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800401 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800402 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800403 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800404
405 scm:
406 - gerrit-trigger-scm:
407 refspec: ''
408 choosing-strategy: 'default'
409
410 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700411 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800412 build-timeout: '{build-timeout}'
413
414 triggers:
415 - gerrit-trigger-patch-merged:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800416 server: '{server-name}'
417 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800418 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800419 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800420
421 builders:
422 - provide-maven-settings:
423 global-settings-file: 'global-settings'
424 settings-file: '{mvn-settings}'
425 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800426 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800427 # yamllint disable rule:line-length
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800428 goals: 'clean deploy'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800429 # yamllint enable
430 settings: '{mvn-settings}'
431 settings-type: cfp
432 global-settings: 'global-settings'
433 global-settings-type: cfp
434
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800435# publishers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700436# - infra-shiplogs:
Andrew Grimberge2465882017-02-24 12:38:05 -0800437# maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800438
439- job-template:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800440 # Job template for Java merge jobs that should also be triggered by upstream
441 # merges
442 #
443 # Required Variables:
444 # stream: release stream
445 # branch: git branch
446 # dependencies: fully qualified upstream job name to trigger on
447 # this may be ''
448 name: '{project-name}-{stream}-downstream-merge-java'
449
450 project-type: freestyle
451 node: '{build-node}'
452
453 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700454 - infra-properties:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800455 build-days-to-keep: '{build-days-to-keep}'
456
457 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700458 - infra-parameters:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800459 project: '{project}'
460 branch: '{branch}'
461 refspec: 'refs/heads/{branch}'
462 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800463 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800464 maven-version: '{maven-version}'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800465
466 scm:
467 - gerrit-trigger-scm:
468 refspec: ''
469 choosing-strategy: 'default'
470
471 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700472 - infra-wrappers:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800473 build-timeout: '{build-timeout}'
474
475 triggers:
476 - reverse:
477 jobs: '{dependencies}'
478 result: 'success'
479 - gerrit-trigger-patch-merged:
480 server: '{server-name}'
481 project: '{project}'
482 branch: '{branch}'
483 files: '**'
484
485 builders:
486 - provide-maven-settings:
487 global-settings-file: 'global-settings'
488 settings-file: '{mvn-settings}'
489 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800490 maven-version: '{maven-version}'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800491 # yamllint disable rule:line-length
492 goals: 'clean deploy'
493 # yamllint enable
494 settings: '{mvn-settings}'
495 settings-type: cfp
496 global-settings: 'global-settings'
497 global-settings-type: cfp
498
499# publishers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700500# - infra-shiplogs:
Andrew Grimberge2465882017-02-24 12:38:05 -0800501# maven-version: '{maven-version}'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800502
503- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800504 # Job template for Java merge jobs with POM not at the root
505 #
506 # The purpose of this job template is to run "maven clean deploy" for
507 # projects using this template.
508 #
509 # Required Variables:
510 # branch: git branch (eg. stable/lithium or master)
511 # pom: name/location of the pom.xml file relative to the workspace
512 # pattern: ant file-path pattern relative to the workspace used to
513 # trigger the job
514
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800515 name: '{project-name}-{stream}-{subproject}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800516
517 project-type: freestyle
518 node: '{build-node}'
519
520 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700521 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800522 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800523
524 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700525 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800526 project: '{project}'
527 branch: '{branch}'
528 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800529 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800530 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800531 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800532
533 scm:
534 - gerrit-trigger-scm:
535 refspec: ''
536 choosing-strategy: 'default'
537
538 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700539 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800540 build-timeout: '{build-timeout}'
541
542 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800543 - gerrit-trigger-patch-merged:
544 server: '{server-name}'
545 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800546 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800547 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800548
549 builders:
550 - provide-maven-settings:
551 global-settings-file: 'global-settings'
552 settings-file: '{mvn-settings}'
553 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800554 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800555 pom: '{pom}'
556 # yamllint disable rule:line-length
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800557 goals: 'clean deploy'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800558 # yamllint enable
559 settings: '{mvn-settings}'
560 settings-type: cfp
561 global-settings: 'global-settings'
562 global-settings-type: cfp
563
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800564# publishers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700565# - infra-shiplogs:
Andrew Grimberge2465882017-02-24 12:38:05 -0800566# maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100567
568- job-template:
569 name: '{project-name}-{stream}-docker-java-daily'
570 project-type: freestyle
Andrew Grimberg2137b1d2017-02-15 07:24:53 -0800571 node: 'ubuntu1604-docker-8c-8g'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100572
573 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700574 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100575 build-days-to-keep: '{build-days-to-keep}'
576
577 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700578 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100579 project: '{project}'
580 branch: '{branch}'
581 refspec: 'refs/heads/{branch}'
582 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800583 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800584 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100585
586 scm:
587 - gerrit-trigger-scm:
588 refspec: ''
589 choosing-strategy: 'default'
590
Anaël Clossonabbafb52017-02-09 17:55:10 +0100591 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700592 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100593 build-timeout: '{build-timeout}'
594
595 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800596 # 12 AM UTC
Anaël Clossonabbafb52017-02-09 17:55:10 +0100597 - timed: 'H 12 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800598 - gerrit-trigger-release-manually:
599 server: '{server-name}'
600 project: '{project}'
601 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100602
603 builders:
Anaël Closson63e090e2017-02-15 14:50:45 +0100604
Anaël Clossonabbafb52017-02-09 17:55:10 +0100605 - provide-maven-settings:
606 global-settings-file: 'global-settings'
607 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100608
Anaël Closson63e090e2017-02-15 14:50:45 +0100609 - docker-login
610
Anaël Clossonabbafb52017-02-09 17:55:10 +0100611 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800612 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100613 mvn-settings: '{mvn-settings}'
614 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100615 # use default as mvn-profile if profile is not needed
616 mvn-profile: '{mvn-profile}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500617
618- job-template:
619 name: '{project-name}-{stream}-docker-java-shell-daily'
620 project-type: freestyle
621 node: 'ubuntu1604-docker-8c-8g'
622
623 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700624 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500625 build-days-to-keep: '{build-days-to-keep}'
626
627 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700628 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500629 project: '{project}'
630 branch: '{branch}'
631 refspec: 'refs/heads/{branch}'
632 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800633 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800634 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500635
636 scm:
637 - gerrit-trigger-scm:
638 refspec: ''
639 choosing-strategy: 'default'
640
641 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700642 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500643 build-timeout: '{build-timeout}'
644
645 triggers:
646 # 12 AM UTC
647 - timed: 'H 12 * * *'
648 - gerrit-trigger-release-manually:
649 server: '{server-name}'
650 project: '{project}'
651 branch: '{branch}'
652
653 builders:
654
655 - provide-maven-settings:
656 global-settings-file: 'global-settings'
657 settings-file: '{mvn-settings}'
658
659 - docker-login
660
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500661 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800662 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500663 goals: '{mvn-goals}'
664 settings: '{mvn-settings}'
665 settings-type: cfp
666 global-settings: 'global-settings'
667 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500668
669 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000670
671- job-template:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400672 name: '{project-name}-{stream}-docker-java-version-shell-daily'
673 project-type: freestyle
674 node: 'ubuntu1604-docker-8c-8g'
675
676 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700677 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400678 build-days-to-keep: '{build-days-to-keep}'
679
680 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700681 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400682 project: '{project}'
683 branch: '{branch}'
684 refspec: 'refs/heads/{branch}'
685 artifacts: '{archive-artifacts}'
686 - maven-exec:
687 maven-version: '{maven-version}'
688
689 scm:
690 - gerrit-trigger-scm:
691 refspec: ''
692 choosing-strategy: 'default'
693
694 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700695 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400696 build-timeout: '{build-timeout}'
697
698 triggers:
699 # 12 AM UTC
700 - timed: 'H 12 * * *'
701 - gerrit-trigger-release-manually:
702 server: '{server-name}'
703 project: '{project}'
704 branch: '{branch}'
705
706 builders:
707
708 - provide-maven-settings:
709 global-settings-file: 'global-settings'
710 settings-file: '{mvn-settings}'
711
712 - inject:
713 properties-file: version.properties
714
715 - maven-target:
716 maven-version: '{maven-version}'
717 goals: 'versions:set versions:update-child-modules versions:commit'
718 properties:
719 - 'newVersion=${{release_version}}'
720 settings: '{mvn-settings}'
721 settings-type: cfp
722 global-settings: 'global-settings'
723 global-settings-type: cfp
724
725 - docker-login
726
727 - maven-target:
728 maven-version: '{maven-version}'
729 goals: '{mvn-goals}'
730 settings: '{mvn-settings}'
731 settings-type: cfp
732 global-settings: 'global-settings'
733 global-settings-type: cfp
734
735 - shell: '{script}'
736
737- job-template:
Patrick Brady39f388a2017-03-09 11:26:59 -0800738 name: '{project-name}-{stream}-docker-version-java-daily'
739 project-type: freestyle
740 node: 'ubuntu1604-docker-8c-8g'
741
742 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700743 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -0800744 build-days-to-keep: '{build-days-to-keep}'
745
746 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700747 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -0800748 project: '{project}'
749 branch: '{branch}'
750 refspec: 'refs/heads/{branch}'
751 artifacts: '{archive-artifacts}'
752 - maven-exec:
753 maven-version: '{maven-version}'
754
755 scm:
756 - gerrit-trigger-scm:
757 refspec: ''
758 choosing-strategy: 'default'
759
760 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700761 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -0800762 build-timeout: '{build-timeout}'
763
764 triggers:
765 # 12 AM UTC
766 - timed: 'H 12 * * *'
767 - gerrit-trigger-release-manually:
768 server: '{server-name}'
769 project: '{project}'
770 branch: '{branch}'
771
772 builders:
773
774 - provide-maven-settings:
775 global-settings-file: 'global-settings'
776 settings-file: '{mvn-settings}'
777
778 - inject:
779 properties-file: version.properties
780
781 - maven-target:
782 maven-version: '{maven-version}'
783 goals: 'versions:set versions:update-child-modules versions:commit'
784 properties:
785 - 'newVersion=${{release_version}}'
786 settings: '{mvn-settings}'
787 settings-type: cfp
788 global-settings: 'global-settings'
789 global-settings-type: cfp
790
791 - docker-login
792
793 - maven-docker-push-daily:
794 maven-version: '{maven-version}'
795 mvn-settings: '{mvn-settings}'
796 pom: '{docker-pom}'
797 # use default as mvn-profile if profile is not needed
798 mvn-profile: '{mvn-profile}'
799
800- job-template:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000801 name: '{project-name}-{stream}-aai-docker-java-daily'
802 project-type: freestyle
803 node: 'ubuntu1604-docker-8c-8g'
804
805 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700806 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000807 build-days-to-keep: '{build-days-to-keep}'
808
809 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700810 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000811 project: '{project}'
812 branch: '{branch}'
813 refspec: 'refs/heads/{branch}'
814 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800815 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800816 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000817
818 scm:
819 - gerrit-trigger-scm:
820 refspec: ''
821 choosing-strategy: 'default'
822
823 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700824 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000825 build-timeout: '{build-timeout}'
826
827 triggers:
828 # 12 AM UTC
829 - timed: 'H 12 * * *'
830 - gerrit-trigger-release-manually:
831 server: '{server-name}'
832 project: '{project}'
833 branch: '{branch}'
834
835 builders:
836
837 - provide-maven-settings:
838 global-settings-file: 'global-settings'
839 settings-file: '{mvn-settings}'
840
841 - docker-login
842
843 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800844 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000845 pom: 'pom.xml'
846 goals: 'clean install -DskipTests'
847 settings: '{mvn-settings}'
848 settings-type: cfp
849 global-settings: 'global-settings'
850 global-settings-type: cfp
851
852 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800853 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000854 pom: '{pom}'
855 goals: '{mvn-goals}'
856 settings: '{mvn-settings}'
857 settings-type: cfp
858 global-settings: 'global-settings'
859 global-settings-type: cfp
860 properties:
861 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -0500862 - docker.pull.registry=nexus3.onap.org:10001
863 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000864
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +0000865 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +0000866
867- job-template:
868 # Job template for Java daily release jobs
869 #
870 # The purpose of this job template is to run
871 # - change version in all POM files to the release version specified
872 # in version.properties. This is done using a script instread of
873 # the mvn version plugin that assumes some specific parent structure.
874 # - runs maven clean deploy sonar
875 #
876 # The POM files are required to use the Maven staging plugin so the deploy
877 # does not deploy directly to the release repo.
878 #
879 # Required Variables:
880 # branch: git branch (eg. stable/lithium or master)
881 name: '{project-name}-{stream}-release-version2-java-daily'
882
883 project-type: freestyle
884 node: '{build-node}'
885 maven-deploy-properties:
886 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700887 - infra-properties:
Carsten Lund2d06a692017-02-23 18:23:07 +0000888 build-days-to-keep: '{build-days-to-keep}'
889
890 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700891 - infra-parameters:
Carsten Lund2d06a692017-02-23 18:23:07 +0000892 project: '{project}'
893 branch: '{branch}'
894 refspec: 'refs/heads/{branch}'
895 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800896 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800897 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +0000898
899 scm:
900 - gerrit-trigger-scm:
901 refspec: ''
902 choosing-strategy: 'default'
903
904 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700905 - infra-wrappers:
Carsten Lund2d06a692017-02-23 18:23:07 +0000906 build-timeout: '{build-timeout}'
907
908 triggers:
909 # 11 AM UTC
910 - timed: 'H 11 * * *'
911 - gerrit-trigger-release-manually:
912 server: '{server-name}'
913 project: '{project}'
914 branch: '{branch}'
915
916 builders:
917 - provide-maven-settings:
918 global-settings-file: 'global-settings'
919 settings-file: '{mvn-settings}'
Andrew Grimbergb7f16152017-02-24 13:13:15 -0800920 - maven-install:
921 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +0000922
923 - inject:
924 properties-file: version.properties
925
926 - shell: !include-raw-escape: include-update-pom-versions.sh
927
928 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800929 maven-version: '{maven-version}'
Andrew Grimberg93274ad2017-02-24 13:50:16 -0800930 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}}'
Carsten Lund2d06a692017-02-23 18:23:07 +0000931 properties:
932 - '{maven-deploy-properties}'
933 settings: '{mvn-settings}'
934 settings-type: cfp
935 global-settings: 'global-settings'
936 global-settings-type: cfp
937
938- job-template:
939 # Job template for Java daily release jobs
940 #
941 # The purpose of this job template is to run
942 # - change version in all POM files to the release version specified
943 # in version.properties. This is done using a script instread of
944 # the mvn version plugin that assumes some specific parent structure.
945 # - runs maven clean deploy sonar
946 #
947 # The POM files are required to use the Maven staging plugin so the deploy
948 # does not deploy directly to the release repo.
949 #
950 # Required Variables:
951 # branch: git branch (eg. stable/lithium or master)
952 # pom: name/location of the pom.xml file relative to the workspace
953 # pattern: ant file-path pattern relative to the workspace used to
954 # trigger the job
955
956 name: '{project-name}-{stream}-{subproject}-release-version2-java-daily'
957
958 project-type: freestyle
959 node: '{build-node}'
960 maven-deploy-properties:
961 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700962 - infra-properties:
Carsten Lund2d06a692017-02-23 18:23:07 +0000963 build-days-to-keep: '{build-days-to-keep}'
964
965 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700966 - infra-parameters:
Carsten Lund2d06a692017-02-23 18:23:07 +0000967 project: '{project}'
968 branch: '{branch}'
969 refspec: 'refs/heads/{branch}'
970 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800971 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800972 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +0000973
974 scm:
975 - gerrit-trigger-scm:
976 refspec: ''
977 choosing-strategy: 'default'
978
979 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700980 - infra-wrappers:
Carsten Lund2d06a692017-02-23 18:23:07 +0000981 build-timeout: '{build-timeout}'
982
983 triggers:
984 # 11 AM UTC
985 - timed: 'H 11 * * *'
986 - gerrit-trigger-release-manually:
987 server: '{server-name}'
988 project: '{project}'
989 branch: '{branch}'
990 files: '{pattern}'
991
992 builders:
993 - provide-maven-settings:
994 global-settings-file: 'global-settings'
995 settings-file: '{mvn-settings}'
Andrew Grimbergb7f16152017-02-24 13:13:15 -0800996 - maven-install:
997 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +0000998
999 - inject:
1000 properties-file: version.properties
1001
1002 - shell: !include-raw-escape: include-update-pom-versions.sh
1003
1004 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001005 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001006 pom: '{pom}'
Andrew Grimberg93274ad2017-02-24 13:50:16 -08001007 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001008 properties:
1009 - '{maven-deploy-properties}'
1010 settings: '{mvn-settings}'
1011 settings-type: cfp
1012 global-settings: 'global-settings'
1013 global-settings-type: cfp
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001014
1015- job-template:
1016 # Template for maven site plugin invocation
1017 #
1018 # It's designed to be triggered when the trigger-job job
1019 # succeeds as there's no need for new documentaiton
1020 # if the build job fails.
1021 #
1022 # Those parameters should be set :
1023 # - site-pom : the pom file that contains the site confiration
1024 # - trigger-job : the name of the project that triggers this job
1025 # upon success. The job name can be
1026 # parameterized.
1027 name: '{project-name}-{stream}-stage-site-java'
1028 project-type: freestyle
Anaël Clossonb8c5fb52017-03-14 15:43:18 +01001029 node: '{build-node}'
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001030
1031 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001032 - infra-properties:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001033 build-days-to-keep: '{build-days-to-keep}'
1034
1035 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001036 - infra-parameters:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001037 project: '{project}'
1038 branch: '{branch}'
1039 refspec: 'refs/heads/{branch}'
1040 artifacts: '{archive-artifacts}'
1041 - maven-exec:
1042 maven-version: '{maven-version}'
1043
1044 scm:
1045 - gerrit-trigger-scm:
1046 refspec: ''
1047 choosing-strategy: 'default'
1048
1049 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001050 - infra-wrappers:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001051 build-timeout: '{build-timeout}'
1052
1053 triggers:
1054 - trigger-on-build-success:
1055 job-name: '{trigger-job}'
1056
1057 builders:
1058 - provide-maven-settings:
1059 global-settings-file: 'global-settings'
1060 settings-file: '{mvn-settings}'
Anaël Closson09166842017-03-15 11:19:40 +01001061 - inject:
1062 properties-file: version.properties
1063 - maven-target:
1064 maven-version: '{maven-version}'
1065 goals: 'versions:set versions:update-child-modules versions:commit'
1066 properties:
1067 - 'newVersion=${{release_version}}'
1068 settings: '{mvn-settings}'
1069 settings-type: cfp
1070 global-settings: 'global-settings'
1071 global-settings-type: cfp
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001072
1073 - maven-target:
1074 maven-version: '{maven-version}'
Anaël Closson03222ed2017-03-13 16:37:09 +01001075 pom: '{site-pom}'
Anaël Clossonb7c8aa32017-03-14 15:50:20 +01001076 goals: 'clean site:site site:stage-deploy'
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001077 settings: '{mvn-settings}'
1078 settings-type: cfp
1079 global-settings: 'global-settings'
1080 global-settings-type: cfp
ig61339fdb9d22017-04-03 17:47:19 +03001081
1082- job-template:
1083 # Job template for Java merge jobs
1084 #
1085 # The purpose of this job template is to run "maven clean deploy" for
1086 # projects using this template.
1087 #
1088 # Required Variables:
1089 # branch: git branch (eg. stable/lithium or master)
1090 name: '{project-name}-{stream}-sdc-merge-java'
1091
1092 project-type: freestyle
1093 node: '{build-node}'
1094
1095 properties:
1096 - infra-properties:
1097 build-days-to-keep: '{build-days-to-keep}'
1098
1099 parameters:
1100 - infra-parameters:
1101 project: '{project}'
1102 branch: '{branch}'
1103 refspec: 'refs/heads/{branch}'
1104 artifacts: '{archive-artifacts}'
1105 - maven-exec:
1106 maven-version: '{maven-version}'
1107
1108 scm:
1109 - gerrit-trigger-scm:
1110 refspec: ''
1111 choosing-strategy: 'default'
1112
1113 wrappers:
1114 - infra-wrappers:
1115 build-timeout: '{build-timeout}'
1116
1117 triggers:
1118 - gerrit-trigger-patch-merged:
1119 server: '{server-name}'
1120 project: '{project}'
1121 branch: '{branch}'
1122 files: '**'
1123
1124 builders:
1125 - provide-maven-settings:
1126 global-settings-file: 'global-settings'
1127 settings-file: '{mvn-settings}'
1128 mvn-profile: '{mvn-profile}'
1129
1130 - docker-login
1131
1132 - maven-target:
1133 maven-version: '{maven-version}'
1134 # yamllint disable rule:line-length
1135 goals: 'clean deploy'
1136 # yamllint enable
1137 settings: '{mvn-settings}'
1138 settings-type: cfp
1139 global-settings: 'global-settings'
1140 global-settings-type: cfp