blob: 52e0c3a57b7f837a524ce777c44954d96912f7a0 [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}'
Andrew Grimberge55b6222017-05-03 16:19:28 -040052 goals: 'clean install -DskipTests=true -B
53 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050054 settings: '{mvn-settings}'
55 settings-type: cfp
56 global-settings: 'global-settings'
57 global-settings-type: cfp
58 maven-opts:
59 - maven.test.skip=true
60
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070061 publishers:
62 - infra-shiplogs:
63 maven-version: '{maven-version}'
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050064
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050065- 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 Grimberge55b6222017-05-03 16:19:28 -0400115 goals: 'clean install -B
116 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800117 settings: '{mvn-settings}'
118 settings-type: cfp
119 global-settings: 'global-settings'
120 global-settings-type: cfp
121
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700122 publishers:
123 - infra-shiplogs:
124 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800125
126- job-template:
JulienBeef823f12017-04-12 04:52:40 -0700127 # Job template for Java verify jobs that takes a maven template
128 #
129 # The purpose of this job template is to run "maven clean install -P {x}"
130 # for projects using this template.
131 #
132 # Required Variables:
133 # branch: git branch (eg. stable/lithium or master)
134
135 name: '{project-name}-{stream}-verify-profile-java'
136
137 project-type: freestyle
138 concurrent: true
139 node: '{build-node}'
140
141 properties:
142 - infra-properties:
143 build-days-to-keep: '{build-days-to-keep}'
144
145 parameters:
146 - infra-parameters:
147 project: '{project}'
148 branch: '{branch}'
149 refspec: 'refs/heads/{branch}'
150 artifacts: '{archive-artifacts}'
151 - maven-exec:
152 maven-version: '{maven-version}'
153
154 scm:
155 - gerrit-trigger-scm:
156 refspec: '$GERRIT_REFSPEC'
157 choosing-strategy: 'gerrit'
158
159 wrappers:
160 - infra-wrappers:
161 build-timeout: '{build-timeout}'
162
163 triggers:
164 - gerrit-trigger-patch-submitted:
165 server: '{server-name}'
166 project: '{project}'
167 branch: '{branch}'
168 files: '**'
169
170 builders:
171 - provide-maven-settings:
172 global-settings-file: 'global-settings'
173 settings-file: '{mvn-settings}'
174 - maven-target:
175 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400176 goals: 'clean install -P {mvn-profile} -B
177 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBeef823f12017-04-12 04:52:40 -0700178 settings: '{mvn-settings}'
179 settings-type: cfp
180 global-settings: 'global-settings'
181 global-settings-type: cfp
182
183 publishers:
184 - infra-shiplogs:
185 maven-version: '{maven-version}'
186
187- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800188 # Job template for Java verify jobs with POM not at the root
189 #
190 # The purpose of this job template is to run "maven clean install" for
191 # projects using this template.
192 #
193 # Required Variables:
194 # branch: git branch (eg. stable/lithium or master)
195 # pom: name/location of the pom.xml file relative to the workspace
196 # pattern: ant file-path pattern relative to the workspace used to
197 # trigger the job
198
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800199 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800200
201 project-type: freestyle
202 concurrent: true
203 node: '{build-node}'
204
205 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700206 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800207 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800208
209 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700210 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800211 project: '{project}'
212 branch: '{branch}'
213 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800214 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800215 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800216 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800217
218 scm:
219 - gerrit-trigger-scm:
220 refspec: '$GERRIT_REFSPEC'
221 choosing-strategy: 'gerrit'
222
223 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700224 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800225 build-timeout: '{build-timeout}'
226
227 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800228 - gerrit-trigger-patch-submitted:
229 server: '{server-name}'
230 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800231 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800232 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800233
234 builders:
235 - provide-maven-settings:
236 global-settings-file: 'global-settings'
237 settings-file: '{mvn-settings}'
238 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800239 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800240 pom: '{pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400241 goals: 'clean install -B
242 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800243 settings: '{mvn-settings}'
244 settings-type: cfp
245 global-settings: 'global-settings'
246 global-settings-type: cfp
247
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700248 publishers:
249 - infra-shiplogs:
250 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800251
252- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100253 # Job template for Java daily release jobs
254 #
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800255 # The purpose of this job template is to run "maven version && maven clean
256 # deploy" for projects using this template.
JulienBe2f4ee072017-02-01 21:42:32 +0100257 #
258 # Required Variables:
259 # branch: git branch (eg. stable/lithium or master)
260 name: '{project-name}-{stream}-release-java-daily'
261
262 project-type: freestyle
263 node: '{build-node}'
264 maven-deploy-properties:
265 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700266 - infra-properties:
JulienBe2f4ee072017-02-01 21:42:32 +0100267 build-days-to-keep: '{build-days-to-keep}'
268
269 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700270 - infra-parameters:
JulienBe2f4ee072017-02-01 21:42:32 +0100271 project: '{project}'
272 branch: '{branch}'
273 refspec: 'refs/heads/{branch}'
274 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800275 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800276 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100277
278 scm:
279 - gerrit-trigger-scm:
280 refspec: ''
281 choosing-strategy: 'default'
282
283 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700284 - infra-wrappers:
JulienBe2f4ee072017-02-01 21:42:32 +0100285 build-timeout: '{build-timeout}'
286
287 triggers:
288 # 11 AM UTC
289 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800290 - gerrit-trigger-release-manually:
291 server: '{server-name}'
292 project: '{project}'
293 branch: '{branch}'
JulienBe2f4ee072017-02-01 21:42:32 +0100294
295 builders:
296 - provide-maven-settings:
297 global-settings-file: 'global-settings'
298 settings-file: '{mvn-settings}'
299
JulienBe5641aa02017-02-17 01:08:38 -0800300 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800301 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400302 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}} -B
303 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBe5641aa02017-02-17 01:08:38 -0800304 properties:
305 - '{maven-deploy-properties}'
306 settings: '{mvn-settings}'
307 settings-type: cfp
308 global-settings: 'global-settings'
309 global-settings-type: cfp
310
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700311 publishers:
312 - infra-shiplogs:
313 maven-version: '{maven-version}'
314
JulienBe5641aa02017-02-17 01:08:38 -0800315- job-template:
316 # Job template for Java daily release jobs
317 #
318 # The purpose of this job template is to run "maven version && maven clean
319 # deploy" for projects using this template.
320 #
321 # Required Variables:
322 # branch: git branch (eg. stable/lithium or master)
323 name: '{project-name}-{stream}-release-version-java-daily'
324
325 project-type: freestyle
326 node: '{build-node}'
327 maven-deploy-properties:
328 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700329 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800330 build-days-to-keep: '{build-days-to-keep}'
331
332 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700333 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800334 project: '{project}'
335 branch: '{branch}'
336 refspec: 'refs/heads/{branch}'
337 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800338 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800339 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800340
341 scm:
342 - gerrit-trigger-scm:
343 refspec: ''
344 choosing-strategy: 'default'
345
346 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700347 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800348 build-timeout: '{build-timeout}'
349
350 triggers:
351 # 11 AM UTC
352 - timed: 'H 11 * * *'
353 - gerrit-trigger-release-manually:
354 server: '{server-name}'
355 project: '{project}'
356 branch: '{branch}'
357
358 builders:
359 - provide-maven-settings:
360 global-settings-file: 'global-settings'
361 settings-file: '{mvn-settings}'
362
JulienBe2f4ee072017-02-01 21:42:32 +0100363 - inject:
364 properties-file: version.properties
365 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800366 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100367 goals: 'versions:set versions:update-child-modules versions:commit'
368 properties:
369 - 'newVersion=${{release_version}}'
370 settings: '{mvn-settings}'
371 settings-type: cfp
372 global-settings: 'global-settings'
373 global-settings-type: cfp
374
375 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800376 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400377 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}} -B
378 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800379 properties:
380 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100381 settings: '{mvn-settings}'
382 settings-type: cfp
383 global-settings: 'global-settings'
384 global-settings-type: cfp
385
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700386 publishers:
387 - infra-shiplogs:
388 maven-version: '{maven-version}'
389
JulienBe2f4ee072017-02-01 21:42:32 +0100390- job-template:
Carsten Lundda8b6972017-02-15 23:59:25 +0000391 # Job template for Java daily release jobs with POM not at the root
392 #
393 # The purpose of this job template is to run "maven version && maven clean
394 # deploy" for projects using this template.
395 #
396 # Required Variables:
397 # branch: git branch (eg. stable/lithium or master)
398 # pom: name/location of the pom.xml file relative to the workspace
399
400
401 name: '{project-name}-{stream}-{subproject}-release-java-daily'
402
403 project-type: freestyle
404 node: '{build-node}'
405 maven-deploy-properties:
406 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700407 - infra-properties:
Carsten Lundda8b6972017-02-15 23:59:25 +0000408 build-days-to-keep: '{build-days-to-keep}'
409
410 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700411 - infra-parameters:
Carsten Lundda8b6972017-02-15 23:59:25 +0000412 project: '{project}'
413 branch: '{branch}'
414 refspec: 'refs/heads/{branch}'
415 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800416 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800417 maven-version: '{maven-version}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000418
419 scm:
420 - gerrit-trigger-scm:
421 refspec: ''
422 choosing-strategy: 'default'
423
424 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700425 - infra-wrappers:
Carsten Lundda8b6972017-02-15 23:59:25 +0000426 build-timeout: '{build-timeout}'
427
428 triggers:
429 # 11 AM UTC
430 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800431 - gerrit-trigger-release-manually:
432 server: '{server-name}'
433 project: '{project}'
434 branch: '{branch}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000435
436 builders:
437 - provide-maven-settings:
438 global-settings-file: 'global-settings'
439 settings-file: '{mvn-settings}'
440
Carsten Lundda8b6972017-02-15 23:59:25 +0000441 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800442 maven-version: '{maven-version}'
Carsten Lund63cd3b82017-02-18 18:19:22 +0000443 pom: '{pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400444 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}} -B
445 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lundda8b6972017-02-15 23:59:25 +0000446 properties:
447 - '{maven-deploy-properties}'
448 settings: '{mvn-settings}'
449 settings-type: cfp
450 global-settings: 'global-settings'
451 global-settings-type: cfp
452
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700453 publishers:
454 - infra-shiplogs:
455 maven-version: '{maven-version}'
456
Carsten Lundda8b6972017-02-15 23:59:25 +0000457- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800458 # Job template for Java merge jobs
459 #
460 # The purpose of this job template is to run "maven clean deploy" for
461 # projects using this template.
462 #
463 # Required Variables:
464 # branch: git branch (eg. stable/lithium or master)
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800465 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800466
467 project-type: freestyle
468 node: '{build-node}'
469
470 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700471 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800472 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800473
474 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700475 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800476 project: '{project}'
477 branch: '{branch}'
478 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800479 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800480 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800481 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800482
483 scm:
484 - gerrit-trigger-scm:
485 refspec: ''
486 choosing-strategy: 'default'
487
488 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700489 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800490 build-timeout: '{build-timeout}'
491
492 triggers:
493 - gerrit-trigger-patch-merged:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800494 server: '{server-name}'
495 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800496 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800497 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800498
499 builders:
500 - provide-maven-settings:
501 global-settings-file: 'global-settings'
502 settings-file: '{mvn-settings}'
503 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800504 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400505 goals: 'clean deploy -B
506 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800507 settings: '{mvn-settings}'
508 settings-type: cfp
509 global-settings: 'global-settings'
510 global-settings-type: cfp
511
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700512 publishers:
513 - infra-shiplogs:
514 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800515
516- job-template:
JulienBeef823f12017-04-12 04:52:40 -0700517 # Job template for Java merge jobs that takes a maven template
518 #
519 # The purpose of this job template is to run "maven clean deploy -P {x}"
520 # for projects using this template.
521 #
522 # Required Variables:
523 # branch: git branch (eg. stable/lithium or master)
524 name: '{project-name}-{stream}-merge-profile-java'
525
526 project-type: freestyle
527 node: '{build-node}'
528
529 properties:
530 - infra-properties:
531 build-days-to-keep: '{build-days-to-keep}'
532
533 parameters:
534 - infra-parameters:
535 project: '{project}'
536 branch: '{branch}'
537 refspec: 'refs/heads/{branch}'
538 artifacts: '{archive-artifacts}'
539 - maven-exec:
540 maven-version: '{maven-version}'
541
542 scm:
543 - gerrit-trigger-scm:
544 refspec: ''
545 choosing-strategy: 'default'
546
547 wrappers:
548 - infra-wrappers:
549 build-timeout: '{build-timeout}'
550
551 triggers:
552 - gerrit-trigger-patch-merged:
553 server: '{server-name}'
554 project: '{project}'
555 branch: '{branch}'
556 files: '**'
557
558 builders:
559 - provide-maven-settings:
560 global-settings-file: 'global-settings'
561 settings-file: '{mvn-settings}'
Determe, Sebastien (sd378r)62e4e662017-04-26 08:00:00 -0700562
563 - docker-login
564
JulienBeef823f12017-04-12 04:52:40 -0700565 - maven-target:
566 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400567 goals: 'clean deploy -P {mvn-profile} -B
568 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBeef823f12017-04-12 04:52:40 -0700569 settings: '{mvn-settings}'
570 settings-type: cfp
571 global-settings: 'global-settings'
572 global-settings-type: cfp
Determe, Sebastien (sd378r)345956b2017-04-28 08:45:52 -0700573 properties:
574 - docker.pull.registry=nexus3.onap.org:10001
575 - docker.push.registry=nexus3.onap.org:10003
JulienBeef823f12017-04-12 04:52:40 -0700576
577 publishers:
578 - infra-shiplogs:
579 maven-version: '{maven-version}'
580
581- job-template:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800582 # Job template for Java merge jobs that should also be triggered by upstream
583 # merges
584 #
585 # Required Variables:
586 # stream: release stream
587 # branch: git branch
588 # dependencies: fully qualified upstream job name to trigger on
589 # this may be ''
590 name: '{project-name}-{stream}-downstream-merge-java'
591
592 project-type: freestyle
593 node: '{build-node}'
594
595 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700596 - infra-properties:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800597 build-days-to-keep: '{build-days-to-keep}'
598
599 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700600 - infra-parameters:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800601 project: '{project}'
602 branch: '{branch}'
603 refspec: 'refs/heads/{branch}'
604 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800605 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800606 maven-version: '{maven-version}'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800607
608 scm:
609 - gerrit-trigger-scm:
610 refspec: ''
611 choosing-strategy: 'default'
612
613 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700614 - infra-wrappers:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800615 build-timeout: '{build-timeout}'
616
617 triggers:
618 - reverse:
619 jobs: '{dependencies}'
620 result: 'success'
621 - gerrit-trigger-patch-merged:
622 server: '{server-name}'
623 project: '{project}'
624 branch: '{branch}'
625 files: '**'
626
627 builders:
628 - provide-maven-settings:
629 global-settings-file: 'global-settings'
630 settings-file: '{mvn-settings}'
631 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800632 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400633 goals: 'clean deploy -B
634 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800635 settings: '{mvn-settings}'
636 settings-type: cfp
637 global-settings: 'global-settings'
638 global-settings-type: cfp
639
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700640 publishers:
641 - infra-shiplogs:
642 maven-version: '{maven-version}'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800643
644- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800645 # Job template for Java merge jobs with POM not at the root
646 #
647 # The purpose of this job template is to run "maven clean deploy" for
648 # projects using this template.
649 #
650 # Required Variables:
651 # branch: git branch (eg. stable/lithium or master)
652 # pom: name/location of the pom.xml file relative to the workspace
653 # pattern: ant file-path pattern relative to the workspace used to
654 # trigger the job
655
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800656 name: '{project-name}-{stream}-{subproject}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800657
658 project-type: freestyle
659 node: '{build-node}'
660
661 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700662 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800663 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800664
665 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700666 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800667 project: '{project}'
668 branch: '{branch}'
669 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800670 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800671 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800672 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800673
674 scm:
675 - gerrit-trigger-scm:
676 refspec: ''
677 choosing-strategy: 'default'
678
679 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700680 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800681 build-timeout: '{build-timeout}'
682
683 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800684 - gerrit-trigger-patch-merged:
685 server: '{server-name}'
686 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800687 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800688 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800689
690 builders:
691 - provide-maven-settings:
692 global-settings-file: 'global-settings'
693 settings-file: '{mvn-settings}'
694 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800695 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800696 pom: '{pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400697 goals: 'clean deploy -B
698 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800699 settings: '{mvn-settings}'
700 settings-type: cfp
701 global-settings: 'global-settings'
702 global-settings-type: cfp
703
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700704 publishers:
705 - infra-shiplogs:
706 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100707
708- job-template:
709 name: '{project-name}-{stream}-docker-java-daily'
710 project-type: freestyle
Andrew Grimberg2137b1d2017-02-15 07:24:53 -0800711 node: 'ubuntu1604-docker-8c-8g'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100712
713 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700714 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100715 build-days-to-keep: '{build-days-to-keep}'
716
717 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700718 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100719 project: '{project}'
720 branch: '{branch}'
721 refspec: 'refs/heads/{branch}'
722 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800723 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800724 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100725
726 scm:
727 - gerrit-trigger-scm:
728 refspec: ''
729 choosing-strategy: 'default'
730
Anaël Clossonabbafb52017-02-09 17:55:10 +0100731 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700732 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100733 build-timeout: '{build-timeout}'
734
735 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800736 # 12 AM UTC
Anaël Clossonabbafb52017-02-09 17:55:10 +0100737 - timed: 'H 12 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800738 - gerrit-trigger-release-manually:
739 server: '{server-name}'
740 project: '{project}'
741 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100742
743 builders:
Anaël Closson63e090e2017-02-15 14:50:45 +0100744
Anaël Clossonabbafb52017-02-09 17:55:10 +0100745 - provide-maven-settings:
746 global-settings-file: 'global-settings'
747 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100748
Anaël Closson63e090e2017-02-15 14:50:45 +0100749 - docker-login
750
Anaël Clossonabbafb52017-02-09 17:55:10 +0100751 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800752 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100753 mvn-settings: '{mvn-settings}'
754 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100755 # use default as mvn-profile if profile is not needed
756 mvn-profile: '{mvn-profile}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500757
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700758 publishers:
759 - infra-shiplogs:
760 maven-version: '{maven-version}'
761
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500762- job-template:
763 name: '{project-name}-{stream}-docker-java-shell-daily'
764 project-type: freestyle
765 node: 'ubuntu1604-docker-8c-8g'
766
767 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700768 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500769 build-days-to-keep: '{build-days-to-keep}'
770
771 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700772 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500773 project: '{project}'
774 branch: '{branch}'
775 refspec: 'refs/heads/{branch}'
776 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800777 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800778 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500779
780 scm:
781 - gerrit-trigger-scm:
782 refspec: ''
783 choosing-strategy: 'default'
784
785 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700786 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500787 build-timeout: '{build-timeout}'
788
789 triggers:
790 # 12 AM UTC
791 - timed: 'H 12 * * *'
792 - gerrit-trigger-release-manually:
793 server: '{server-name}'
794 project: '{project}'
795 branch: '{branch}'
796
797 builders:
798
799 - provide-maven-settings:
800 global-settings-file: 'global-settings'
801 settings-file: '{mvn-settings}'
802
803 - docker-login
804
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500805 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800806 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500807 goals: '{mvn-goals}'
808 settings: '{mvn-settings}'
809 settings-type: cfp
810 global-settings: 'global-settings'
811 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500812
813 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000814
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700815 publishers:
816 - infra-shiplogs:
817 maven-version: '{maven-version}'
818
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000819- job-template:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400820 name: '{project-name}-{stream}-docker-java-version-shell-daily'
821 project-type: freestyle
822 node: 'ubuntu1604-docker-8c-8g'
823
824 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700825 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400826 build-days-to-keep: '{build-days-to-keep}'
827
828 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700829 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400830 project: '{project}'
831 branch: '{branch}'
832 refspec: 'refs/heads/{branch}'
833 artifacts: '{archive-artifacts}'
834 - maven-exec:
835 maven-version: '{maven-version}'
836
837 scm:
838 - gerrit-trigger-scm:
839 refspec: ''
840 choosing-strategy: 'default'
841
842 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700843 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400844 build-timeout: '{build-timeout}'
845
846 triggers:
847 # 12 AM UTC
848 - timed: 'H 12 * * *'
849 - gerrit-trigger-release-manually:
850 server: '{server-name}'
851 project: '{project}'
852 branch: '{branch}'
853
854 builders:
855
856 - provide-maven-settings:
857 global-settings-file: 'global-settings'
858 settings-file: '{mvn-settings}'
859
860 - inject:
861 properties-file: version.properties
862
863 - maven-target:
864 maven-version: '{maven-version}'
865 goals: 'versions:set versions:update-child-modules versions:commit'
866 properties:
867 - 'newVersion=${{release_version}}'
868 settings: '{mvn-settings}'
869 settings-type: cfp
870 global-settings: 'global-settings'
871 global-settings-type: cfp
872
873 - docker-login
874
875 - maven-target:
876 maven-version: '{maven-version}'
877 goals: '{mvn-goals}'
878 settings: '{mvn-settings}'
879 settings-type: cfp
880 global-settings: 'global-settings'
881 global-settings-type: cfp
882
883 - shell: '{script}'
884
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700885 publishers:
886 - infra-shiplogs:
887 maven-version: '{maven-version}'
888
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400889- job-template:
Patrick Brady39f388a2017-03-09 11:26:59 -0800890 name: '{project-name}-{stream}-docker-version-java-daily'
891 project-type: freestyle
892 node: 'ubuntu1604-docker-8c-8g'
893
894 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700895 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -0800896 build-days-to-keep: '{build-days-to-keep}'
897
898 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700899 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -0800900 project: '{project}'
901 branch: '{branch}'
902 refspec: 'refs/heads/{branch}'
903 artifacts: '{archive-artifacts}'
904 - maven-exec:
905 maven-version: '{maven-version}'
906
907 scm:
908 - gerrit-trigger-scm:
909 refspec: ''
910 choosing-strategy: 'default'
911
912 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700913 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -0800914 build-timeout: '{build-timeout}'
915
916 triggers:
917 # 12 AM UTC
918 - timed: 'H 12 * * *'
919 - gerrit-trigger-release-manually:
920 server: '{server-name}'
921 project: '{project}'
922 branch: '{branch}'
923
924 builders:
925
926 - provide-maven-settings:
927 global-settings-file: 'global-settings'
928 settings-file: '{mvn-settings}'
929
930 - inject:
931 properties-file: version.properties
932
933 - maven-target:
934 maven-version: '{maven-version}'
935 goals: 'versions:set versions:update-child-modules versions:commit'
936 properties:
937 - 'newVersion=${{release_version}}'
938 settings: '{mvn-settings}'
939 settings-type: cfp
940 global-settings: 'global-settings'
941 global-settings-type: cfp
942
943 - docker-login
944
945 - maven-docker-push-daily:
946 maven-version: '{maven-version}'
947 mvn-settings: '{mvn-settings}'
948 pom: '{docker-pom}'
949 # use default as mvn-profile if profile is not needed
950 mvn-profile: '{mvn-profile}'
951
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700952 publishers:
953 - infra-shiplogs:
954 maven-version: '{maven-version}'
955
Patrick Brady39f388a2017-03-09 11:26:59 -0800956- job-template:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000957 name: '{project-name}-{stream}-aai-docker-java-daily'
958 project-type: freestyle
959 node: 'ubuntu1604-docker-8c-8g'
960
961 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700962 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000963 build-days-to-keep: '{build-days-to-keep}'
964
965 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700966 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +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}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +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:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000981 build-timeout: '{build-timeout}'
982
983 triggers:
984 # 12 AM UTC
985 - timed: 'H 12 * * *'
986 - gerrit-trigger-release-manually:
987 server: '{server-name}'
988 project: '{project}'
989 branch: '{branch}'
990
991 builders:
992
993 - provide-maven-settings:
994 global-settings-file: 'global-settings'
995 settings-file: '{mvn-settings}'
996
997 - docker-login
998
999 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001000 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001001 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001002 goals: 'clean install -DskipTests -B
1003 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001004 settings: '{mvn-settings}'
1005 settings-type: cfp
1006 global-settings: 'global-settings'
1007 global-settings-type: cfp
1008
1009 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001010 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001011 pom: '{pom}'
1012 goals: '{mvn-goals}'
1013 settings: '{mvn-settings}'
1014 settings-type: cfp
1015 global-settings: 'global-settings'
1016 global-settings-type: cfp
1017 properties:
1018 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001019 - docker.pull.registry=nexus3.onap.org:10001
1020 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001021
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001022 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001023
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001024 publishers:
1025 - infra-shiplogs:
1026 maven-version: '{maven-version}'
1027
Carsten Lund2d06a692017-02-23 18:23:07 +00001028- job-template:
1029 # Job template for Java daily release jobs
1030 #
1031 # The purpose of this job template is to run
1032 # - change version in all POM files to the release version specified
1033 # in version.properties. This is done using a script instread of
1034 # the mvn version plugin that assumes some specific parent structure.
1035 # - runs maven clean deploy sonar
1036 #
1037 # The POM files are required to use the Maven staging plugin so the deploy
1038 # does not deploy directly to the release repo.
1039 #
1040 # Required Variables:
1041 # branch: git branch (eg. stable/lithium or master)
1042 name: '{project-name}-{stream}-release-version2-java-daily'
1043
1044 project-type: freestyle
1045 node: '{build-node}'
1046 maven-deploy-properties:
1047 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001048 - infra-properties:
Carsten Lund2d06a692017-02-23 18:23:07 +00001049 build-days-to-keep: '{build-days-to-keep}'
1050
1051 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001052 - infra-parameters:
Carsten Lund2d06a692017-02-23 18:23:07 +00001053 project: '{project}'
1054 branch: '{branch}'
1055 refspec: 'refs/heads/{branch}'
1056 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001057 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001058 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001059
1060 scm:
1061 - gerrit-trigger-scm:
1062 refspec: ''
1063 choosing-strategy: 'default'
1064
1065 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001066 - infra-wrappers:
Carsten Lund2d06a692017-02-23 18:23:07 +00001067 build-timeout: '{build-timeout}'
1068
1069 triggers:
1070 # 11 AM UTC
1071 - timed: 'H 11 * * *'
1072 - gerrit-trigger-release-manually:
1073 server: '{server-name}'
1074 project: '{project}'
1075 branch: '{branch}'
1076
1077 builders:
1078 - provide-maven-settings:
1079 global-settings-file: 'global-settings'
1080 settings-file: '{mvn-settings}'
Andrew Grimbergb7f16152017-02-24 13:13:15 -08001081 - maven-install:
1082 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001083
1084 - inject:
1085 properties-file: version.properties
1086
1087 - shell: !include-raw-escape: include-update-pom-versions.sh
1088
1089 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001090 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001091 goals: 'clean deploy sonar:sonar site:site site:stage-deploy
1092 -Dsonar.host.url=${{SONAR}} -B
1093 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lund2d06a692017-02-23 18:23:07 +00001094 properties:
1095 - '{maven-deploy-properties}'
1096 settings: '{mvn-settings}'
1097 settings-type: cfp
1098 global-settings: 'global-settings'
1099 global-settings-type: cfp
1100
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001101 publishers:
1102 - infra-shiplogs:
1103 maven-version: '{maven-version}'
1104
Carsten Lund2d06a692017-02-23 18:23:07 +00001105- job-template:
1106 # Job template for Java daily release jobs
1107 #
1108 # The purpose of this job template is to run
1109 # - change version in all POM files to the release version specified
1110 # in version.properties. This is done using a script instread of
1111 # the mvn version plugin that assumes some specific parent structure.
1112 # - runs maven clean deploy sonar
1113 #
1114 # The POM files are required to use the Maven staging plugin so the deploy
1115 # does not deploy directly to the release repo.
1116 #
1117 # Required Variables:
1118 # branch: git branch (eg. stable/lithium or master)
1119 # pom: name/location of the pom.xml file relative to the workspace
1120 # pattern: ant file-path pattern relative to the workspace used to
1121 # trigger the job
1122
1123 name: '{project-name}-{stream}-{subproject}-release-version2-java-daily'
1124
1125 project-type: freestyle
1126 node: '{build-node}'
1127 maven-deploy-properties:
1128 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001129 - infra-properties:
Carsten Lund2d06a692017-02-23 18:23:07 +00001130 build-days-to-keep: '{build-days-to-keep}'
1131
1132 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001133 - infra-parameters:
Carsten Lund2d06a692017-02-23 18:23:07 +00001134 project: '{project}'
1135 branch: '{branch}'
1136 refspec: 'refs/heads/{branch}'
1137 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001138 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001139 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001140
1141 scm:
1142 - gerrit-trigger-scm:
1143 refspec: ''
1144 choosing-strategy: 'default'
1145
1146 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001147 - infra-wrappers:
Carsten Lund2d06a692017-02-23 18:23:07 +00001148 build-timeout: '{build-timeout}'
1149
1150 triggers:
1151 # 11 AM UTC
1152 - timed: 'H 11 * * *'
1153 - gerrit-trigger-release-manually:
1154 server: '{server-name}'
1155 project: '{project}'
1156 branch: '{branch}'
1157 files: '{pattern}'
1158
1159 builders:
1160 - provide-maven-settings:
1161 global-settings-file: 'global-settings'
1162 settings-file: '{mvn-settings}'
Andrew Grimbergb7f16152017-02-24 13:13:15 -08001163 - maven-install:
1164 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001165
1166 - inject:
1167 properties-file: version.properties
1168
1169 - shell: !include-raw-escape: include-update-pom-versions.sh
1170
1171 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001172 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001173 pom: '{pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001174 goals: 'clean deploy sonar:sonar site:site site:stage-deploy
1175 -Dsonar.host.url=${{SONAR}} -B
1176 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lund2d06a692017-02-23 18:23:07 +00001177 properties:
1178 - '{maven-deploy-properties}'
1179 settings: '{mvn-settings}'
1180 settings-type: cfp
1181 global-settings: 'global-settings'
1182 global-settings-type: cfp
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001183
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001184 publishers:
1185 - infra-shiplogs:
1186 maven-version: '{maven-version}'
1187
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001188- job-template:
1189 # Template for maven site plugin invocation
1190 #
1191 # It's designed to be triggered when the trigger-job job
1192 # succeeds as there's no need for new documentaiton
1193 # if the build job fails.
1194 #
1195 # Those parameters should be set :
1196 # - site-pom : the pom file that contains the site confiration
1197 # - trigger-job : the name of the project that triggers this job
1198 # upon success. The job name can be
1199 # parameterized.
1200 name: '{project-name}-{stream}-stage-site-java'
1201 project-type: freestyle
Anaël Clossonb8c5fb52017-03-14 15:43:18 +01001202 node: '{build-node}'
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001203
1204 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001205 - infra-properties:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001206 build-days-to-keep: '{build-days-to-keep}'
1207
1208 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001209 - infra-parameters:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001210 project: '{project}'
1211 branch: '{branch}'
1212 refspec: 'refs/heads/{branch}'
1213 artifacts: '{archive-artifacts}'
1214 - maven-exec:
1215 maven-version: '{maven-version}'
1216
1217 scm:
1218 - gerrit-trigger-scm:
1219 refspec: ''
1220 choosing-strategy: 'default'
1221
1222 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001223 - infra-wrappers:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001224 build-timeout: '{build-timeout}'
1225
1226 triggers:
1227 - trigger-on-build-success:
1228 job-name: '{trigger-job}'
1229
1230 builders:
1231 - provide-maven-settings:
1232 global-settings-file: 'global-settings'
1233 settings-file: '{mvn-settings}'
Anaël Closson09166842017-03-15 11:19:40 +01001234 - inject:
1235 properties-file: version.properties
1236 - maven-target:
1237 maven-version: '{maven-version}'
1238 goals: 'versions:set versions:update-child-modules versions:commit'
1239 properties:
1240 - 'newVersion=${{release_version}}'
1241 settings: '{mvn-settings}'
1242 settings-type: cfp
1243 global-settings: 'global-settings'
1244 global-settings-type: cfp
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001245
1246 - maven-target:
1247 maven-version: '{maven-version}'
Anaël Closson03222ed2017-03-13 16:37:09 +01001248 pom: '{site-pom}'
Anaël Clossonb7c8aa32017-03-14 15:50:20 +01001249 goals: 'clean site:site site:stage-deploy'
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001250 settings: '{mvn-settings}'
1251 settings-type: cfp
1252 global-settings: 'global-settings'
1253 global-settings-type: cfp
ig61339fdb9d22017-04-03 17:47:19 +03001254
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001255 publishers:
1256 - infra-shiplogs:
1257 maven-version: '{maven-version}'
1258
ig61339fdb9d22017-04-03 17:47:19 +03001259- job-template:
1260 # Job template for Java merge jobs
1261 #
1262 # The purpose of this job template is to run "maven clean deploy" for
1263 # projects using this template.
1264 #
1265 # Required Variables:
1266 # branch: git branch (eg. stable/lithium or master)
1267 name: '{project-name}-{stream}-sdc-merge-java'
1268
1269 project-type: freestyle
ig6133cb3f8232017-04-05 14:22:42 +03001270 node: 'ubuntu1604-docker-8c-8g'
ig61339fdb9d22017-04-03 17:47:19 +03001271
1272 properties:
1273 - infra-properties:
1274 build-days-to-keep: '{build-days-to-keep}'
1275
1276 parameters:
1277 - infra-parameters:
1278 project: '{project}'
1279 branch: '{branch}'
1280 refspec: 'refs/heads/{branch}'
1281 artifacts: '{archive-artifacts}'
1282 - maven-exec:
1283 maven-version: '{maven-version}'
1284
1285 scm:
1286 - gerrit-trigger-scm:
1287 refspec: ''
1288 choosing-strategy: 'default'
1289
1290 wrappers:
1291 - infra-wrappers:
1292 build-timeout: '{build-timeout}'
1293
1294 triggers:
1295 - gerrit-trigger-patch-merged:
1296 server: '{server-name}'
1297 project: '{project}'
1298 branch: '{branch}'
1299 files: '**'
1300
1301 builders:
1302 - provide-maven-settings:
1303 global-settings-file: 'global-settings'
1304 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001305
1306 - docker-login
1307
ig6133cb3f8232017-04-05 14:22:42 +03001308 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001309 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001310 mvn-settings: '{mvn-settings}'
1311 pom: '{docker-pom}'
1312 # use default as mvn-profile if profile is not needed
1313 mvn-profile: '{mvn-profile}'
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001314
1315 publishers:
1316 - infra-shiplogs:
1317 maven-version: '{maven-version}'
Venkata Harish K Kajur2bf22a02017-05-15 16:22:55 -04001318
1319- job-template:
1320 name: '{project-name}-{stream}-aai-docker-java-version-daily'
1321 project-type: freestyle
1322 node: 'ubuntu1604-docker-8c-8g'
1323
1324 properties:
1325 - infra-properties:
1326 build-days-to-keep: '{build-days-to-keep}'
1327
1328 parameters:
1329 - infra-parameters:
1330 project: '{project}'
1331 branch: '{branch}'
1332 refspec: 'refs/heads/{branch}'
1333 artifacts: '{archive-artifacts}'
1334 - maven-exec:
1335 maven-version: '{maven-version}'
1336
1337 scm:
1338 - gerrit-trigger-scm:
1339 refspec: ''
1340 choosing-strategy: 'default'
1341
1342 wrappers:
1343 - infra-wrappers:
1344 build-timeout: '{build-timeout}'
1345
1346 triggers:
1347 # 12 AM UTC
1348 - timed: 'H 12 * * *'
1349 - gerrit-trigger-release-manually:
1350 server: '{server-name}'
1351 project: '{project}'
1352 branch: '{branch}'
1353
1354 builders:
1355
1356 - provide-maven-settings:
1357 global-settings-file: 'global-settings'
1358 settings-file: '{mvn-settings}'
1359
1360 - docker-login
1361
1362 - maven-target:
1363 maven-version: '{maven-version}'
1364 pom: 'pom.xml'
1365 goals: 'clean install -DskipTests -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
1366 settings: '{mvn-settings}'
1367 settings-type: cfp
1368 global-settings: 'global-settings'
1369 global-settings-type: cfp
1370
1371 - maven-target:
1372 maven-version: '{maven-version}'
1373 pom: '{pom}'
1374 goals: '{mvn-goals}'
1375 settings: '{mvn-settings}'
1376 settings-type: cfp
1377 global-settings: 'global-settings'
1378 global-settings-type: cfp
1379 properties:
1380 - maven.test.skip=true
1381 - docker.pull.registry=nexus3.onap.org:10001
1382 - docker.push.registry=nexus3.onap.org:10003
1383
1384 publishers:
1385 - infra-shiplogs:
1386 maven-version: '{maven-version}'
1387