blob: 385bd6aa6414a32ceeaae89375c19360ca74cc4d [file] [log] [blame]
Andrew Grimbergebc710a2017-01-30 12:59:38 -08001---
2- job-template:
Jessica Wagantall7a37aa22017-05-31 16:27:48 -07003 # Template used for running CLM scans
4 # Arguements:
5 # {name} - Project Shortname
6 # {project} - Fully qualified project name
7 # {mvn-settings} - Project maven settings file
8 # {jdk}
9 name: '{project-name}-{stream}-clm'
10
11 project-type: freestyle
12 node: '{build-node}'
13 jdk: '{jdk}'
14
15 properties:
16 - infra-properties:
Jessica Wagantall98a82bd2017-06-06 11:02:26 -070017 build-days-to-keep: 30
Jessica Wagantall7a37aa22017-05-31 16:27:48 -070018
19 parameters:
20 - infra-parameters:
21 project: '{project}'
22 branch: '{branch}'
23 refspec: 'refs/heads/{branch}'
24 artifacts: '{archive-artifacts}'
25
26 scm:
27 - git-scm:
28 refspec: ''
29 branch: '{branch}'
30
31 wrappers:
32 - infra-wrappers:
33 build-timeout: '{build-timeout}'
34
35 triggers:
36 - timed: 'H H * * 6'
37
38 builders:
39 - provide-maven-settings:
40 global-settings-file: 'global-settings'
41 settings-file: '{mvn-settings}'
42 - maven-target:
43 maven-version: 'mvn33'
44 pom: 'pom.xml'
45 goals: |
46 clean install dependency:tree com.sonatype.clm:clm-maven-plugin:index
Jessica Wagantall98a82bd2017-06-06 11:02:26 -070047 {onap-infra-mvn-opts}
Jessica Wagantall7a37aa22017-05-31 16:27:48 -070048 java-opts:
49 - '-Xmx4096m -XX:MaxPermSize=512m'
50 settings: '{mvn-settings}'
51 settings-type: cfp
52 global-settings: 'global-settings'
53 global-settings-type: cfp
54 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
Jessica Wagantall98a82bd2017-06-06 11:02:26 -070055 - sonatype-clm:
Jessica Wagantall7a37aa22017-05-31 16:27:48 -070056 application-name: '{project-name}'
57
58 publishers:
59 - infra-shiplogs:
60 maven-version: '{maven-version}'
61
62- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080063 # Job template for Java verify jobs
64 #
65 # The purpose of this job template is to run "maven clean install" for
66 # projects using this template.
67 #
68 # Required Variables:
69 # branch: git branch (eg. stable/lithium or master)
70
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050071 name: '{project-name}-{stream}-verify-java-skip-tests'
72
73 project-type: freestyle
74 concurrent: true
75 node: '{build-node}'
76
77 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070078 - infra-properties:
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050079 build-days-to-keep: '{build-days-to-keep}'
80
81 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070082 - infra-parameters:
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050083 project: '{project}'
84 branch: '{branch}'
85 refspec: 'refs/heads/{branch}'
86 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080087 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080088 maven-version: '{maven-version}'
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050089
90 scm:
91 - gerrit-trigger-scm:
92 refspec: '$GERRIT_REFSPEC'
93 choosing-strategy: 'gerrit'
94
95 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070096 - infra-wrappers:
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050097 build-timeout: '{build-timeout}'
98
99 triggers:
100 - gerrit-trigger-patch-submitted:
101 server: '{server-name}'
102 project: '{project}'
103 branch: '{branch}'
104 files: '**'
105
106 builders:
107 - provide-maven-settings:
108 global-settings-file: 'global-settings'
109 settings-file: '{mvn-settings}'
110 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800111 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400112 goals: 'clean install -DskipTests=true -B
113 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -0500114 settings: '{mvn-settings}'
115 settings-type: cfp
116 global-settings: 'global-settings'
117 global-settings-type: cfp
118 maven-opts:
119 - maven.test.skip=true
120
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700121 publishers:
122 - infra-shiplogs:
123 maven-version: '{maven-version}'
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -0500124
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -0500125- job-template:
126 # Job template for Java verify jobs
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
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800134 name: '{project-name}-{stream}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800135
136 project-type: freestyle
137 concurrent: true
138 node: '{build-node}'
139
140 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700141 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800142 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800143
144 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700145 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800146 project: '{project}'
147 branch: '{branch}'
148 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800149 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800150 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800151 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800152
153 scm:
154 - gerrit-trigger-scm:
155 refspec: '$GERRIT_REFSPEC'
156 choosing-strategy: 'gerrit'
157
158 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700159 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800160 build-timeout: '{build-timeout}'
161
162 triggers:
163 - gerrit-trigger-patch-submitted:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800164 server: '{server-name}'
165 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800166 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800167 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800168
169 builders:
170 - provide-maven-settings:
171 global-settings-file: 'global-settings'
172 settings-file: '{mvn-settings}'
173 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800174 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400175 goals: 'clean install -B
176 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800177 settings: '{mvn-settings}'
178 settings-type: cfp
179 global-settings: 'global-settings'
180 global-settings-type: cfp
181
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700182 publishers:
183 - infra-shiplogs:
184 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800185
186- job-template:
JulienBeef823f12017-04-12 04:52:40 -0700187 # Job template for Java verify jobs that takes a maven template
188 #
189 # The purpose of this job template is to run "maven clean install -P {x}"
190 # for projects using this template.
191 #
192 # Required Variables:
193 # branch: git branch (eg. stable/lithium or master)
194
195 name: '{project-name}-{stream}-verify-profile-java'
196
197 project-type: freestyle
198 concurrent: true
199 node: '{build-node}'
200
201 properties:
202 - infra-properties:
203 build-days-to-keep: '{build-days-to-keep}'
204
205 parameters:
206 - infra-parameters:
207 project: '{project}'
208 branch: '{branch}'
209 refspec: 'refs/heads/{branch}'
210 artifacts: '{archive-artifacts}'
211 - maven-exec:
212 maven-version: '{maven-version}'
213
214 scm:
215 - gerrit-trigger-scm:
216 refspec: '$GERRIT_REFSPEC'
217 choosing-strategy: 'gerrit'
218
219 wrappers:
220 - infra-wrappers:
221 build-timeout: '{build-timeout}'
222
223 triggers:
224 - gerrit-trigger-patch-submitted:
225 server: '{server-name}'
226 project: '{project}'
227 branch: '{branch}'
228 files: '**'
229
230 builders:
231 - provide-maven-settings:
232 global-settings-file: 'global-settings'
233 settings-file: '{mvn-settings}'
234 - maven-target:
235 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400236 goals: 'clean install -P {mvn-profile} -B
237 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBeef823f12017-04-12 04:52:40 -0700238 settings: '{mvn-settings}'
239 settings-type: cfp
240 global-settings: 'global-settings'
241 global-settings-type: cfp
242
243 publishers:
244 - infra-shiplogs:
245 maven-version: '{maven-version}'
246
247- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800248 # Job template for Java verify jobs with POM not at the root
249 #
250 # The purpose of this job template is to run "maven clean install" for
251 # projects using this template.
252 #
253 # Required Variables:
254 # branch: git branch (eg. stable/lithium or master)
255 # pom: name/location of the pom.xml file relative to the workspace
256 # pattern: ant file-path pattern relative to the workspace used to
257 # trigger the job
258
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800259 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800260
261 project-type: freestyle
262 concurrent: true
263 node: '{build-node}'
264
265 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700266 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800267 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800268
269 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700270 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800271 project: '{project}'
272 branch: '{branch}'
273 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800274 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}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800277
278 scm:
279 - gerrit-trigger-scm:
280 refspec: '$GERRIT_REFSPEC'
281 choosing-strategy: 'gerrit'
282
283 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700284 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800285 build-timeout: '{build-timeout}'
286
287 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800288 - gerrit-trigger-patch-submitted:
289 server: '{server-name}'
290 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800291 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800292 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800293
294 builders:
295 - provide-maven-settings:
296 global-settings-file: 'global-settings'
297 settings-file: '{mvn-settings}'
298 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800299 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800300 pom: '{pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400301 goals: 'clean install -B
302 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800303 settings: '{mvn-settings}'
304 settings-type: cfp
305 global-settings: 'global-settings'
306 global-settings-type: cfp
307
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700308 publishers:
309 - infra-shiplogs:
310 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800311
312- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100313 # Job template for Java daily release jobs
314 #
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800315 # The purpose of this job template is to run "maven version && maven clean
316 # deploy" for projects using this template.
JulienBe2f4ee072017-02-01 21:42:32 +0100317 #
318 # Required Variables:
319 # branch: git branch (eg. stable/lithium or master)
320 name: '{project-name}-{stream}-release-java-daily'
321
322 project-type: freestyle
323 node: '{build-node}'
324 maven-deploy-properties:
325 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700326 - infra-properties:
JulienBe2f4ee072017-02-01 21:42:32 +0100327 build-days-to-keep: '{build-days-to-keep}'
328
329 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700330 - infra-parameters:
JulienBe2f4ee072017-02-01 21:42:32 +0100331 project: '{project}'
332 branch: '{branch}'
333 refspec: 'refs/heads/{branch}'
334 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800335 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800336 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100337
338 scm:
339 - gerrit-trigger-scm:
340 refspec: ''
341 choosing-strategy: 'default'
342
343 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700344 - infra-wrappers:
JulienBe2f4ee072017-02-01 21:42:32 +0100345 build-timeout: '{build-timeout}'
346
347 triggers:
348 # 11 AM UTC
349 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800350 - gerrit-trigger-release-manually:
351 server: '{server-name}'
352 project: '{project}'
353 branch: '{branch}'
JulienBe2f4ee072017-02-01 21:42:32 +0100354
355 builders:
356 - provide-maven-settings:
357 global-settings-file: 'global-settings'
358 settings-file: '{mvn-settings}'
359
JulienBe5641aa02017-02-17 01:08:38 -0800360 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800361 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400362 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}} -B
363 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBe5641aa02017-02-17 01:08:38 -0800364 properties:
365 - '{maven-deploy-properties}'
366 settings: '{mvn-settings}'
367 settings-type: cfp
368 global-settings: 'global-settings'
369 global-settings-type: cfp
370
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700371 publishers:
372 - infra-shiplogs:
373 maven-version: '{maven-version}'
374
JulienBe5641aa02017-02-17 01:08:38 -0800375- job-template:
376 # Job template for Java daily release jobs
377 #
378 # The purpose of this job template is to run "maven version && maven clean
379 # deploy" for projects using this template.
380 #
381 # Required Variables:
382 # branch: git branch (eg. stable/lithium or master)
Pamela Dragosh55ceb8f2017-05-23 12:23:16 -0400383 name: '{project-name}-{stream}-release-version-java-daily-no-sonar'
384
385 project-type: freestyle
386 node: '{build-node}'
387 maven-deploy-properties:
388 properties:
389 - infra-properties:
390 build-days-to-keep: '{build-days-to-keep}'
391
392 parameters:
393 - infra-parameters:
394 project: '{project}'
395 branch: '{branch}'
396 refspec: 'refs/heads/{branch}'
397 artifacts: '{archive-artifacts}'
398 - maven-exec:
399 maven-version: '{maven-version}'
400
401 scm:
402 - gerrit-trigger-scm:
403 refspec: ''
404 choosing-strategy: 'default'
405
406 wrappers:
407 - infra-wrappers:
408 build-timeout: '{build-timeout}'
409
410 triggers:
411 # 11 AM UTC
412 - timed: 'H 11 * * *'
413 - gerrit-trigger-release-manually:
414 server: '{server-name}'
415 project: '{project}'
416 branch: '{branch}'
417
418 builders:
419 - provide-maven-settings:
420 global-settings-file: 'global-settings'
421 settings-file: '{mvn-settings}'
422
423 - inject:
424 properties-file: version.properties
425 - maven-target:
426 maven-version: '{maven-version}'
427 goals: 'versions:set versions:update-child-modules versions:commit'
428 properties:
429 - 'newVersion=${{release_version}}'
430 settings: '{mvn-settings}'
431 settings-type: cfp
432 global-settings: 'global-settings'
433 global-settings-type: cfp
434
435 - maven-target:
436 maven-version: '{maven-version}'
437 goals: 'clean deploy -B
438 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
439 properties:
440 - '{maven-deploy-properties}'
441 settings: '{mvn-settings}'
442 settings-type: cfp
443 global-settings: 'global-settings'
444 global-settings-type: cfp
445
446 publishers:
447 - infra-shiplogs:
448 maven-version: '{maven-version}'
449
450- job-template:
451 # Job template for Java daily release jobs
452 #
453 # The purpose of this job template is to run "maven version && maven clean
454 # deploy" for projects using this template.
455 #
456 # Required Variables:
457 # branch: git branch (eg. stable/lithium or master)
JulienBe5641aa02017-02-17 01:08:38 -0800458 name: '{project-name}-{stream}-release-version-java-daily'
459
460 project-type: freestyle
461 node: '{build-node}'
462 maven-deploy-properties:
463 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700464 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800465 build-days-to-keep: '{build-days-to-keep}'
466
467 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700468 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800469 project: '{project}'
470 branch: '{branch}'
471 refspec: 'refs/heads/{branch}'
472 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800473 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800474 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800475
476 scm:
477 - gerrit-trigger-scm:
478 refspec: ''
479 choosing-strategy: 'default'
480
481 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700482 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800483 build-timeout: '{build-timeout}'
484
485 triggers:
486 # 11 AM UTC
487 - timed: 'H 11 * * *'
488 - gerrit-trigger-release-manually:
489 server: '{server-name}'
490 project: '{project}'
491 branch: '{branch}'
492
493 builders:
494 - provide-maven-settings:
495 global-settings-file: 'global-settings'
496 settings-file: '{mvn-settings}'
497
JulienBe2f4ee072017-02-01 21:42:32 +0100498 - inject:
499 properties-file: version.properties
500 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800501 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100502 goals: 'versions:set versions:update-child-modules versions:commit'
503 properties:
504 - 'newVersion=${{release_version}}'
505 settings: '{mvn-settings}'
506 settings-type: cfp
507 global-settings: 'global-settings'
508 global-settings-type: cfp
509
510 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800511 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400512 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}} -B
513 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800514 properties:
515 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100516 settings: '{mvn-settings}'
517 settings-type: cfp
518 global-settings: 'global-settings'
519 global-settings-type: cfp
520
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700521 publishers:
522 - infra-shiplogs:
523 maven-version: '{maven-version}'
524
JulienBe2f4ee072017-02-01 21:42:32 +0100525- job-template:
Carsten Lundda8b6972017-02-15 23:59:25 +0000526 # Job template for Java daily release jobs with POM not at the root
527 #
528 # The purpose of this job template is to run "maven version && maven clean
529 # deploy" for projects using this template.
530 #
531 # Required Variables:
532 # branch: git branch (eg. stable/lithium or master)
533 # pom: name/location of the pom.xml file relative to the workspace
534
535
536 name: '{project-name}-{stream}-{subproject}-release-java-daily'
537
538 project-type: freestyle
539 node: '{build-node}'
540 maven-deploy-properties:
541 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700542 - infra-properties:
Carsten Lundda8b6972017-02-15 23:59:25 +0000543 build-days-to-keep: '{build-days-to-keep}'
544
545 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700546 - infra-parameters:
Carsten Lundda8b6972017-02-15 23:59:25 +0000547 project: '{project}'
548 branch: '{branch}'
549 refspec: 'refs/heads/{branch}'
550 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800551 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800552 maven-version: '{maven-version}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000553
554 scm:
555 - gerrit-trigger-scm:
556 refspec: ''
557 choosing-strategy: 'default'
558
559 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700560 - infra-wrappers:
Carsten Lundda8b6972017-02-15 23:59:25 +0000561 build-timeout: '{build-timeout}'
562
563 triggers:
564 # 11 AM UTC
565 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800566 - gerrit-trigger-release-manually:
567 server: '{server-name}'
568 project: '{project}'
569 branch: '{branch}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000570
571 builders:
572 - provide-maven-settings:
573 global-settings-file: 'global-settings'
574 settings-file: '{mvn-settings}'
575
Carsten Lundda8b6972017-02-15 23:59:25 +0000576 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800577 maven-version: '{maven-version}'
Carsten Lund63cd3b82017-02-18 18:19:22 +0000578 pom: '{pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400579 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}} -B
580 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lundda8b6972017-02-15 23:59:25 +0000581 properties:
582 - '{maven-deploy-properties}'
583 settings: '{mvn-settings}'
584 settings-type: cfp
585 global-settings: 'global-settings'
586 global-settings-type: cfp
587
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700588 publishers:
589 - infra-shiplogs:
590 maven-version: '{maven-version}'
591
Carsten Lundda8b6972017-02-15 23:59:25 +0000592- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800593 # Job template for Java merge jobs
594 #
595 # The purpose of this job template is to run "maven clean deploy" for
596 # projects using this template.
597 #
598 # Required Variables:
599 # branch: git branch (eg. stable/lithium or master)
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800600 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800601
602 project-type: freestyle
603 node: '{build-node}'
604
605 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700606 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800607 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800608
609 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700610 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800611 project: '{project}'
612 branch: '{branch}'
613 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800614 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800615 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800616 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800617
618 scm:
619 - gerrit-trigger-scm:
620 refspec: ''
621 choosing-strategy: 'default'
622
623 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700624 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800625 build-timeout: '{build-timeout}'
626
627 triggers:
628 - gerrit-trigger-patch-merged:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800629 server: '{server-name}'
630 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800631 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800632 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800633
634 builders:
635 - provide-maven-settings:
636 global-settings-file: 'global-settings'
637 settings-file: '{mvn-settings}'
638 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800639 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400640 goals: 'clean deploy -B
641 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800642 settings: '{mvn-settings}'
643 settings-type: cfp
644 global-settings: 'global-settings'
645 global-settings-type: cfp
646
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700647 publishers:
648 - infra-shiplogs:
649 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800650
651- job-template:
JulienBeef823f12017-04-12 04:52:40 -0700652 # Job template for Java merge jobs that takes a maven template
653 #
654 # The purpose of this job template is to run "maven clean deploy -P {x}"
655 # for projects using this template.
656 #
657 # Required Variables:
658 # branch: git branch (eg. stable/lithium or master)
659 name: '{project-name}-{stream}-merge-profile-java'
660
661 project-type: freestyle
662 node: '{build-node}'
663
664 properties:
665 - infra-properties:
666 build-days-to-keep: '{build-days-to-keep}'
667
668 parameters:
669 - infra-parameters:
670 project: '{project}'
671 branch: '{branch}'
672 refspec: 'refs/heads/{branch}'
673 artifacts: '{archive-artifacts}'
674 - maven-exec:
675 maven-version: '{maven-version}'
676
677 scm:
678 - gerrit-trigger-scm:
679 refspec: ''
680 choosing-strategy: 'default'
681
682 wrappers:
683 - infra-wrappers:
684 build-timeout: '{build-timeout}'
685
686 triggers:
687 - gerrit-trigger-patch-merged:
688 server: '{server-name}'
689 project: '{project}'
690 branch: '{branch}'
691 files: '**'
692
693 builders:
694 - provide-maven-settings:
695 global-settings-file: 'global-settings'
696 settings-file: '{mvn-settings}'
Determe, Sebastien (sd378r)62e4e662017-04-26 08:00:00 -0700697
698 - docker-login
699
JulienBeef823f12017-04-12 04:52:40 -0700700 - maven-target:
701 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400702 goals: 'clean deploy -P {mvn-profile} -B
703 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBeef823f12017-04-12 04:52:40 -0700704 settings: '{mvn-settings}'
705 settings-type: cfp
706 global-settings: 'global-settings'
707 global-settings-type: cfp
Determe, Sebastien (sd378r)345956b2017-04-28 08:45:52 -0700708 properties:
709 - docker.pull.registry=nexus3.onap.org:10001
710 - docker.push.registry=nexus3.onap.org:10003
JulienBeef823f12017-04-12 04:52:40 -0700711
712 publishers:
713 - infra-shiplogs:
714 maven-version: '{maven-version}'
715
716- job-template:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800717 # Job template for Java merge jobs that should also be triggered by upstream
718 # merges
719 #
720 # Required Variables:
721 # stream: release stream
722 # branch: git branch
723 # dependencies: fully qualified upstream job name to trigger on
724 # this may be ''
725 name: '{project-name}-{stream}-downstream-merge-java'
726
727 project-type: freestyle
728 node: '{build-node}'
729
730 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700731 - infra-properties:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800732 build-days-to-keep: '{build-days-to-keep}'
733
734 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700735 - infra-parameters:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800736 project: '{project}'
737 branch: '{branch}'
738 refspec: 'refs/heads/{branch}'
739 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800740 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800741 maven-version: '{maven-version}'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800742
743 scm:
744 - gerrit-trigger-scm:
745 refspec: ''
746 choosing-strategy: 'default'
747
748 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700749 - infra-wrappers:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800750 build-timeout: '{build-timeout}'
751
752 triggers:
753 - reverse:
754 jobs: '{dependencies}'
755 result: 'success'
756 - gerrit-trigger-patch-merged:
757 server: '{server-name}'
758 project: '{project}'
759 branch: '{branch}'
760 files: '**'
761
762 builders:
763 - provide-maven-settings:
764 global-settings-file: 'global-settings'
765 settings-file: '{mvn-settings}'
766 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800767 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400768 goals: 'clean deploy -B
769 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800770 settings: '{mvn-settings}'
771 settings-type: cfp
772 global-settings: 'global-settings'
773 global-settings-type: cfp
774
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700775 publishers:
776 - infra-shiplogs:
777 maven-version: '{maven-version}'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800778
779- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800780 # Job template for Java merge jobs with POM not at the root
781 #
782 # The purpose of this job template is to run "maven clean deploy" for
783 # projects using this template.
784 #
785 # Required Variables:
786 # branch: git branch (eg. stable/lithium or master)
787 # pom: name/location of the pom.xml file relative to the workspace
788 # pattern: ant file-path pattern relative to the workspace used to
789 # trigger the job
790
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800791 name: '{project-name}-{stream}-{subproject}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800792
793 project-type: freestyle
794 node: '{build-node}'
795
796 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700797 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800798 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800799
800 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700801 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800802 project: '{project}'
803 branch: '{branch}'
804 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800805 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800806 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800807 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800808
809 scm:
810 - gerrit-trigger-scm:
811 refspec: ''
812 choosing-strategy: 'default'
813
814 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700815 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800816 build-timeout: '{build-timeout}'
817
818 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800819 - gerrit-trigger-patch-merged:
820 server: '{server-name}'
821 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800822 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800823 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800824
825 builders:
826 - provide-maven-settings:
827 global-settings-file: 'global-settings'
828 settings-file: '{mvn-settings}'
829 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800830 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800831 pom: '{pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400832 goals: 'clean deploy -B
833 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800834 settings: '{mvn-settings}'
835 settings-type: cfp
836 global-settings: 'global-settings'
837 global-settings-type: cfp
838
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700839 publishers:
840 - infra-shiplogs:
841 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100842
843- job-template:
844 name: '{project-name}-{stream}-docker-java-daily'
845 project-type: freestyle
Andrew Grimberg2137b1d2017-02-15 07:24:53 -0800846 node: 'ubuntu1604-docker-8c-8g'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100847
848 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700849 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100850 build-days-to-keep: '{build-days-to-keep}'
851
852 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700853 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100854 project: '{project}'
855 branch: '{branch}'
856 refspec: 'refs/heads/{branch}'
857 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800858 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800859 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100860
861 scm:
862 - gerrit-trigger-scm:
863 refspec: ''
864 choosing-strategy: 'default'
865
Anaël Clossonabbafb52017-02-09 17:55:10 +0100866 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700867 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100868 build-timeout: '{build-timeout}'
869
870 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800871 # 12 AM UTC
Anaël Clossonabbafb52017-02-09 17:55:10 +0100872 - timed: 'H 12 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800873 - gerrit-trigger-release-manually:
874 server: '{server-name}'
875 project: '{project}'
876 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100877
878 builders:
Anaël Closson63e090e2017-02-15 14:50:45 +0100879
Anaël Clossonabbafb52017-02-09 17:55:10 +0100880 - provide-maven-settings:
881 global-settings-file: 'global-settings'
882 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100883
Anaël Closson63e090e2017-02-15 14:50:45 +0100884 - docker-login
885
Anaël Clossonabbafb52017-02-09 17:55:10 +0100886 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800887 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100888 mvn-settings: '{mvn-settings}'
889 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100890 # use default as mvn-profile if profile is not needed
891 mvn-profile: '{mvn-profile}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500892
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700893 publishers:
894 - infra-shiplogs:
895 maven-version: '{maven-version}'
896
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500897- job-template:
898 name: '{project-name}-{stream}-docker-java-shell-daily'
899 project-type: freestyle
900 node: 'ubuntu1604-docker-8c-8g'
901
902 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700903 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500904 build-days-to-keep: '{build-days-to-keep}'
905
906 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700907 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500908 project: '{project}'
909 branch: '{branch}'
910 refspec: 'refs/heads/{branch}'
911 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800912 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800913 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500914
915 scm:
916 - gerrit-trigger-scm:
917 refspec: ''
918 choosing-strategy: 'default'
919
920 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700921 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500922 build-timeout: '{build-timeout}'
923
924 triggers:
925 # 12 AM UTC
926 - timed: 'H 12 * * *'
927 - gerrit-trigger-release-manually:
928 server: '{server-name}'
929 project: '{project}'
930 branch: '{branch}'
931
932 builders:
933
934 - provide-maven-settings:
935 global-settings-file: 'global-settings'
936 settings-file: '{mvn-settings}'
937
938 - docker-login
939
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500940 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800941 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500942 goals: '{mvn-goals}'
943 settings: '{mvn-settings}'
944 settings-type: cfp
945 global-settings: 'global-settings'
946 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500947
948 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000949
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700950 publishers:
951 - infra-shiplogs:
952 maven-version: '{maven-version}'
953
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000954- job-template:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400955 name: '{project-name}-{stream}-docker-java-version-shell-daily'
956 project-type: freestyle
957 node: 'ubuntu1604-docker-8c-8g'
958
959 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700960 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400961 build-days-to-keep: '{build-days-to-keep}'
962
963 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700964 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400965 project: '{project}'
966 branch: '{branch}'
967 refspec: 'refs/heads/{branch}'
968 artifacts: '{archive-artifacts}'
969 - maven-exec:
970 maven-version: '{maven-version}'
971
972 scm:
973 - gerrit-trigger-scm:
974 refspec: ''
975 choosing-strategy: 'default'
976
977 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700978 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400979 build-timeout: '{build-timeout}'
980
981 triggers:
982 # 12 AM UTC
983 - timed: 'H 12 * * *'
984 - gerrit-trigger-release-manually:
985 server: '{server-name}'
986 project: '{project}'
987 branch: '{branch}'
988
989 builders:
990
991 - provide-maven-settings:
992 global-settings-file: 'global-settings'
993 settings-file: '{mvn-settings}'
994
995 - inject:
996 properties-file: version.properties
997
998 - maven-target:
999 maven-version: '{maven-version}'
1000 goals: 'versions:set versions:update-child-modules versions:commit'
1001 properties:
1002 - 'newVersion=${{release_version}}'
1003 settings: '{mvn-settings}'
1004 settings-type: cfp
1005 global-settings: 'global-settings'
1006 global-settings-type: cfp
1007
1008 - docker-login
1009
1010 - maven-target:
1011 maven-version: '{maven-version}'
1012 goals: '{mvn-goals}'
1013 settings: '{mvn-settings}'
1014 settings-type: cfp
1015 global-settings: 'global-settings'
1016 global-settings-type: cfp
1017
1018 - shell: '{script}'
1019
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001020 publishers:
1021 - infra-shiplogs:
1022 maven-version: '{maven-version}'
1023
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001024- job-template:
Patrick Brady39f388a2017-03-09 11:26:59 -08001025 name: '{project-name}-{stream}-docker-version-java-daily'
1026 project-type: freestyle
1027 node: 'ubuntu1604-docker-8c-8g'
1028
1029 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001030 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -08001031 build-days-to-keep: '{build-days-to-keep}'
1032
1033 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001034 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -08001035 project: '{project}'
1036 branch: '{branch}'
1037 refspec: 'refs/heads/{branch}'
1038 artifacts: '{archive-artifacts}'
1039 - maven-exec:
1040 maven-version: '{maven-version}'
1041
1042 scm:
1043 - gerrit-trigger-scm:
1044 refspec: ''
1045 choosing-strategy: 'default'
1046
1047 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001048 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -08001049 build-timeout: '{build-timeout}'
1050
1051 triggers:
1052 # 12 AM UTC
1053 - timed: 'H 12 * * *'
1054 - gerrit-trigger-release-manually:
1055 server: '{server-name}'
1056 project: '{project}'
1057 branch: '{branch}'
1058
1059 builders:
1060
1061 - provide-maven-settings:
1062 global-settings-file: 'global-settings'
1063 settings-file: '{mvn-settings}'
1064
1065 - inject:
1066 properties-file: version.properties
1067
1068 - maven-target:
1069 maven-version: '{maven-version}'
1070 goals: 'versions:set versions:update-child-modules versions:commit'
1071 properties:
1072 - 'newVersion=${{release_version}}'
1073 settings: '{mvn-settings}'
1074 settings-type: cfp
1075 global-settings: 'global-settings'
1076 global-settings-type: cfp
1077
1078 - docker-login
1079
1080 - maven-docker-push-daily:
1081 maven-version: '{maven-version}'
1082 mvn-settings: '{mvn-settings}'
1083 pom: '{docker-pom}'
1084 # use default as mvn-profile if profile is not needed
1085 mvn-profile: '{mvn-profile}'
1086
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001087 publishers:
1088 - infra-shiplogs:
1089 maven-version: '{maven-version}'
1090
Patrick Brady39f388a2017-03-09 11:26:59 -08001091- job-template:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001092 name: '{project-name}-{stream}-aai-docker-java-daily'
1093 project-type: freestyle
1094 node: 'ubuntu1604-docker-8c-8g'
1095
1096 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001097 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001098 build-days-to-keep: '{build-days-to-keep}'
1099
1100 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001101 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001102 project: '{project}'
1103 branch: '{branch}'
1104 refspec: 'refs/heads/{branch}'
1105 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001106 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001107 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001108
1109 scm:
1110 - gerrit-trigger-scm:
1111 refspec: ''
1112 choosing-strategy: 'default'
1113
1114 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001115 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001116 build-timeout: '{build-timeout}'
1117
1118 triggers:
1119 # 12 AM UTC
1120 - timed: 'H 12 * * *'
1121 - gerrit-trigger-release-manually:
1122 server: '{server-name}'
1123 project: '{project}'
1124 branch: '{branch}'
1125
1126 builders:
1127
1128 - provide-maven-settings:
1129 global-settings-file: 'global-settings'
1130 settings-file: '{mvn-settings}'
1131
1132 - docker-login
1133
1134 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001135 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001136 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001137 goals: 'clean install -DskipTests -B
1138 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001139 settings: '{mvn-settings}'
1140 settings-type: cfp
1141 global-settings: 'global-settings'
1142 global-settings-type: cfp
1143
1144 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001145 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001146 pom: '{pom}'
1147 goals: '{mvn-goals}'
1148 settings: '{mvn-settings}'
1149 settings-type: cfp
1150 global-settings: 'global-settings'
1151 global-settings-type: cfp
1152 properties:
1153 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001154 - docker.pull.registry=nexus3.onap.org:10001
1155 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001156
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001157 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001158
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001159 publishers:
1160 - infra-shiplogs:
1161 maven-version: '{maven-version}'
1162
Carsten Lund2d06a692017-02-23 18:23:07 +00001163- job-template:
1164 # Job template for Java daily release jobs
1165 #
1166 # The purpose of this job template is to run
1167 # - change version in all POM files to the release version specified
1168 # in version.properties. This is done using a script instread of
1169 # the mvn version plugin that assumes some specific parent structure.
1170 # - runs maven clean deploy sonar
1171 #
1172 # The POM files are required to use the Maven staging plugin so the deploy
1173 # does not deploy directly to the release repo.
1174 #
1175 # Required Variables:
1176 # branch: git branch (eg. stable/lithium or master)
1177 name: '{project-name}-{stream}-release-version2-java-daily'
1178
1179 project-type: freestyle
1180 node: '{build-node}'
1181 maven-deploy-properties:
1182 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001183 - infra-properties:
Carsten Lund2d06a692017-02-23 18:23:07 +00001184 build-days-to-keep: '{build-days-to-keep}'
1185
1186 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001187 - infra-parameters:
Carsten Lund2d06a692017-02-23 18:23:07 +00001188 project: '{project}'
1189 branch: '{branch}'
1190 refspec: 'refs/heads/{branch}'
1191 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001192 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001193 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001194
1195 scm:
1196 - gerrit-trigger-scm:
1197 refspec: ''
1198 choosing-strategy: 'default'
1199
1200 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001201 - infra-wrappers:
Carsten Lund2d06a692017-02-23 18:23:07 +00001202 build-timeout: '{build-timeout}'
1203
1204 triggers:
1205 # 11 AM UTC
1206 - timed: 'H 11 * * *'
1207 - gerrit-trigger-release-manually:
1208 server: '{server-name}'
1209 project: '{project}'
1210 branch: '{branch}'
1211
1212 builders:
1213 - provide-maven-settings:
1214 global-settings-file: 'global-settings'
1215 settings-file: '{mvn-settings}'
Andrew Grimbergb7f16152017-02-24 13:13:15 -08001216 - maven-install:
1217 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001218
1219 - inject:
1220 properties-file: version.properties
1221
1222 - shell: !include-raw-escape: include-update-pom-versions.sh
1223
1224 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001225 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001226 goals: 'clean deploy sonar:sonar site:site site:stage-deploy
1227 -Dsonar.host.url=${{SONAR}} -B
1228 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lund2d06a692017-02-23 18:23:07 +00001229 properties:
1230 - '{maven-deploy-properties}'
1231 settings: '{mvn-settings}'
1232 settings-type: cfp
1233 global-settings: 'global-settings'
1234 global-settings-type: cfp
1235
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001236 publishers:
1237 - infra-shiplogs:
1238 maven-version: '{maven-version}'
1239
Carsten Lund2d06a692017-02-23 18:23:07 +00001240- job-template:
1241 # Job template for Java daily release jobs
1242 #
1243 # The purpose of this job template is to run
1244 # - change version in all POM files to the release version specified
1245 # in version.properties. This is done using a script instread of
1246 # the mvn version plugin that assumes some specific parent structure.
1247 # - runs maven clean deploy sonar
1248 #
1249 # The POM files are required to use the Maven staging plugin so the deploy
1250 # does not deploy directly to the release repo.
1251 #
1252 # Required Variables:
1253 # branch: git branch (eg. stable/lithium or master)
1254 # pom: name/location of the pom.xml file relative to the workspace
1255 # pattern: ant file-path pattern relative to the workspace used to
1256 # trigger the job
1257
1258 name: '{project-name}-{stream}-{subproject}-release-version2-java-daily'
1259
1260 project-type: freestyle
1261 node: '{build-node}'
1262 maven-deploy-properties:
1263 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001264 - infra-properties:
Carsten Lund2d06a692017-02-23 18:23:07 +00001265 build-days-to-keep: '{build-days-to-keep}'
1266
1267 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001268 - infra-parameters:
Carsten Lund2d06a692017-02-23 18:23:07 +00001269 project: '{project}'
1270 branch: '{branch}'
1271 refspec: 'refs/heads/{branch}'
1272 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001273 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001274 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001275
1276 scm:
1277 - gerrit-trigger-scm:
1278 refspec: ''
1279 choosing-strategy: 'default'
1280
1281 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001282 - infra-wrappers:
Carsten Lund2d06a692017-02-23 18:23:07 +00001283 build-timeout: '{build-timeout}'
1284
1285 triggers:
1286 # 11 AM UTC
1287 - timed: 'H 11 * * *'
1288 - gerrit-trigger-release-manually:
1289 server: '{server-name}'
1290 project: '{project}'
1291 branch: '{branch}'
1292 files: '{pattern}'
1293
1294 builders:
1295 - provide-maven-settings:
1296 global-settings-file: 'global-settings'
1297 settings-file: '{mvn-settings}'
Andrew Grimbergb7f16152017-02-24 13:13:15 -08001298 - maven-install:
1299 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001300
1301 - inject:
1302 properties-file: version.properties
1303
1304 - shell: !include-raw-escape: include-update-pom-versions.sh
1305
1306 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001307 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001308 pom: '{pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001309 goals: 'clean deploy sonar:sonar site:site site:stage-deploy
1310 -Dsonar.host.url=${{SONAR}} -B
1311 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lund2d06a692017-02-23 18:23:07 +00001312 properties:
1313 - '{maven-deploy-properties}'
1314 settings: '{mvn-settings}'
1315 settings-type: cfp
1316 global-settings: 'global-settings'
1317 global-settings-type: cfp
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001318
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001319 publishers:
1320 - infra-shiplogs:
1321 maven-version: '{maven-version}'
1322
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001323- job-template:
1324 # Template for maven site plugin invocation
1325 #
1326 # It's designed to be triggered when the trigger-job job
1327 # succeeds as there's no need for new documentaiton
1328 # if the build job fails.
1329 #
1330 # Those parameters should be set :
1331 # - site-pom : the pom file that contains the site confiration
1332 # - trigger-job : the name of the project that triggers this job
1333 # upon success. The job name can be
1334 # parameterized.
1335 name: '{project-name}-{stream}-stage-site-java'
1336 project-type: freestyle
Anaël Clossonb8c5fb52017-03-14 15:43:18 +01001337 node: '{build-node}'
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001338
1339 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001340 - infra-properties:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001341 build-days-to-keep: '{build-days-to-keep}'
1342
1343 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001344 - infra-parameters:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001345 project: '{project}'
1346 branch: '{branch}'
1347 refspec: 'refs/heads/{branch}'
1348 artifacts: '{archive-artifacts}'
1349 - maven-exec:
1350 maven-version: '{maven-version}'
1351
1352 scm:
1353 - gerrit-trigger-scm:
1354 refspec: ''
1355 choosing-strategy: 'default'
1356
1357 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001358 - infra-wrappers:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001359 build-timeout: '{build-timeout}'
1360
1361 triggers:
1362 - trigger-on-build-success:
1363 job-name: '{trigger-job}'
1364
1365 builders:
1366 - provide-maven-settings:
1367 global-settings-file: 'global-settings'
1368 settings-file: '{mvn-settings}'
Anaël Closson09166842017-03-15 11:19:40 +01001369 - inject:
1370 properties-file: version.properties
1371 - maven-target:
1372 maven-version: '{maven-version}'
1373 goals: 'versions:set versions:update-child-modules versions:commit'
1374 properties:
1375 - 'newVersion=${{release_version}}'
1376 settings: '{mvn-settings}'
1377 settings-type: cfp
1378 global-settings: 'global-settings'
1379 global-settings-type: cfp
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001380
1381 - maven-target:
1382 maven-version: '{maven-version}'
Anaël Closson03222ed2017-03-13 16:37:09 +01001383 pom: '{site-pom}'
Anaël Clossonb7c8aa32017-03-14 15:50:20 +01001384 goals: 'clean site:site site:stage-deploy'
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001385 settings: '{mvn-settings}'
1386 settings-type: cfp
1387 global-settings: 'global-settings'
1388 global-settings-type: cfp
ig61339fdb9d22017-04-03 17:47:19 +03001389
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001390 publishers:
1391 - infra-shiplogs:
1392 maven-version: '{maven-version}'
1393
ig61339fdb9d22017-04-03 17:47:19 +03001394- job-template:
1395 # Job template for Java merge jobs
1396 #
1397 # The purpose of this job template is to run "maven clean deploy" for
1398 # projects using this template.
1399 #
1400 # Required Variables:
1401 # branch: git branch (eg. stable/lithium or master)
1402 name: '{project-name}-{stream}-sdc-merge-java'
1403
1404 project-type: freestyle
ig6133cb3f8232017-04-05 14:22:42 +03001405 node: 'ubuntu1604-docker-8c-8g'
ig61339fdb9d22017-04-03 17:47:19 +03001406
1407 properties:
1408 - infra-properties:
1409 build-days-to-keep: '{build-days-to-keep}'
1410
1411 parameters:
1412 - infra-parameters:
1413 project: '{project}'
1414 branch: '{branch}'
1415 refspec: 'refs/heads/{branch}'
1416 artifacts: '{archive-artifacts}'
1417 - maven-exec:
1418 maven-version: '{maven-version}'
1419
1420 scm:
1421 - gerrit-trigger-scm:
1422 refspec: ''
1423 choosing-strategy: 'default'
1424
1425 wrappers:
1426 - infra-wrappers:
1427 build-timeout: '{build-timeout}'
1428
1429 triggers:
1430 - gerrit-trigger-patch-merged:
1431 server: '{server-name}'
1432 project: '{project}'
1433 branch: '{branch}'
1434 files: '**'
1435
1436 builders:
1437 - provide-maven-settings:
1438 global-settings-file: 'global-settings'
1439 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001440
1441 - docker-login
1442
ig6133cb3f8232017-04-05 14:22:42 +03001443 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001444 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001445 mvn-settings: '{mvn-settings}'
1446 pom: '{docker-pom}'
1447 # use default as mvn-profile if profile is not needed
1448 mvn-profile: '{mvn-profile}'
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001449
1450 publishers:
1451 - infra-shiplogs:
1452 maven-version: '{maven-version}'
Venkata Harish K Kajur2bf22a02017-05-15 16:22:55 -04001453
1454- job-template:
1455 name: '{project-name}-{stream}-aai-docker-java-version-daily'
1456 project-type: freestyle
1457 node: 'ubuntu1604-docker-8c-8g'
1458
1459 properties:
1460 - infra-properties:
1461 build-days-to-keep: '{build-days-to-keep}'
1462
1463 parameters:
1464 - infra-parameters:
1465 project: '{project}'
1466 branch: '{branch}'
1467 refspec: 'refs/heads/{branch}'
1468 artifacts: '{archive-artifacts}'
1469 - maven-exec:
1470 maven-version: '{maven-version}'
1471
1472 scm:
1473 - gerrit-trigger-scm:
1474 refspec: ''
1475 choosing-strategy: 'default'
1476
1477 wrappers:
1478 - infra-wrappers:
1479 build-timeout: '{build-timeout}'
1480
1481 triggers:
1482 # 12 AM UTC
1483 - timed: 'H 12 * * *'
1484 - gerrit-trigger-release-manually:
1485 server: '{server-name}'
1486 project: '{project}'
1487 branch: '{branch}'
1488
1489 builders:
1490
1491 - provide-maven-settings:
1492 global-settings-file: 'global-settings'
1493 settings-file: '{mvn-settings}'
1494
1495 - docker-login
1496
1497 - maven-target:
1498 maven-version: '{maven-version}'
1499 pom: 'pom.xml'
1500 goals: 'clean install -DskipTests -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
1501 settings: '{mvn-settings}'
1502 settings-type: cfp
1503 global-settings: 'global-settings'
1504 global-settings-type: cfp
1505
1506 - maven-target:
1507 maven-version: '{maven-version}'
1508 pom: '{pom}'
1509 goals: '{mvn-goals}'
1510 settings: '{mvn-settings}'
1511 settings-type: cfp
1512 global-settings: 'global-settings'
1513 global-settings-type: cfp
1514 properties:
1515 - maven.test.skip=true
1516 - docker.pull.registry=nexus3.onap.org:10001
1517 - docker.push.registry=nexus3.onap.org:10003
1518
1519 publishers:
1520 - infra-shiplogs:
1521 maven-version: '{maven-version}'
1522