blob: 69f422f613f497d4e5a4a0d5a0bfb2b2956dab25 [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
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
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 Grimberg4ecb8f22017-04-06 13:57:46 -0700121 publishers:
122 - infra-shiplogs:
123 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 Grimberg4ecb8f22017-04-06 13:57:46 -0700185 publishers:
186 - infra-shiplogs:
187 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
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700247 publishers:
248 - infra-shiplogs:
249 maven-version: '{maven-version}'
250
JulienBe5641aa02017-02-17 01:08:38 -0800251- job-template:
252 # Job template for Java daily release jobs
253 #
254 # The purpose of this job template is to run "maven version && maven clean
255 # deploy" for projects using this template.
256 #
257 # Required Variables:
258 # branch: git branch (eg. stable/lithium or master)
259 name: '{project-name}-{stream}-release-version-java-daily'
260
261 project-type: freestyle
262 node: '{build-node}'
263 maven-deploy-properties:
264 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700265 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800266 build-days-to-keep: '{build-days-to-keep}'
267
268 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700269 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800270 project: '{project}'
271 branch: '{branch}'
272 refspec: 'refs/heads/{branch}'
273 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800274 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800275 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800276
277 scm:
278 - gerrit-trigger-scm:
279 refspec: ''
280 choosing-strategy: 'default'
281
282 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700283 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800284 build-timeout: '{build-timeout}'
285
286 triggers:
287 # 11 AM UTC
288 - timed: 'H 11 * * *'
289 - gerrit-trigger-release-manually:
290 server: '{server-name}'
291 project: '{project}'
292 branch: '{branch}'
293
294 builders:
295 - provide-maven-settings:
296 global-settings-file: 'global-settings'
297 settings-file: '{mvn-settings}'
298
JulienBe2f4ee072017-02-01 21:42:32 +0100299 - inject:
300 properties-file: version.properties
301 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800302 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100303 goals: 'versions:set versions:update-child-modules versions:commit'
304 properties:
305 - 'newVersion=${{release_version}}'
306 settings: '{mvn-settings}'
307 settings-type: cfp
308 global-settings: 'global-settings'
309 global-settings-type: cfp
310
311 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800312 maven-version: '{maven-version}'
Andrew Grimberg93274ad2017-02-24 13:50:16 -0800313 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}}'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800314 properties:
315 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100316 settings: '{mvn-settings}'
317 settings-type: cfp
318 global-settings: 'global-settings'
319 global-settings-type: cfp
320
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700321 publishers:
322 - infra-shiplogs:
323 maven-version: '{maven-version}'
324
JulienBe2f4ee072017-02-01 21:42:32 +0100325- job-template:
Carsten Lundda8b6972017-02-15 23:59:25 +0000326 # Job template for Java daily release jobs with POM not at the root
327 #
328 # The purpose of this job template is to run "maven version && maven clean
329 # deploy" for projects using this template.
330 #
331 # Required Variables:
332 # branch: git branch (eg. stable/lithium or master)
333 # pom: name/location of the pom.xml file relative to the workspace
334
335
336 name: '{project-name}-{stream}-{subproject}-release-java-daily'
337
338 project-type: freestyle
339 node: '{build-node}'
340 maven-deploy-properties:
341 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700342 - infra-properties:
Carsten Lundda8b6972017-02-15 23:59:25 +0000343 build-days-to-keep: '{build-days-to-keep}'
344
345 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700346 - infra-parameters:
Carsten Lundda8b6972017-02-15 23:59:25 +0000347 project: '{project}'
348 branch: '{branch}'
349 refspec: 'refs/heads/{branch}'
350 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800351 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800352 maven-version: '{maven-version}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000353
354 scm:
355 - gerrit-trigger-scm:
356 refspec: ''
357 choosing-strategy: 'default'
358
359 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700360 - infra-wrappers:
Carsten Lundda8b6972017-02-15 23:59:25 +0000361 build-timeout: '{build-timeout}'
362
363 triggers:
364 # 11 AM UTC
365 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800366 - gerrit-trigger-release-manually:
367 server: '{server-name}'
368 project: '{project}'
369 branch: '{branch}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000370
371 builders:
372 - provide-maven-settings:
373 global-settings-file: 'global-settings'
374 settings-file: '{mvn-settings}'
375
Carsten Lundda8b6972017-02-15 23:59:25 +0000376 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800377 maven-version: '{maven-version}'
Carsten Lund63cd3b82017-02-18 18:19:22 +0000378 pom: '{pom}'
Andrew Grimberg93274ad2017-02-24 13:50:16 -0800379 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000380 properties:
381 - '{maven-deploy-properties}'
382 settings: '{mvn-settings}'
383 settings-type: cfp
384 global-settings: 'global-settings'
385 global-settings-type: cfp
386
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700387 publishers:
388 - infra-shiplogs:
389 maven-version: '{maven-version}'
390
Carsten Lundda8b6972017-02-15 23:59:25 +0000391- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800392 # Job template for Java merge jobs
393 #
394 # The purpose of this job template is to run "maven clean deploy" for
395 # projects using this template.
396 #
397 # Required Variables:
398 # branch: git branch (eg. stable/lithium or master)
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800399 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800400
401 project-type: freestyle
402 node: '{build-node}'
403
404 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700405 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800406 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800407
408 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700409 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800410 project: '{project}'
411 branch: '{branch}'
412 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800413 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800414 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800415 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800416
417 scm:
418 - gerrit-trigger-scm:
419 refspec: ''
420 choosing-strategy: 'default'
421
422 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700423 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800424 build-timeout: '{build-timeout}'
425
426 triggers:
427 - gerrit-trigger-patch-merged:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800428 server: '{server-name}'
429 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800430 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800431 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800432
433 builders:
434 - provide-maven-settings:
435 global-settings-file: 'global-settings'
436 settings-file: '{mvn-settings}'
437 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800438 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800439 # yamllint disable rule:line-length
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800440 goals: 'clean deploy'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800441 # yamllint enable
442 settings: '{mvn-settings}'
443 settings-type: cfp
444 global-settings: 'global-settings'
445 global-settings-type: cfp
446
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700447 publishers:
448 - infra-shiplogs:
449 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800450
451- job-template:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800452 # Job template for Java merge jobs that should also be triggered by upstream
453 # merges
454 #
455 # Required Variables:
456 # stream: release stream
457 # branch: git branch
458 # dependencies: fully qualified upstream job name to trigger on
459 # this may be ''
460 name: '{project-name}-{stream}-downstream-merge-java'
461
462 project-type: freestyle
463 node: '{build-node}'
464
465 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700466 - infra-properties:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800467 build-days-to-keep: '{build-days-to-keep}'
468
469 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700470 - infra-parameters:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800471 project: '{project}'
472 branch: '{branch}'
473 refspec: 'refs/heads/{branch}'
474 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800475 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800476 maven-version: '{maven-version}'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800477
478 scm:
479 - gerrit-trigger-scm:
480 refspec: ''
481 choosing-strategy: 'default'
482
483 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700484 - infra-wrappers:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800485 build-timeout: '{build-timeout}'
486
487 triggers:
488 - reverse:
489 jobs: '{dependencies}'
490 result: 'success'
491 - gerrit-trigger-patch-merged:
492 server: '{server-name}'
493 project: '{project}'
494 branch: '{branch}'
495 files: '**'
496
497 builders:
498 - provide-maven-settings:
499 global-settings-file: 'global-settings'
500 settings-file: '{mvn-settings}'
501 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800502 maven-version: '{maven-version}'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800503 # yamllint disable rule:line-length
504 goals: 'clean deploy'
505 # yamllint enable
506 settings: '{mvn-settings}'
507 settings-type: cfp
508 global-settings: 'global-settings'
509 global-settings-type: cfp
510
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700511 publishers:
512 - infra-shiplogs:
513 maven-version: '{maven-version}'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800514
515- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800516 # Job template for Java merge jobs with POM not at the root
517 #
518 # The purpose of this job template is to run "maven clean deploy" for
519 # projects using this template.
520 #
521 # Required Variables:
522 # branch: git branch (eg. stable/lithium or master)
523 # pom: name/location of the pom.xml file relative to the workspace
524 # pattern: ant file-path pattern relative to the workspace used to
525 # trigger the job
526
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800527 name: '{project-name}-{stream}-{subproject}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800528
529 project-type: freestyle
530 node: '{build-node}'
531
532 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700533 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800534 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800535
536 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700537 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800538 project: '{project}'
539 branch: '{branch}'
540 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800541 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800542 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800543 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800544
545 scm:
546 - gerrit-trigger-scm:
547 refspec: ''
548 choosing-strategy: 'default'
549
550 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700551 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800552 build-timeout: '{build-timeout}'
553
554 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800555 - gerrit-trigger-patch-merged:
556 server: '{server-name}'
557 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800558 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800559 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800560
561 builders:
562 - provide-maven-settings:
563 global-settings-file: 'global-settings'
564 settings-file: '{mvn-settings}'
565 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800566 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800567 pom: '{pom}'
568 # yamllint disable rule:line-length
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800569 goals: 'clean deploy'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800570 # yamllint enable
571 settings: '{mvn-settings}'
572 settings-type: cfp
573 global-settings: 'global-settings'
574 global-settings-type: cfp
575
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700576 publishers:
577 - infra-shiplogs:
578 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100579
580- job-template:
581 name: '{project-name}-{stream}-docker-java-daily'
582 project-type: freestyle
Andrew Grimberg2137b1d2017-02-15 07:24:53 -0800583 node: 'ubuntu1604-docker-8c-8g'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100584
585 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700586 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100587 build-days-to-keep: '{build-days-to-keep}'
588
589 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700590 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100591 project: '{project}'
592 branch: '{branch}'
593 refspec: 'refs/heads/{branch}'
594 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800595 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800596 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100597
598 scm:
599 - gerrit-trigger-scm:
600 refspec: ''
601 choosing-strategy: 'default'
602
Anaël Clossonabbafb52017-02-09 17:55:10 +0100603 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700604 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100605 build-timeout: '{build-timeout}'
606
607 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800608 # 12 AM UTC
Anaël Clossonabbafb52017-02-09 17:55:10 +0100609 - timed: 'H 12 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800610 - gerrit-trigger-release-manually:
611 server: '{server-name}'
612 project: '{project}'
613 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100614
615 builders:
Anaël Closson63e090e2017-02-15 14:50:45 +0100616
Anaël Clossonabbafb52017-02-09 17:55:10 +0100617 - provide-maven-settings:
618 global-settings-file: 'global-settings'
619 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100620
Anaël Closson63e090e2017-02-15 14:50:45 +0100621 - docker-login
622
Anaël Clossonabbafb52017-02-09 17:55:10 +0100623 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800624 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100625 mvn-settings: '{mvn-settings}'
626 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100627 # use default as mvn-profile if profile is not needed
628 mvn-profile: '{mvn-profile}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500629
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700630 publishers:
631 - infra-shiplogs:
632 maven-version: '{maven-version}'
633
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500634- job-template:
635 name: '{project-name}-{stream}-docker-java-shell-daily'
636 project-type: freestyle
637 node: 'ubuntu1604-docker-8c-8g'
638
639 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700640 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500641 build-days-to-keep: '{build-days-to-keep}'
642
643 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700644 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500645 project: '{project}'
646 branch: '{branch}'
647 refspec: 'refs/heads/{branch}'
648 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800649 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800650 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500651
652 scm:
653 - gerrit-trigger-scm:
654 refspec: ''
655 choosing-strategy: 'default'
656
657 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700658 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500659 build-timeout: '{build-timeout}'
660
661 triggers:
662 # 12 AM UTC
663 - timed: 'H 12 * * *'
664 - gerrit-trigger-release-manually:
665 server: '{server-name}'
666 project: '{project}'
667 branch: '{branch}'
668
669 builders:
670
671 - provide-maven-settings:
672 global-settings-file: 'global-settings'
673 settings-file: '{mvn-settings}'
674
675 - docker-login
676
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500677 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800678 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500679 goals: '{mvn-goals}'
680 settings: '{mvn-settings}'
681 settings-type: cfp
682 global-settings: 'global-settings'
683 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500684
685 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000686
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700687 publishers:
688 - infra-shiplogs:
689 maven-version: '{maven-version}'
690
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000691- job-template:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400692 name: '{project-name}-{stream}-docker-java-version-shell-daily'
693 project-type: freestyle
694 node: 'ubuntu1604-docker-8c-8g'
695
696 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700697 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400698 build-days-to-keep: '{build-days-to-keep}'
699
700 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700701 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400702 project: '{project}'
703 branch: '{branch}'
704 refspec: 'refs/heads/{branch}'
705 artifacts: '{archive-artifacts}'
706 - maven-exec:
707 maven-version: '{maven-version}'
708
709 scm:
710 - gerrit-trigger-scm:
711 refspec: ''
712 choosing-strategy: 'default'
713
714 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700715 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400716 build-timeout: '{build-timeout}'
717
718 triggers:
719 # 12 AM UTC
720 - timed: 'H 12 * * *'
721 - gerrit-trigger-release-manually:
722 server: '{server-name}'
723 project: '{project}'
724 branch: '{branch}'
725
726 builders:
727
728 - provide-maven-settings:
729 global-settings-file: 'global-settings'
730 settings-file: '{mvn-settings}'
731
732 - inject:
733 properties-file: version.properties
734
735 - maven-target:
736 maven-version: '{maven-version}'
737 goals: 'versions:set versions:update-child-modules versions:commit'
738 properties:
739 - 'newVersion=${{release_version}}'
740 settings: '{mvn-settings}'
741 settings-type: cfp
742 global-settings: 'global-settings'
743 global-settings-type: cfp
744
745 - docker-login
746
747 - maven-target:
748 maven-version: '{maven-version}'
749 goals: '{mvn-goals}'
750 settings: '{mvn-settings}'
751 settings-type: cfp
752 global-settings: 'global-settings'
753 global-settings-type: cfp
754
755 - shell: '{script}'
756
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700757 publishers:
758 - infra-shiplogs:
759 maven-version: '{maven-version}'
760
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400761- job-template:
Patrick Brady39f388a2017-03-09 11:26:59 -0800762 name: '{project-name}-{stream}-docker-version-java-daily'
763 project-type: freestyle
764 node: 'ubuntu1604-docker-8c-8g'
765
766 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700767 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -0800768 build-days-to-keep: '{build-days-to-keep}'
769
770 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700771 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -0800772 project: '{project}'
773 branch: '{branch}'
774 refspec: 'refs/heads/{branch}'
775 artifacts: '{archive-artifacts}'
776 - maven-exec:
777 maven-version: '{maven-version}'
778
779 scm:
780 - gerrit-trigger-scm:
781 refspec: ''
782 choosing-strategy: 'default'
783
784 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700785 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -0800786 build-timeout: '{build-timeout}'
787
788 triggers:
789 # 12 AM UTC
790 - timed: 'H 12 * * *'
791 - gerrit-trigger-release-manually:
792 server: '{server-name}'
793 project: '{project}'
794 branch: '{branch}'
795
796 builders:
797
798 - provide-maven-settings:
799 global-settings-file: 'global-settings'
800 settings-file: '{mvn-settings}'
801
802 - inject:
803 properties-file: version.properties
804
805 - maven-target:
806 maven-version: '{maven-version}'
807 goals: 'versions:set versions:update-child-modules versions:commit'
808 properties:
809 - 'newVersion=${{release_version}}'
810 settings: '{mvn-settings}'
811 settings-type: cfp
812 global-settings: 'global-settings'
813 global-settings-type: cfp
814
815 - docker-login
816
817 - maven-docker-push-daily:
818 maven-version: '{maven-version}'
819 mvn-settings: '{mvn-settings}'
820 pom: '{docker-pom}'
821 # use default as mvn-profile if profile is not needed
822 mvn-profile: '{mvn-profile}'
823
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700824 publishers:
825 - infra-shiplogs:
826 maven-version: '{maven-version}'
827
Patrick Brady39f388a2017-03-09 11:26:59 -0800828- job-template:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000829 name: '{project-name}-{stream}-aai-docker-java-daily'
830 project-type: freestyle
831 node: 'ubuntu1604-docker-8c-8g'
832
833 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700834 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000835 build-days-to-keep: '{build-days-to-keep}'
836
837 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700838 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000839 project: '{project}'
840 branch: '{branch}'
841 refspec: 'refs/heads/{branch}'
842 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800843 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800844 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000845
846 scm:
847 - gerrit-trigger-scm:
848 refspec: ''
849 choosing-strategy: 'default'
850
851 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700852 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000853 build-timeout: '{build-timeout}'
854
855 triggers:
856 # 12 AM UTC
857 - timed: 'H 12 * * *'
858 - gerrit-trigger-release-manually:
859 server: '{server-name}'
860 project: '{project}'
861 branch: '{branch}'
862
863 builders:
864
865 - provide-maven-settings:
866 global-settings-file: 'global-settings'
867 settings-file: '{mvn-settings}'
868
869 - docker-login
870
871 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800872 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000873 pom: 'pom.xml'
874 goals: 'clean install -DskipTests'
875 settings: '{mvn-settings}'
876 settings-type: cfp
877 global-settings: 'global-settings'
878 global-settings-type: cfp
879
880 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800881 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000882 pom: '{pom}'
883 goals: '{mvn-goals}'
884 settings: '{mvn-settings}'
885 settings-type: cfp
886 global-settings: 'global-settings'
887 global-settings-type: cfp
888 properties:
889 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -0500890 - docker.pull.registry=nexus3.onap.org:10001
891 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000892
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +0000893 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +0000894
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700895 publishers:
896 - infra-shiplogs:
897 maven-version: '{maven-version}'
898
Carsten Lund2d06a692017-02-23 18:23:07 +0000899- job-template:
900 # Job template for Java daily release jobs
901 #
902 # The purpose of this job template is to run
903 # - change version in all POM files to the release version specified
904 # in version.properties. This is done using a script instread of
905 # the mvn version plugin that assumes some specific parent structure.
906 # - runs maven clean deploy sonar
907 #
908 # The POM files are required to use the Maven staging plugin so the deploy
909 # does not deploy directly to the release repo.
910 #
911 # Required Variables:
912 # branch: git branch (eg. stable/lithium or master)
913 name: '{project-name}-{stream}-release-version2-java-daily'
914
915 project-type: freestyle
916 node: '{build-node}'
917 maven-deploy-properties:
918 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700919 - infra-properties:
Carsten Lund2d06a692017-02-23 18:23:07 +0000920 build-days-to-keep: '{build-days-to-keep}'
921
922 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700923 - infra-parameters:
Carsten Lund2d06a692017-02-23 18:23:07 +0000924 project: '{project}'
925 branch: '{branch}'
926 refspec: 'refs/heads/{branch}'
927 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800928 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800929 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +0000930
931 scm:
932 - gerrit-trigger-scm:
933 refspec: ''
934 choosing-strategy: 'default'
935
936 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700937 - infra-wrappers:
Carsten Lund2d06a692017-02-23 18:23:07 +0000938 build-timeout: '{build-timeout}'
939
940 triggers:
941 # 11 AM UTC
942 - timed: 'H 11 * * *'
943 - gerrit-trigger-release-manually:
944 server: '{server-name}'
945 project: '{project}'
946 branch: '{branch}'
947
948 builders:
949 - provide-maven-settings:
950 global-settings-file: 'global-settings'
951 settings-file: '{mvn-settings}'
Andrew Grimbergb7f16152017-02-24 13:13:15 -0800952 - maven-install:
953 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +0000954
955 - inject:
956 properties-file: version.properties
957
958 - shell: !include-raw-escape: include-update-pom-versions.sh
959
960 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800961 maven-version: '{maven-version}'
Carsten Lund6a9a2592017-04-06 15:09:03 +0000962 goals: 'clean deploy sonar:sonar site:site site:stage-deploy -Dsonar.host.url=${{SONAR}}'
Carsten Lund2d06a692017-02-23 18:23:07 +0000963 properties:
964 - '{maven-deploy-properties}'
965 settings: '{mvn-settings}'
966 settings-type: cfp
967 global-settings: 'global-settings'
968 global-settings-type: cfp
969
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700970 publishers:
971 - infra-shiplogs:
972 maven-version: '{maven-version}'
973
Carsten Lund2d06a692017-02-23 18:23:07 +0000974- job-template:
975 # Job template for Java daily release jobs
976 #
977 # The purpose of this job template is to run
978 # - change version in all POM files to the release version specified
979 # in version.properties. This is done using a script instread of
980 # the mvn version plugin that assumes some specific parent structure.
981 # - runs maven clean deploy sonar
982 #
983 # The POM files are required to use the Maven staging plugin so the deploy
984 # does not deploy directly to the release repo.
985 #
986 # Required Variables:
987 # branch: git branch (eg. stable/lithium or master)
988 # pom: name/location of the pom.xml file relative to the workspace
989 # pattern: ant file-path pattern relative to the workspace used to
990 # trigger the job
991
992 name: '{project-name}-{stream}-{subproject}-release-version2-java-daily'
993
994 project-type: freestyle
995 node: '{build-node}'
996 maven-deploy-properties:
997 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700998 - infra-properties:
Carsten Lund2d06a692017-02-23 18:23:07 +0000999 build-days-to-keep: '{build-days-to-keep}'
1000
1001 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001002 - infra-parameters:
Carsten Lund2d06a692017-02-23 18:23:07 +00001003 project: '{project}'
1004 branch: '{branch}'
1005 refspec: 'refs/heads/{branch}'
1006 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001007 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001008 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001009
1010 scm:
1011 - gerrit-trigger-scm:
1012 refspec: ''
1013 choosing-strategy: 'default'
1014
1015 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001016 - infra-wrappers:
Carsten Lund2d06a692017-02-23 18:23:07 +00001017 build-timeout: '{build-timeout}'
1018
1019 triggers:
1020 # 11 AM UTC
1021 - timed: 'H 11 * * *'
1022 - gerrit-trigger-release-manually:
1023 server: '{server-name}'
1024 project: '{project}'
1025 branch: '{branch}'
1026 files: '{pattern}'
1027
1028 builders:
1029 - provide-maven-settings:
1030 global-settings-file: 'global-settings'
1031 settings-file: '{mvn-settings}'
Andrew Grimbergb7f16152017-02-24 13:13:15 -08001032 - maven-install:
1033 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001034
1035 - inject:
1036 properties-file: version.properties
1037
1038 - shell: !include-raw-escape: include-update-pom-versions.sh
1039
1040 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001041 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001042 pom: '{pom}'
Carsten Lund6a9a2592017-04-06 15:09:03 +00001043 goals: 'clean deploy sonar:sonar site:site site:stage-deploy -Dsonar.host.url=${{SONAR}}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001044 properties:
1045 - '{maven-deploy-properties}'
1046 settings: '{mvn-settings}'
1047 settings-type: cfp
1048 global-settings: 'global-settings'
1049 global-settings-type: cfp
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001050
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001051 publishers:
1052 - infra-shiplogs:
1053 maven-version: '{maven-version}'
1054
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001055- job-template:
1056 # Template for maven site plugin invocation
1057 #
1058 # It's designed to be triggered when the trigger-job job
1059 # succeeds as there's no need for new documentaiton
1060 # if the build job fails.
1061 #
1062 # Those parameters should be set :
1063 # - site-pom : the pom file that contains the site confiration
1064 # - trigger-job : the name of the project that triggers this job
1065 # upon success. The job name can be
1066 # parameterized.
1067 name: '{project-name}-{stream}-stage-site-java'
1068 project-type: freestyle
Anaël Clossonb8c5fb52017-03-14 15:43:18 +01001069 node: '{build-node}'
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001070
1071 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001072 - infra-properties:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001073 build-days-to-keep: '{build-days-to-keep}'
1074
1075 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001076 - infra-parameters:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001077 project: '{project}'
1078 branch: '{branch}'
1079 refspec: 'refs/heads/{branch}'
1080 artifacts: '{archive-artifacts}'
1081 - maven-exec:
1082 maven-version: '{maven-version}'
1083
1084 scm:
1085 - gerrit-trigger-scm:
1086 refspec: ''
1087 choosing-strategy: 'default'
1088
1089 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001090 - infra-wrappers:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001091 build-timeout: '{build-timeout}'
1092
1093 triggers:
1094 - trigger-on-build-success:
1095 job-name: '{trigger-job}'
1096
1097 builders:
1098 - provide-maven-settings:
1099 global-settings-file: 'global-settings'
1100 settings-file: '{mvn-settings}'
Anaël Closson09166842017-03-15 11:19:40 +01001101 - inject:
1102 properties-file: version.properties
1103 - maven-target:
1104 maven-version: '{maven-version}'
1105 goals: 'versions:set versions:update-child-modules versions:commit'
1106 properties:
1107 - 'newVersion=${{release_version}}'
1108 settings: '{mvn-settings}'
1109 settings-type: cfp
1110 global-settings: 'global-settings'
1111 global-settings-type: cfp
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001112
1113 - maven-target:
1114 maven-version: '{maven-version}'
Anaël Closson03222ed2017-03-13 16:37:09 +01001115 pom: '{site-pom}'
Anaël Clossonb7c8aa32017-03-14 15:50:20 +01001116 goals: 'clean site:site site:stage-deploy'
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001117 settings: '{mvn-settings}'
1118 settings-type: cfp
1119 global-settings: 'global-settings'
1120 global-settings-type: cfp
ig61339fdb9d22017-04-03 17:47:19 +03001121
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001122 publishers:
1123 - infra-shiplogs:
1124 maven-version: '{maven-version}'
1125
ig61339fdb9d22017-04-03 17:47:19 +03001126- job-template:
1127 # Job template for Java merge jobs
1128 #
1129 # The purpose of this job template is to run "maven clean deploy" for
1130 # projects using this template.
1131 #
1132 # Required Variables:
1133 # branch: git branch (eg. stable/lithium or master)
1134 name: '{project-name}-{stream}-sdc-merge-java'
1135
1136 project-type: freestyle
ig6133cb3f8232017-04-05 14:22:42 +03001137 node: 'ubuntu1604-docker-8c-8g'
ig61339fdb9d22017-04-03 17:47:19 +03001138
1139 properties:
1140 - infra-properties:
1141 build-days-to-keep: '{build-days-to-keep}'
1142
1143 parameters:
1144 - infra-parameters:
1145 project: '{project}'
1146 branch: '{branch}'
1147 refspec: 'refs/heads/{branch}'
1148 artifacts: '{archive-artifacts}'
1149 - maven-exec:
1150 maven-version: '{maven-version}'
1151
1152 scm:
1153 - gerrit-trigger-scm:
1154 refspec: ''
1155 choosing-strategy: 'default'
1156
1157 wrappers:
1158 - infra-wrappers:
1159 build-timeout: '{build-timeout}'
1160
1161 triggers:
1162 - gerrit-trigger-patch-merged:
1163 server: '{server-name}'
1164 project: '{project}'
1165 branch: '{branch}'
1166 files: '**'
1167
1168 builders:
1169 - provide-maven-settings:
1170 global-settings-file: 'global-settings'
1171 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001172
1173 - docker-login
1174
ig6133cb3f8232017-04-05 14:22:42 +03001175 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001176 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001177 mvn-settings: '{mvn-settings}'
1178 pom: '{docker-pom}'
1179 # use default as mvn-profile if profile is not needed
1180 mvn-profile: '{mvn-profile}'
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001181
1182 publishers:
1183 - infra-shiplogs:
1184 maven-version: '{maven-version}'