blob: c3e137951540b8379cdc52813e12227b9cc33181 [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:
JulienBe91c56ec2017-06-21 23:37:39 +0200898 # Job template for building & pushing docker images
899 #
900 # The purpose of this job template is to run :
901 # 1. login to the docker registry
902 # 2. do a clean deploy on the specified profile
903 #
904 # Required Variables:
905 # pom: name/location of the pom.xml file relative to the workspace
906 # profile: the docker profile defined in the pom
907 # maven-properties: properties passed to maven
908 name: '{project-name}-{stream}-docker-java-properties-daily'
909 project-type: freestyle
910 node: 'ubuntu1604-docker-8c-8g'
911 properties:
912 - infra-properties:
913 build-days-to-keep: '{build-days-to-keep}'
914 parameters:
915 - infra-parameters:
916 project: '{project}'
917 branch: '{branch}'
918 refspec: 'refs/heads/{branch}'
919 artifacts: '{archive-artifacts}'
920 - maven-exec:
921 maven-version: '{maven-version}'
922 scm:
923 - gerrit-trigger-scm:
924 refspec: ''
925 choosing-strategy: 'default'
926 wrappers:
927 - infra-wrappers:
928 build-timeout: '{build-timeout}'
929 triggers:
930 # 12 AM UTC
931 - timed: 'H 12 * * *'
932 - gerrit-trigger-release-manually:
933 server: '{server-name}'
934 project: '{project}'
935 branch: '{branch}'
936 builders:
937 - provide-maven-settings:
938 global-settings-file: 'global-settings'
939 settings-file: '{mvn-settings}'
940 - docker-login
941 - maven-docker-push-daily:
942 maven-version: '{maven-version}'
943 mvn-settings: '{mvn-settings}'
944 pom: '{docker-pom}'
945 properties: '{maven-properties}'
946 # use default as mvn-profile if profile is not needed
947 mvn-profile: '{mvn-profile}'
948 publishers:
949 - infra-shiplogs:
950 maven-version: '{maven-version}'
951
952- job-template:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500953 name: '{project-name}-{stream}-docker-java-shell-daily'
954 project-type: freestyle
955 node: 'ubuntu1604-docker-8c-8g'
956
957 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700958 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500959 build-days-to-keep: '{build-days-to-keep}'
960
961 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700962 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500963 project: '{project}'
964 branch: '{branch}'
965 refspec: 'refs/heads/{branch}'
966 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800967 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800968 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500969
970 scm:
971 - gerrit-trigger-scm:
972 refspec: ''
973 choosing-strategy: 'default'
974
975 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700976 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500977 build-timeout: '{build-timeout}'
978
979 triggers:
980 # 12 AM UTC
981 - timed: 'H 12 * * *'
982 - gerrit-trigger-release-manually:
983 server: '{server-name}'
984 project: '{project}'
985 branch: '{branch}'
986
987 builders:
988
989 - provide-maven-settings:
990 global-settings-file: 'global-settings'
991 settings-file: '{mvn-settings}'
992
993 - docker-login
994
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500995 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800996 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500997 goals: '{mvn-goals}'
998 settings: '{mvn-settings}'
999 settings-type: cfp
1000 global-settings: 'global-settings'
1001 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -05001002
1003 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001004
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001005 publishers:
1006 - infra-shiplogs:
1007 maven-version: '{maven-version}'
1008
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001009- job-template:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001010 name: '{project-name}-{stream}-docker-java-version-shell-daily'
1011 project-type: freestyle
1012 node: 'ubuntu1604-docker-8c-8g'
1013
1014 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001015 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001016 build-days-to-keep: '{build-days-to-keep}'
1017
1018 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001019 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001020 project: '{project}'
1021 branch: '{branch}'
1022 refspec: 'refs/heads/{branch}'
1023 artifacts: '{archive-artifacts}'
1024 - maven-exec:
1025 maven-version: '{maven-version}'
1026
1027 scm:
1028 - gerrit-trigger-scm:
1029 refspec: ''
1030 choosing-strategy: 'default'
1031
1032 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001033 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001034 build-timeout: '{build-timeout}'
1035
1036 triggers:
1037 # 12 AM UTC
1038 - timed: 'H 12 * * *'
1039 - gerrit-trigger-release-manually:
1040 server: '{server-name}'
1041 project: '{project}'
1042 branch: '{branch}'
1043
1044 builders:
1045
1046 - provide-maven-settings:
1047 global-settings-file: 'global-settings'
1048 settings-file: '{mvn-settings}'
1049
1050 - inject:
1051 properties-file: version.properties
1052
1053 - maven-target:
1054 maven-version: '{maven-version}'
1055 goals: 'versions:set versions:update-child-modules versions:commit'
1056 properties:
1057 - 'newVersion=${{release_version}}'
1058 settings: '{mvn-settings}'
1059 settings-type: cfp
1060 global-settings: 'global-settings'
1061 global-settings-type: cfp
1062
1063 - docker-login
1064
1065 - maven-target:
1066 maven-version: '{maven-version}'
1067 goals: '{mvn-goals}'
1068 settings: '{mvn-settings}'
1069 settings-type: cfp
1070 global-settings: 'global-settings'
1071 global-settings-type: cfp
1072
1073 - shell: '{script}'
1074
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001075 publishers:
1076 - infra-shiplogs:
1077 maven-version: '{maven-version}'
1078
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001079- job-template:
Patrick Brady39f388a2017-03-09 11:26:59 -08001080 name: '{project-name}-{stream}-docker-version-java-daily'
1081 project-type: freestyle
1082 node: 'ubuntu1604-docker-8c-8g'
1083
1084 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001085 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -08001086 build-days-to-keep: '{build-days-to-keep}'
1087
1088 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001089 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -08001090 project: '{project}'
1091 branch: '{branch}'
1092 refspec: 'refs/heads/{branch}'
1093 artifacts: '{archive-artifacts}'
1094 - maven-exec:
1095 maven-version: '{maven-version}'
1096
1097 scm:
1098 - gerrit-trigger-scm:
1099 refspec: ''
1100 choosing-strategy: 'default'
1101
1102 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001103 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -08001104 build-timeout: '{build-timeout}'
1105
1106 triggers:
1107 # 12 AM UTC
1108 - timed: 'H 12 * * *'
1109 - gerrit-trigger-release-manually:
1110 server: '{server-name}'
1111 project: '{project}'
1112 branch: '{branch}'
1113
1114 builders:
1115
1116 - provide-maven-settings:
1117 global-settings-file: 'global-settings'
1118 settings-file: '{mvn-settings}'
1119
1120 - inject:
1121 properties-file: version.properties
1122
1123 - maven-target:
1124 maven-version: '{maven-version}'
1125 goals: 'versions:set versions:update-child-modules versions:commit'
1126 properties:
1127 - 'newVersion=${{release_version}}'
1128 settings: '{mvn-settings}'
1129 settings-type: cfp
1130 global-settings: 'global-settings'
1131 global-settings-type: cfp
1132
1133 - docker-login
1134
1135 - maven-docker-push-daily:
1136 maven-version: '{maven-version}'
1137 mvn-settings: '{mvn-settings}'
1138 pom: '{docker-pom}'
1139 # use default as mvn-profile if profile is not needed
1140 mvn-profile: '{mvn-profile}'
1141
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001142 publishers:
1143 - infra-shiplogs:
1144 maven-version: '{maven-version}'
1145
Patrick Brady39f388a2017-03-09 11:26:59 -08001146- job-template:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001147 name: '{project-name}-{stream}-aai-docker-java-daily'
1148 project-type: freestyle
1149 node: 'ubuntu1604-docker-8c-8g'
1150
1151 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001152 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001153 build-days-to-keep: '{build-days-to-keep}'
1154
1155 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001156 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001157 project: '{project}'
1158 branch: '{branch}'
1159 refspec: 'refs/heads/{branch}'
1160 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001161 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001162 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001163
1164 scm:
1165 - gerrit-trigger-scm:
1166 refspec: ''
1167 choosing-strategy: 'default'
1168
1169 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001170 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001171 build-timeout: '{build-timeout}'
1172
1173 triggers:
1174 # 12 AM UTC
1175 - timed: 'H 12 * * *'
1176 - gerrit-trigger-release-manually:
1177 server: '{server-name}'
1178 project: '{project}'
1179 branch: '{branch}'
1180
1181 builders:
1182
1183 - provide-maven-settings:
1184 global-settings-file: 'global-settings'
1185 settings-file: '{mvn-settings}'
1186
1187 - docker-login
1188
1189 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001190 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001191 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001192 goals: 'clean install -DskipTests -B
1193 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001194 settings: '{mvn-settings}'
1195 settings-type: cfp
1196 global-settings: 'global-settings'
1197 global-settings-type: cfp
1198
1199 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001200 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001201 pom: '{pom}'
1202 goals: '{mvn-goals}'
1203 settings: '{mvn-settings}'
1204 settings-type: cfp
1205 global-settings: 'global-settings'
1206 global-settings-type: cfp
1207 properties:
1208 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001209 - docker.pull.registry=nexus3.onap.org:10001
1210 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001211
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001212 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001213
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001214 publishers:
1215 - infra-shiplogs:
1216 maven-version: '{maven-version}'
1217
Carsten Lund2d06a692017-02-23 18:23:07 +00001218- job-template:
1219 # Job template for Java daily release jobs
1220 #
1221 # The purpose of this job template is to run
1222 # - change version in all POM files to the release version specified
1223 # in version.properties. This is done using a script instread of
1224 # the mvn version plugin that assumes some specific parent structure.
1225 # - runs maven clean deploy sonar
1226 #
1227 # The POM files are required to use the Maven staging plugin so the deploy
1228 # does not deploy directly to the release repo.
1229 #
1230 # Required Variables:
1231 # branch: git branch (eg. stable/lithium or master)
1232 name: '{project-name}-{stream}-release-version2-java-daily'
1233
1234 project-type: freestyle
1235 node: '{build-node}'
1236 maven-deploy-properties:
1237 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001238 - infra-properties:
Carsten Lund2d06a692017-02-23 18:23:07 +00001239 build-days-to-keep: '{build-days-to-keep}'
1240
1241 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001242 - infra-parameters:
Carsten Lund2d06a692017-02-23 18:23:07 +00001243 project: '{project}'
1244 branch: '{branch}'
1245 refspec: 'refs/heads/{branch}'
1246 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001247 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001248 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001249
1250 scm:
1251 - gerrit-trigger-scm:
1252 refspec: ''
1253 choosing-strategy: 'default'
1254
1255 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001256 - infra-wrappers:
Carsten Lund2d06a692017-02-23 18:23:07 +00001257 build-timeout: '{build-timeout}'
1258
1259 triggers:
1260 # 11 AM UTC
1261 - timed: 'H 11 * * *'
1262 - gerrit-trigger-release-manually:
1263 server: '{server-name}'
1264 project: '{project}'
1265 branch: '{branch}'
1266
1267 builders:
1268 - provide-maven-settings:
1269 global-settings-file: 'global-settings'
1270 settings-file: '{mvn-settings}'
Andrew Grimbergb7f16152017-02-24 13:13:15 -08001271 - maven-install:
1272 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001273
1274 - inject:
1275 properties-file: version.properties
1276
1277 - shell: !include-raw-escape: include-update-pom-versions.sh
1278
1279 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001280 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001281 goals: 'clean deploy sonar:sonar site:site site:stage-deploy
1282 -Dsonar.host.url=${{SONAR}} -B
1283 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lund2d06a692017-02-23 18:23:07 +00001284 properties:
1285 - '{maven-deploy-properties}'
1286 settings: '{mvn-settings}'
1287 settings-type: cfp
1288 global-settings: 'global-settings'
1289 global-settings-type: cfp
1290
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001291 publishers:
1292 - infra-shiplogs:
1293 maven-version: '{maven-version}'
1294
Carsten Lund2d06a692017-02-23 18:23:07 +00001295- job-template:
1296 # Job template for Java daily release jobs
1297 #
1298 # The purpose of this job template is to run
1299 # - change version in all POM files to the release version specified
1300 # in version.properties. This is done using a script instread of
1301 # the mvn version plugin that assumes some specific parent structure.
1302 # - runs maven clean deploy sonar
1303 #
1304 # The POM files are required to use the Maven staging plugin so the deploy
1305 # does not deploy directly to the release repo.
1306 #
1307 # Required Variables:
1308 # branch: git branch (eg. stable/lithium or master)
1309 # pom: name/location of the pom.xml file relative to the workspace
1310 # pattern: ant file-path pattern relative to the workspace used to
1311 # trigger the job
1312
1313 name: '{project-name}-{stream}-{subproject}-release-version2-java-daily'
1314
1315 project-type: freestyle
1316 node: '{build-node}'
1317 maven-deploy-properties:
1318 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001319 - infra-properties:
Carsten Lund2d06a692017-02-23 18:23:07 +00001320 build-days-to-keep: '{build-days-to-keep}'
1321
1322 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001323 - infra-parameters:
Carsten Lund2d06a692017-02-23 18:23:07 +00001324 project: '{project}'
1325 branch: '{branch}'
1326 refspec: 'refs/heads/{branch}'
1327 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001328 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001329 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001330
1331 scm:
1332 - gerrit-trigger-scm:
1333 refspec: ''
1334 choosing-strategy: 'default'
1335
1336 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001337 - infra-wrappers:
Carsten Lund2d06a692017-02-23 18:23:07 +00001338 build-timeout: '{build-timeout}'
1339
1340 triggers:
1341 # 11 AM UTC
1342 - timed: 'H 11 * * *'
1343 - gerrit-trigger-release-manually:
1344 server: '{server-name}'
1345 project: '{project}'
1346 branch: '{branch}'
1347 files: '{pattern}'
1348
1349 builders:
1350 - provide-maven-settings:
1351 global-settings-file: 'global-settings'
1352 settings-file: '{mvn-settings}'
Andrew Grimbergb7f16152017-02-24 13:13:15 -08001353 - maven-install:
1354 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001355
1356 - inject:
1357 properties-file: version.properties
1358
1359 - shell: !include-raw-escape: include-update-pom-versions.sh
1360
1361 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001362 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001363 pom: '{pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001364 goals: 'clean deploy sonar:sonar site:site site:stage-deploy
1365 -Dsonar.host.url=${{SONAR}} -B
1366 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lund2d06a692017-02-23 18:23:07 +00001367 properties:
1368 - '{maven-deploy-properties}'
1369 settings: '{mvn-settings}'
1370 settings-type: cfp
1371 global-settings: 'global-settings'
1372 global-settings-type: cfp
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001373
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001374 publishers:
1375 - infra-shiplogs:
1376 maven-version: '{maven-version}'
1377
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001378- job-template:
1379 # Template for maven site plugin invocation
1380 #
1381 # It's designed to be triggered when the trigger-job job
1382 # succeeds as there's no need for new documentaiton
1383 # if the build job fails.
1384 #
1385 # Those parameters should be set :
1386 # - site-pom : the pom file that contains the site confiration
1387 # - trigger-job : the name of the project that triggers this job
1388 # upon success. The job name can be
1389 # parameterized.
1390 name: '{project-name}-{stream}-stage-site-java'
1391 project-type: freestyle
Anaël Clossonb8c5fb52017-03-14 15:43:18 +01001392 node: '{build-node}'
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001393
1394 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001395 - infra-properties:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001396 build-days-to-keep: '{build-days-to-keep}'
1397
1398 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001399 - infra-parameters:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001400 project: '{project}'
1401 branch: '{branch}'
1402 refspec: 'refs/heads/{branch}'
1403 artifacts: '{archive-artifacts}'
1404 - maven-exec:
1405 maven-version: '{maven-version}'
1406
1407 scm:
1408 - gerrit-trigger-scm:
1409 refspec: ''
1410 choosing-strategy: 'default'
1411
1412 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001413 - infra-wrappers:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001414 build-timeout: '{build-timeout}'
1415
1416 triggers:
1417 - trigger-on-build-success:
1418 job-name: '{trigger-job}'
1419
1420 builders:
1421 - provide-maven-settings:
1422 global-settings-file: 'global-settings'
1423 settings-file: '{mvn-settings}'
Anaël Closson09166842017-03-15 11:19:40 +01001424 - inject:
1425 properties-file: version.properties
1426 - maven-target:
1427 maven-version: '{maven-version}'
1428 goals: 'versions:set versions:update-child-modules versions:commit'
1429 properties:
1430 - 'newVersion=${{release_version}}'
1431 settings: '{mvn-settings}'
1432 settings-type: cfp
1433 global-settings: 'global-settings'
1434 global-settings-type: cfp
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001435
1436 - maven-target:
1437 maven-version: '{maven-version}'
Anaël Closson03222ed2017-03-13 16:37:09 +01001438 pom: '{site-pom}'
Anaël Clossonb7c8aa32017-03-14 15:50:20 +01001439 goals: 'clean site:site site:stage-deploy'
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001440 settings: '{mvn-settings}'
1441 settings-type: cfp
1442 global-settings: 'global-settings'
1443 global-settings-type: cfp
ig61339fdb9d22017-04-03 17:47:19 +03001444
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001445 publishers:
1446 - infra-shiplogs:
1447 maven-version: '{maven-version}'
1448
ig61339fdb9d22017-04-03 17:47:19 +03001449- job-template:
1450 # Job template for Java merge jobs
1451 #
1452 # The purpose of this job template is to run "maven clean deploy" for
1453 # projects using this template.
1454 #
1455 # Required Variables:
1456 # branch: git branch (eg. stable/lithium or master)
1457 name: '{project-name}-{stream}-sdc-merge-java'
1458
1459 project-type: freestyle
ig6133cb3f8232017-04-05 14:22:42 +03001460 node: 'ubuntu1604-docker-8c-8g'
ig61339fdb9d22017-04-03 17:47:19 +03001461
1462 properties:
1463 - infra-properties:
1464 build-days-to-keep: '{build-days-to-keep}'
1465
1466 parameters:
1467 - infra-parameters:
1468 project: '{project}'
1469 branch: '{branch}'
1470 refspec: 'refs/heads/{branch}'
1471 artifacts: '{archive-artifacts}'
1472 - maven-exec:
1473 maven-version: '{maven-version}'
1474
1475 scm:
1476 - gerrit-trigger-scm:
1477 refspec: ''
1478 choosing-strategy: 'default'
1479
1480 wrappers:
1481 - infra-wrappers:
1482 build-timeout: '{build-timeout}'
1483
1484 triggers:
1485 - gerrit-trigger-patch-merged:
1486 server: '{server-name}'
1487 project: '{project}'
1488 branch: '{branch}'
1489 files: '**'
1490
1491 builders:
1492 - provide-maven-settings:
1493 global-settings-file: 'global-settings'
1494 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001495
1496 - docker-login
1497
ig6133cb3f8232017-04-05 14:22:42 +03001498 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001499 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001500 mvn-settings: '{mvn-settings}'
1501 pom: '{docker-pom}'
1502 # use default as mvn-profile if profile is not needed
1503 mvn-profile: '{mvn-profile}'
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001504
1505 publishers:
1506 - infra-shiplogs:
1507 maven-version: '{maven-version}'
Venkata Harish K Kajur2bf22a02017-05-15 16:22:55 -04001508
1509- job-template:
1510 name: '{project-name}-{stream}-aai-docker-java-version-daily'
1511 project-type: freestyle
1512 node: 'ubuntu1604-docker-8c-8g'
1513
1514 properties:
1515 - infra-properties:
1516 build-days-to-keep: '{build-days-to-keep}'
1517
1518 parameters:
1519 - infra-parameters:
1520 project: '{project}'
1521 branch: '{branch}'
1522 refspec: 'refs/heads/{branch}'
1523 artifacts: '{archive-artifacts}'
1524 - maven-exec:
1525 maven-version: '{maven-version}'
1526
1527 scm:
1528 - gerrit-trigger-scm:
1529 refspec: ''
1530 choosing-strategy: 'default'
1531
1532 wrappers:
1533 - infra-wrappers:
1534 build-timeout: '{build-timeout}'
1535
1536 triggers:
1537 # 12 AM UTC
1538 - timed: 'H 12 * * *'
1539 - gerrit-trigger-release-manually:
1540 server: '{server-name}'
1541 project: '{project}'
1542 branch: '{branch}'
1543
1544 builders:
1545
1546 - provide-maven-settings:
1547 global-settings-file: 'global-settings'
1548 settings-file: '{mvn-settings}'
1549
1550 - docker-login
1551
1552 - maven-target:
1553 maven-version: '{maven-version}'
1554 pom: 'pom.xml'
1555 goals: 'clean install -DskipTests -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
1556 settings: '{mvn-settings}'
1557 settings-type: cfp
1558 global-settings: 'global-settings'
1559 global-settings-type: cfp
1560
1561 - maven-target:
1562 maven-version: '{maven-version}'
1563 pom: '{pom}'
1564 goals: '{mvn-goals}'
1565 settings: '{mvn-settings}'
1566 settings-type: cfp
1567 global-settings: 'global-settings'
1568 global-settings-type: cfp
1569 properties:
1570 - maven.test.skip=true
1571 - docker.pull.registry=nexus3.onap.org:10001
1572 - docker.push.registry=nexus3.onap.org:10003
1573
1574 publishers:
1575 - infra-shiplogs:
1576 maven-version: '{maven-version}'
1577