blob: 90c006149deae7e556d26a9f885b7c574fb90070 [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'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050094 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050095
96 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070097 - infra-wrappers:
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050098 build-timeout: '{build-timeout}'
99
100 triggers:
101 - gerrit-trigger-patch-submitted:
102 server: '{server-name}'
103 project: '{project}'
104 branch: '{branch}'
105 files: '**'
106
107 builders:
108 - provide-maven-settings:
109 global-settings-file: 'global-settings'
110 settings-file: '{mvn-settings}'
111 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800112 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400113 goals: 'clean install -DskipTests=true -B
114 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -0500115 settings: '{mvn-settings}'
116 settings-type: cfp
117 global-settings: 'global-settings'
118 global-settings-type: cfp
119 maven-opts:
120 - maven.test.skip=true
121
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700122 publishers:
123 - infra-shiplogs:
124 maven-version: '{maven-version}'
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -0500125
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -0500126- job-template:
127 # Job template for Java verify jobs
128 #
129 # The purpose of this job template is to run "maven clean install" for
130 # projects using this template.
131 #
132 # Required Variables:
133 # branch: git branch (eg. stable/lithium or master)
134
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800135 name: '{project-name}-{stream}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800136
137 project-type: freestyle
138 concurrent: true
139 node: '{build-node}'
140
141 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700142 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800143 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800144
145 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700146 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800147 project: '{project}'
148 branch: '{branch}'
149 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800150 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800151 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800152 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800153
154 scm:
155 - gerrit-trigger-scm:
156 refspec: '$GERRIT_REFSPEC'
157 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500158 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800159
160 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700161 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800162 build-timeout: '{build-timeout}'
163
164 triggers:
165 - gerrit-trigger-patch-submitted:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800166 server: '{server-name}'
167 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800168 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800169 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800170
171 builders:
172 - provide-maven-settings:
173 global-settings-file: 'global-settings'
174 settings-file: '{mvn-settings}'
175 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800176 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400177 goals: 'clean install -B
178 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800179 settings: '{mvn-settings}'
180 settings-type: cfp
181 global-settings: 'global-settings'
182 global-settings-type: cfp
183
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700184 publishers:
185 - infra-shiplogs:
186 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800187
188- job-template:
JulienBe77903ed2017-07-17 15:30:26 +0200189 # Job template for Java verify jobs running checkstyle at the end
190 # When checkstyle will be fully incorporated, it is meant to replace
191 # '{project-name}-{stream}-verify-java-checkstyle'
192 # The purpose of this job template is to run "maven clean install" for
193 # projects using this template.
194 #
195 # Required Variables:
196 # branch: git branch (eg. stable/lithium or master)
197 name: '{project-name}-{stream}-verify-java-checkstyle'
198 project-type: freestyle
199 concurrent: true
200 node: '{build-node}'
201 properties:
202 - infra-properties:
203 build-days-to-keep: '{build-days-to-keep}'
204 parameters:
205 - infra-parameters:
206 project: '{project}'
207 branch: '{branch}'
208 refspec: 'refs/heads/{branch}'
209 artifacts: '{archive-artifacts}'
210 - maven-exec:
211 maven-version: '{maven-version}'
212 scm:
213 - gerrit-trigger-scm:
214 refspec: '$GERRIT_REFSPEC'
215 choosing-strategy: 'gerrit'
216 submodule-recursive: '{submodule-recursive}'
217 wrappers:
218 - infra-wrappers:
219 build-timeout: '{build-timeout}'
220 triggers:
221 - gerrit-trigger-patch-submitted:
222 server: '{server-name}'
223 project: '{project}'
224 branch: '{branch}'
225 files: '**'
226 builders:
227 - provide-maven-settings:
228 global-settings-file: 'global-settings'
229 settings-file: '{mvn-settings}'
230 - maven-target:
231 maven-version: '{maven-version}'
232 goals: 'clean install -B
233 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
234 settings: '{mvn-settings}'
235 settings-type: cfp
236 global-settings: 'global-settings'
237 global-settings-type: cfp
238 publishers:
239 - infra-shiplogs:
240 maven-version: '{maven-version}'
241 - checkstyle-result
242
243- job-template:
JulienBeef823f12017-04-12 04:52:40 -0700244 # Job template for Java verify jobs that takes a maven template
245 #
246 # The purpose of this job template is to run "maven clean install -P {x}"
247 # for projects using this template.
248 #
249 # Required Variables:
250 # branch: git branch (eg. stable/lithium or master)
251
252 name: '{project-name}-{stream}-verify-profile-java'
253
254 project-type: freestyle
255 concurrent: true
256 node: '{build-node}'
257
258 properties:
259 - infra-properties:
260 build-days-to-keep: '{build-days-to-keep}'
261
262 parameters:
263 - infra-parameters:
264 project: '{project}'
265 branch: '{branch}'
266 refspec: 'refs/heads/{branch}'
267 artifacts: '{archive-artifacts}'
268 - maven-exec:
269 maven-version: '{maven-version}'
270
271 scm:
272 - gerrit-trigger-scm:
273 refspec: '$GERRIT_REFSPEC'
274 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500275 submodule-recursive: '{submodule-recursive}'
JulienBeef823f12017-04-12 04:52:40 -0700276
277 wrappers:
278 - infra-wrappers:
279 build-timeout: '{build-timeout}'
280
281 triggers:
282 - gerrit-trigger-patch-submitted:
283 server: '{server-name}'
284 project: '{project}'
285 branch: '{branch}'
286 files: '**'
287
288 builders:
289 - provide-maven-settings:
290 global-settings-file: 'global-settings'
291 settings-file: '{mvn-settings}'
292 - maven-target:
293 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400294 goals: 'clean install -P {mvn-profile} -B
295 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBeef823f12017-04-12 04:52:40 -0700296 settings: '{mvn-settings}'
297 settings-type: cfp
298 global-settings: 'global-settings'
299 global-settings-type: cfp
300
301 publishers:
302 - infra-shiplogs:
303 maven-version: '{maven-version}'
304
305- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800306 # Job template for Java verify jobs with POM not at the root
307 #
308 # The purpose of this job template is to run "maven clean install" for
309 # projects using this template.
310 #
311 # Required Variables:
312 # branch: git branch (eg. stable/lithium or master)
313 # pom: name/location of the pom.xml file relative to the workspace
314 # pattern: ant file-path pattern relative to the workspace used to
315 # trigger the job
316
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800317 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800318
319 project-type: freestyle
320 concurrent: true
321 node: '{build-node}'
322
323 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700324 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800325 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800326
327 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700328 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800329 project: '{project}'
330 branch: '{branch}'
331 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800332 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800333 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800334 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800335
336 scm:
337 - gerrit-trigger-scm:
338 refspec: '$GERRIT_REFSPEC'
339 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500340 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800341
342 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700343 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800344 build-timeout: '{build-timeout}'
345
346 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800347 - gerrit-trigger-patch-submitted:
348 server: '{server-name}'
349 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800350 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800351 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800352
353 builders:
354 - provide-maven-settings:
355 global-settings-file: 'global-settings'
356 settings-file: '{mvn-settings}'
357 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800358 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800359 pom: '{pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400360 goals: 'clean install -B
361 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800362 settings: '{mvn-settings}'
363 settings-type: cfp
364 global-settings: 'global-settings'
365 global-settings-type: cfp
366
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700367 publishers:
368 - infra-shiplogs:
369 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800370
371- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100372 # Job template for Java daily release jobs
373 #
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800374 # The purpose of this job template is to run "maven version && maven clean
375 # deploy" for projects using this template.
JulienBe2f4ee072017-02-01 21:42:32 +0100376 #
377 # Required Variables:
378 # branch: git branch (eg. stable/lithium or master)
379 name: '{project-name}-{stream}-release-java-daily'
380
381 project-type: freestyle
382 node: '{build-node}'
383 maven-deploy-properties:
384 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700385 - infra-properties:
JulienBe2f4ee072017-02-01 21:42:32 +0100386 build-days-to-keep: '{build-days-to-keep}'
387
388 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700389 - infra-parameters:
JulienBe2f4ee072017-02-01 21:42:32 +0100390 project: '{project}'
391 branch: '{branch}'
392 refspec: 'refs/heads/{branch}'
393 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800394 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800395 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100396
397 scm:
398 - gerrit-trigger-scm:
399 refspec: ''
400 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500401 submodule-recursive: '{submodule-recursive}'
JulienBe2f4ee072017-02-01 21:42:32 +0100402
403 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700404 - infra-wrappers:
JulienBe2f4ee072017-02-01 21:42:32 +0100405 build-timeout: '{build-timeout}'
406
407 triggers:
408 # 11 AM UTC
409 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800410 - gerrit-trigger-release-manually:
411 server: '{server-name}'
412 project: '{project}'
413 branch: '{branch}'
JulienBe2f4ee072017-02-01 21:42:32 +0100414
415 builders:
416 - provide-maven-settings:
417 global-settings-file: 'global-settings'
418 settings-file: '{mvn-settings}'
419
JulienBe5641aa02017-02-17 01:08:38 -0800420 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800421 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400422 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}} -B
423 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBe5641aa02017-02-17 01:08:38 -0800424 properties:
425 - '{maven-deploy-properties}'
Jessica Wagantall6223d1d2017-08-07 14:46:58 -0700426 java-opts:
427 - '-Xmx4096m -XX:MaxPermSize=512m'
JulienBe5641aa02017-02-17 01:08:38 -0800428 settings: '{mvn-settings}'
429 settings-type: cfp
430 global-settings: 'global-settings'
431 global-settings-type: cfp
432
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700433 publishers:
434 - infra-shiplogs:
435 maven-version: '{maven-version}'
436
JulienBe5641aa02017-02-17 01:08:38 -0800437- job-template:
JulienBe77903ed2017-07-17 15:30:26 +0200438 # Job template for Java daily release jobs running checkstyle at the end
439 # When checkstyle will be fully incorporated, it is meant to replace
440 # '{project-name}-{stream}-release-java-daily'
441 # The purpose of this job template is to run "maven version && maven clean
442 # deploy" for projects using this template.
443 #
444 # Required Variables:
445 # branch: git branch (eg. stable/lithium or master)
446 name: '{project-name}-{stream}-release-java-daily-checkstyle'
447 project-type: freestyle
448 node: '{build-node}'
449 maven-deploy-properties:
450 properties:
451 - infra-properties:
452 build-days-to-keep: '{build-days-to-keep}'
453 parameters:
454 - infra-parameters:
455 project: '{project}'
456 branch: '{branch}'
457 refspec: 'refs/heads/{branch}'
458 artifacts: '{archive-artifacts}'
459 - maven-exec:
460 maven-version: '{maven-version}'
461 scm:
462 - gerrit-trigger-scm:
463 refspec: ''
464 choosing-strategy: 'default'
465 submodule-recursive: '{submodule-recursive}'
466 wrappers:
467 - infra-wrappers:
468 build-timeout: '{build-timeout}'
469 triggers:
470 # 11 AM UTC
471 - timed: 'H 11 * * *'
472 - gerrit-trigger-release-manually:
473 server: '{server-name}'
474 project: '{project}'
475 branch: '{branch}'
476 builders:
477 - provide-maven-settings:
478 global-settings-file: 'global-settings'
479 settings-file: '{mvn-settings}'
480 - maven-target:
481 maven-version: '{maven-version}'
482 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}} -B
483 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
484 properties:
485 - '{maven-deploy-properties}'
486 settings: '{mvn-settings}'
487 settings-type: cfp
488 global-settings: 'global-settings'
489 global-settings-type: cfp
490 publishers:
491 - infra-shiplogs:
492 maven-version: '{maven-version}'
493 - checkstyle-result-daily
494
495- job-template:
JulienBe5641aa02017-02-17 01:08:38 -0800496 # Job template for Java daily release jobs
497 #
498 # The purpose of this job template is to run "maven version && maven clean
499 # deploy" for projects using this template.
500 #
501 # Required Variables:
502 # branch: git branch (eg. stable/lithium or master)
Pamela Dragosh55ceb8f2017-05-23 12:23:16 -0400503 name: '{project-name}-{stream}-release-version-java-daily-no-sonar'
504
505 project-type: freestyle
506 node: '{build-node}'
507 maven-deploy-properties:
508 properties:
509 - infra-properties:
510 build-days-to-keep: '{build-days-to-keep}'
511
512 parameters:
513 - infra-parameters:
514 project: '{project}'
515 branch: '{branch}'
516 refspec: 'refs/heads/{branch}'
517 artifacts: '{archive-artifacts}'
518 - maven-exec:
519 maven-version: '{maven-version}'
520
521 scm:
522 - gerrit-trigger-scm:
523 refspec: ''
524 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500525 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh55ceb8f2017-05-23 12:23:16 -0400526
527 wrappers:
528 - infra-wrappers:
529 build-timeout: '{build-timeout}'
530
531 triggers:
532 # 11 AM UTC
533 - timed: 'H 11 * * *'
534 - gerrit-trigger-release-manually:
535 server: '{server-name}'
536 project: '{project}'
537 branch: '{branch}'
538
539 builders:
540 - provide-maven-settings:
541 global-settings-file: 'global-settings'
542 settings-file: '{mvn-settings}'
543
544 - inject:
545 properties-file: version.properties
546 - maven-target:
547 maven-version: '{maven-version}'
Christopher Lott (cl778h)253e61f2017-07-10 15:44:50 -0400548 goals: 'versions:set versions:update-child-modules versions:commit -B'
Pamela Dragosh55ceb8f2017-05-23 12:23:16 -0400549 properties:
550 - 'newVersion=${{release_version}}'
551 settings: '{mvn-settings}'
552 settings-type: cfp
553 global-settings: 'global-settings'
554 global-settings-type: cfp
555
556 - maven-target:
557 maven-version: '{maven-version}'
558 goals: 'clean deploy -B
559 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
560 properties:
561 - '{maven-deploy-properties}'
562 settings: '{mvn-settings}'
563 settings-type: cfp
564 global-settings: 'global-settings'
565 global-settings-type: cfp
566
567 publishers:
568 - infra-shiplogs:
569 maven-version: '{maven-version}'
570
571- job-template:
572 # Job template for Java daily release jobs
573 #
574 # The purpose of this job template is to run "maven version && maven clean
575 # deploy" for projects using this template.
576 #
577 # Required Variables:
578 # branch: git branch (eg. stable/lithium or master)
JulienBe5641aa02017-02-17 01:08:38 -0800579 name: '{project-name}-{stream}-release-version-java-daily'
580
581 project-type: freestyle
582 node: '{build-node}'
583 maven-deploy-properties:
584 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700585 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800586 build-days-to-keep: '{build-days-to-keep}'
587
588 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700589 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800590 project: '{project}'
591 branch: '{branch}'
592 refspec: 'refs/heads/{branch}'
593 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800594 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800595 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800596
597 scm:
598 - gerrit-trigger-scm:
599 refspec: ''
600 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500601 submodule-recursive: '{submodule-recursive}'
JulienBe5641aa02017-02-17 01:08:38 -0800602
603 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700604 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800605 build-timeout: '{build-timeout}'
606
607 triggers:
608 # 11 AM UTC
609 - timed: 'H 11 * * *'
610 - gerrit-trigger-release-manually:
611 server: '{server-name}'
612 project: '{project}'
613 branch: '{branch}'
614
615 builders:
616 - provide-maven-settings:
617 global-settings-file: 'global-settings'
618 settings-file: '{mvn-settings}'
619
JulienBe2f4ee072017-02-01 21:42:32 +0100620 - inject:
621 properties-file: version.properties
622 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800623 maven-version: '{maven-version}'
Christopher Lott (cl778h)253e61f2017-07-10 15:44:50 -0400624 goals: 'versions:set versions:update-child-modules versions:commit -B'
JulienBe2f4ee072017-02-01 21:42:32 +0100625 properties:
626 - 'newVersion=${{release_version}}'
627 settings: '{mvn-settings}'
628 settings-type: cfp
629 global-settings: 'global-settings'
630 global-settings-type: cfp
631
632 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800633 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400634 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}} -B
635 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800636 properties:
637 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100638 settings: '{mvn-settings}'
639 settings-type: cfp
640 global-settings: 'global-settings'
641 global-settings-type: cfp
642
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700643 publishers:
644 - infra-shiplogs:
645 maven-version: '{maven-version}'
646
JulienBe2f4ee072017-02-01 21:42:32 +0100647- job-template:
Carsten Lundda8b6972017-02-15 23:59:25 +0000648 # Job template for Java daily release jobs with POM not at the root
649 #
650 # The purpose of this job template is to run "maven version && maven clean
651 # deploy" for projects using this template.
652 #
653 # Required Variables:
654 # branch: git branch (eg. stable/lithium or master)
655 # pom: name/location of the pom.xml file relative to the workspace
656
657
658 name: '{project-name}-{stream}-{subproject}-release-java-daily'
659
660 project-type: freestyle
661 node: '{build-node}'
662 maven-deploy-properties:
663 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700664 - infra-properties:
Carsten Lundda8b6972017-02-15 23:59:25 +0000665 build-days-to-keep: '{build-days-to-keep}'
666
667 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700668 - infra-parameters:
Carsten Lundda8b6972017-02-15 23:59:25 +0000669 project: '{project}'
670 branch: '{branch}'
671 refspec: 'refs/heads/{branch}'
672 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800673 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800674 maven-version: '{maven-version}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000675
676 scm:
677 - gerrit-trigger-scm:
678 refspec: ''
679 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500680 submodule-recursive: '{submodule-recursive}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000681
682 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700683 - infra-wrappers:
Carsten Lundda8b6972017-02-15 23:59:25 +0000684 build-timeout: '{build-timeout}'
685
686 triggers:
687 # 11 AM UTC
688 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800689 - gerrit-trigger-release-manually:
690 server: '{server-name}'
691 project: '{project}'
692 branch: '{branch}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000693
694 builders:
695 - provide-maven-settings:
696 global-settings-file: 'global-settings'
697 settings-file: '{mvn-settings}'
698
Carsten Lundda8b6972017-02-15 23:59:25 +0000699 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800700 maven-version: '{maven-version}'
Carsten Lund63cd3b82017-02-18 18:19:22 +0000701 pom: '{pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400702 goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}} -B
703 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lundda8b6972017-02-15 23:59:25 +0000704 properties:
705 - '{maven-deploy-properties}'
706 settings: '{mvn-settings}'
707 settings-type: cfp
708 global-settings: 'global-settings'
709 global-settings-type: cfp
710
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700711 publishers:
712 - infra-shiplogs:
713 maven-version: '{maven-version}'
714
Carsten Lundda8b6972017-02-15 23:59:25 +0000715- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800716 # Job template for Java merge jobs
717 #
718 # The purpose of this job template is to run "maven clean deploy" for
719 # projects using this template.
720 #
721 # Required Variables:
722 # branch: git branch (eg. stable/lithium or master)
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800723 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800724
725 project-type: freestyle
726 node: '{build-node}'
727
728 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700729 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800730 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800731
732 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700733 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800734 project: '{project}'
735 branch: '{branch}'
736 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800737 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800738 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800739 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800740
741 scm:
742 - gerrit-trigger-scm:
743 refspec: ''
744 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500745 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800746
747 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700748 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800749 build-timeout: '{build-timeout}'
750
751 triggers:
752 - gerrit-trigger-patch-merged:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800753 server: '{server-name}'
754 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800755 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800756 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800757
758 builders:
759 - provide-maven-settings:
760 global-settings-file: 'global-settings'
761 settings-file: '{mvn-settings}'
762 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800763 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400764 goals: 'clean deploy -B
765 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800766 settings: '{mvn-settings}'
767 settings-type: cfp
768 global-settings: 'global-settings'
769 global-settings-type: cfp
770
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700771 publishers:
772 - infra-shiplogs:
773 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800774
775- job-template:
JulienBeef823f12017-04-12 04:52:40 -0700776 # Job template for Java merge jobs that takes a maven template
777 #
778 # The purpose of this job template is to run "maven clean deploy -P {x}"
779 # for projects using this template.
780 #
781 # Required Variables:
782 # branch: git branch (eg. stable/lithium or master)
783 name: '{project-name}-{stream}-merge-profile-java'
784
785 project-type: freestyle
786 node: '{build-node}'
787
788 properties:
789 - infra-properties:
790 build-days-to-keep: '{build-days-to-keep}'
791
792 parameters:
793 - infra-parameters:
794 project: '{project}'
795 branch: '{branch}'
796 refspec: 'refs/heads/{branch}'
797 artifacts: '{archive-artifacts}'
798 - maven-exec:
799 maven-version: '{maven-version}'
800
801 scm:
802 - gerrit-trigger-scm:
803 refspec: ''
804 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500805 submodule-recursive: '{submodule-recursive}'
JulienBeef823f12017-04-12 04:52:40 -0700806
807 wrappers:
808 - infra-wrappers:
809 build-timeout: '{build-timeout}'
810
811 triggers:
812 - gerrit-trigger-patch-merged:
813 server: '{server-name}'
814 project: '{project}'
815 branch: '{branch}'
816 files: '**'
817
818 builders:
819 - provide-maven-settings:
820 global-settings-file: 'global-settings'
821 settings-file: '{mvn-settings}'
Determe, Sebastien (sd378r)62e4e662017-04-26 08:00:00 -0700822
823 - docker-login
824
JulienBeef823f12017-04-12 04:52:40 -0700825 - maven-target:
826 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400827 goals: 'clean deploy -P {mvn-profile} -B
828 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBeef823f12017-04-12 04:52:40 -0700829 settings: '{mvn-settings}'
830 settings-type: cfp
831 global-settings: 'global-settings'
832 global-settings-type: cfp
Determe, Sebastien (sd378r)345956b2017-04-28 08:45:52 -0700833 properties:
834 - docker.pull.registry=nexus3.onap.org:10001
835 - docker.push.registry=nexus3.onap.org:10003
JulienBeef823f12017-04-12 04:52:40 -0700836
837 publishers:
838 - infra-shiplogs:
839 maven-version: '{maven-version}'
840
841- job-template:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800842 # Job template for Java merge jobs that should also be triggered by upstream
843 # merges
844 #
845 # Required Variables:
846 # stream: release stream
847 # branch: git branch
848 # dependencies: fully qualified upstream job name to trigger on
849 # this may be ''
850 name: '{project-name}-{stream}-downstream-merge-java'
851
852 project-type: freestyle
853 node: '{build-node}'
854
855 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700856 - infra-properties:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800857 build-days-to-keep: '{build-days-to-keep}'
858
859 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700860 - infra-parameters:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800861 project: '{project}'
862 branch: '{branch}'
863 refspec: 'refs/heads/{branch}'
864 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800865 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800866 maven-version: '{maven-version}'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800867
868 scm:
869 - gerrit-trigger-scm:
870 refspec: ''
871 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500872 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800873
874 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700875 - infra-wrappers:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800876 build-timeout: '{build-timeout}'
877
878 triggers:
879 - reverse:
880 jobs: '{dependencies}'
881 result: 'success'
882 - gerrit-trigger-patch-merged:
883 server: '{server-name}'
884 project: '{project}'
885 branch: '{branch}'
886 files: '**'
887
888 builders:
889 - provide-maven-settings:
890 global-settings-file: 'global-settings'
891 settings-file: '{mvn-settings}'
892 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800893 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400894 goals: 'clean deploy -B
895 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800896 settings: '{mvn-settings}'
897 settings-type: cfp
898 global-settings: 'global-settings'
899 global-settings-type: cfp
900
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700901 publishers:
902 - infra-shiplogs:
903 maven-version: '{maven-version}'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800904
905- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800906 # Job template for Java merge jobs with POM not at the root
907 #
908 # The purpose of this job template is to run "maven clean deploy" for
909 # projects using this template.
910 #
911 # Required Variables:
912 # branch: git branch (eg. stable/lithium or master)
913 # pom: name/location of the pom.xml file relative to the workspace
914 # pattern: ant file-path pattern relative to the workspace used to
915 # trigger the job
916
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800917 name: '{project-name}-{stream}-{subproject}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800918
919 project-type: freestyle
920 node: '{build-node}'
921
922 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700923 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800924 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800925
926 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700927 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800928 project: '{project}'
929 branch: '{branch}'
930 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800931 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800932 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800933 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800934
935 scm:
936 - gerrit-trigger-scm:
937 refspec: ''
938 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500939 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800940
941 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700942 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800943 build-timeout: '{build-timeout}'
944
945 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800946 - gerrit-trigger-patch-merged:
947 server: '{server-name}'
948 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800949 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800950 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800951
952 builders:
953 - provide-maven-settings:
954 global-settings-file: 'global-settings'
955 settings-file: '{mvn-settings}'
956 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800957 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800958 pom: '{pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400959 goals: 'clean deploy -B
960 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800961 settings: '{mvn-settings}'
962 settings-type: cfp
963 global-settings: 'global-settings'
964 global-settings-type: cfp
965
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700966 publishers:
967 - infra-shiplogs:
968 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100969
970- job-template:
971 name: '{project-name}-{stream}-docker-java-daily'
972 project-type: freestyle
Andrew Grimberg2137b1d2017-02-15 07:24:53 -0800973 node: 'ubuntu1604-docker-8c-8g'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100974
975 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700976 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100977 build-days-to-keep: '{build-days-to-keep}'
978
979 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700980 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100981 project: '{project}'
982 branch: '{branch}'
983 refspec: 'refs/heads/{branch}'
984 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800985 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800986 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100987
988 scm:
989 - gerrit-trigger-scm:
990 refspec: ''
991 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500992 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100993
Anaël Clossonabbafb52017-02-09 17:55:10 +0100994 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700995 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100996 build-timeout: '{build-timeout}'
997
998 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800999 # 12 AM UTC
Anaël Clossonabbafb52017-02-09 17:55:10 +01001000 - timed: 'H 12 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -08001001 - gerrit-trigger-release-manually:
1002 server: '{server-name}'
1003 project: '{project}'
1004 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +01001005
1006 builders:
Anaël Closson63e090e2017-02-15 14:50:45 +01001007
Anaël Clossonabbafb52017-02-09 17:55:10 +01001008 - provide-maven-settings:
1009 global-settings-file: 'global-settings'
1010 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +01001011
Anaël Closson63e090e2017-02-15 14:50:45 +01001012 - docker-login
1013
Anaël Clossonabbafb52017-02-09 17:55:10 +01001014 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -08001015 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +01001016 mvn-settings: '{mvn-settings}'
1017 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +01001018 # use default as mvn-profile if profile is not needed
1019 mvn-profile: '{mvn-profile}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -05001020
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001021 publishers:
1022 - infra-shiplogs:
1023 maven-version: '{maven-version}'
1024
Pamela Dragoshaccf6452017-02-17 08:09:31 -05001025- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +02001026 # Job template for building & pushing docker images
1027 #
1028 # The purpose of this job template is to run :
1029 # 1. login to the docker registry
1030 # 2. do a clean deploy on the specified profile
1031 #
1032 # Required Variables:
1033 # pom: name/location of the pom.xml file relative to the workspace
1034 # profile: the docker profile defined in the pom
1035 # maven-properties: properties passed to maven
1036 name: '{project-name}-{stream}-docker-java-properties-daily'
1037 project-type: freestyle
1038 node: 'ubuntu1604-docker-8c-8g'
1039 properties:
1040 - infra-properties:
1041 build-days-to-keep: '{build-days-to-keep}'
1042 parameters:
1043 - infra-parameters:
1044 project: '{project}'
1045 branch: '{branch}'
1046 refspec: 'refs/heads/{branch}'
1047 artifacts: '{archive-artifacts}'
1048 - maven-exec:
1049 maven-version: '{maven-version}'
1050 scm:
1051 - gerrit-trigger-scm:
1052 refspec: ''
1053 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001054 submodule-recursive: '{submodule-recursive}'
JulienBe91c56ec2017-06-21 23:37:39 +02001055 wrappers:
1056 - infra-wrappers:
1057 build-timeout: '{build-timeout}'
1058 triggers:
1059 # 12 AM UTC
1060 - timed: 'H 12 * * *'
1061 - gerrit-trigger-release-manually:
1062 server: '{server-name}'
1063 project: '{project}'
1064 branch: '{branch}'
1065 builders:
1066 - provide-maven-settings:
1067 global-settings-file: 'global-settings'
1068 settings-file: '{mvn-settings}'
1069 - docker-login
1070 - maven-docker-push-daily:
1071 maven-version: '{maven-version}'
1072 mvn-settings: '{mvn-settings}'
1073 pom: '{docker-pom}'
1074 properties: '{maven-properties}'
1075 # use default as mvn-profile if profile is not needed
1076 mvn-profile: '{mvn-profile}'
1077 publishers:
1078 - infra-shiplogs:
1079 maven-version: '{maven-version}'
1080
1081- job-template:
Pamela Dragoshaccf6452017-02-17 08:09:31 -05001082 name: '{project-name}-{stream}-docker-java-shell-daily'
1083 project-type: freestyle
1084 node: 'ubuntu1604-docker-8c-8g'
1085
1086 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001087 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -05001088 build-days-to-keep: '{build-days-to-keep}'
1089
1090 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001091 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -05001092 project: '{project}'
1093 branch: '{branch}'
1094 refspec: 'refs/heads/{branch}'
1095 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001096 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001097 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -05001098
1099 scm:
1100 - gerrit-trigger-scm:
1101 refspec: ''
1102 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001103 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -05001104
1105 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001106 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -05001107 build-timeout: '{build-timeout}'
1108
1109 triggers:
1110 # 12 AM UTC
1111 - timed: 'H 12 * * *'
1112 - gerrit-trigger-release-manually:
1113 server: '{server-name}'
1114 project: '{project}'
1115 branch: '{branch}'
1116
1117 builders:
1118
1119 - provide-maven-settings:
1120 global-settings-file: 'global-settings'
1121 settings-file: '{mvn-settings}'
1122
1123 - docker-login
1124
Pamela Dragosh366fbc32017-02-19 20:09:09 -05001125 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001126 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -05001127 goals: '{mvn-goals}'
1128 settings: '{mvn-settings}'
1129 settings-type: cfp
1130 global-settings: 'global-settings'
1131 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -05001132
1133 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001134
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001135 publishers:
1136 - infra-shiplogs:
1137 maven-version: '{maven-version}'
1138
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001139- job-template:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001140 name: '{project-name}-{stream}-docker-java-version-shell-daily'
1141 project-type: freestyle
1142 node: 'ubuntu1604-docker-8c-8g'
1143
1144 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001145 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001146 build-days-to-keep: '{build-days-to-keep}'
1147
1148 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001149 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001150 project: '{project}'
1151 branch: '{branch}'
1152 refspec: 'refs/heads/{branch}'
1153 artifacts: '{archive-artifacts}'
1154 - maven-exec:
1155 maven-version: '{maven-version}'
1156
1157 scm:
1158 - gerrit-trigger-scm:
1159 refspec: ''
1160 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001161 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001162
1163 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001164 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001165 build-timeout: '{build-timeout}'
1166
1167 triggers:
1168 # 12 AM UTC
1169 - timed: 'H 12 * * *'
1170 - gerrit-trigger-release-manually:
1171 server: '{server-name}'
1172 project: '{project}'
1173 branch: '{branch}'
1174
1175 builders:
1176
1177 - provide-maven-settings:
1178 global-settings-file: 'global-settings'
1179 settings-file: '{mvn-settings}'
1180
1181 - inject:
1182 properties-file: version.properties
1183
1184 - maven-target:
1185 maven-version: '{maven-version}'
Christopher Lott (cl778h)253e61f2017-07-10 15:44:50 -04001186 goals: 'versions:set versions:update-child-modules versions:commit -B'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001187 properties:
1188 - 'newVersion=${{release_version}}'
1189 settings: '{mvn-settings}'
1190 settings-type: cfp
1191 global-settings: 'global-settings'
1192 global-settings-type: cfp
1193
1194 - docker-login
1195
1196 - maven-target:
1197 maven-version: '{maven-version}'
1198 goals: '{mvn-goals}'
1199 settings: '{mvn-settings}'
1200 settings-type: cfp
1201 global-settings: 'global-settings'
1202 global-settings-type: cfp
1203
1204 - shell: '{script}'
1205
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001206 publishers:
1207 - infra-shiplogs:
1208 maven-version: '{maven-version}'
1209
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001210- job-template:
Patrick Brady39f388a2017-03-09 11:26:59 -08001211 name: '{project-name}-{stream}-docker-version-java-daily'
1212 project-type: freestyle
1213 node: 'ubuntu1604-docker-8c-8g'
1214
1215 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001216 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -08001217 build-days-to-keep: '{build-days-to-keep}'
1218
1219 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001220 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -08001221 project: '{project}'
1222 branch: '{branch}'
1223 refspec: 'refs/heads/{branch}'
1224 artifacts: '{archive-artifacts}'
1225 - maven-exec:
1226 maven-version: '{maven-version}'
1227
1228 scm:
1229 - gerrit-trigger-scm:
1230 refspec: ''
1231 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001232 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001233
1234 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001235 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -08001236 build-timeout: '{build-timeout}'
1237
1238 triggers:
1239 # 12 AM UTC
1240 - timed: 'H 12 * * *'
1241 - gerrit-trigger-release-manually:
1242 server: '{server-name}'
1243 project: '{project}'
1244 branch: '{branch}'
1245
1246 builders:
1247
1248 - provide-maven-settings:
1249 global-settings-file: 'global-settings'
1250 settings-file: '{mvn-settings}'
1251
1252 - inject:
1253 properties-file: version.properties
1254
1255 - maven-target:
1256 maven-version: '{maven-version}'
Christopher Lott (cl778h)253e61f2017-07-10 15:44:50 -04001257 goals: 'versions:set versions:update-child-modules versions:commit -B'
Patrick Brady39f388a2017-03-09 11:26:59 -08001258 properties:
1259 - 'newVersion=${{release_version}}'
1260 settings: '{mvn-settings}'
1261 settings-type: cfp
1262 global-settings: 'global-settings'
1263 global-settings-type: cfp
1264
1265 - docker-login
1266
1267 - maven-docker-push-daily:
1268 maven-version: '{maven-version}'
1269 mvn-settings: '{mvn-settings}'
1270 pom: '{docker-pom}'
1271 # use default as mvn-profile if profile is not needed
1272 mvn-profile: '{mvn-profile}'
1273
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001274 publishers:
1275 - infra-shiplogs:
1276 maven-version: '{maven-version}'
1277
Patrick Brady39f388a2017-03-09 11:26:59 -08001278- job-template:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001279 name: '{project-name}-{stream}-aai-docker-java-daily'
1280 project-type: freestyle
1281 node: 'ubuntu1604-docker-8c-8g'
1282
1283 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001284 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001285 build-days-to-keep: '{build-days-to-keep}'
1286
1287 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001288 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001289 project: '{project}'
1290 branch: '{branch}'
1291 refspec: 'refs/heads/{branch}'
1292 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001293 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001294 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001295
1296 scm:
1297 - gerrit-trigger-scm:
1298 refspec: ''
1299 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001300 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001301
1302 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001303 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001304 build-timeout: '{build-timeout}'
1305
1306 triggers:
1307 # 12 AM UTC
1308 - timed: 'H 12 * * *'
1309 - gerrit-trigger-release-manually:
1310 server: '{server-name}'
1311 project: '{project}'
1312 branch: '{branch}'
1313
1314 builders:
1315
1316 - provide-maven-settings:
1317 global-settings-file: 'global-settings'
1318 settings-file: '{mvn-settings}'
1319
1320 - docker-login
1321
1322 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001323 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001324 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001325 goals: 'clean install -DskipTests -B
1326 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001327 settings: '{mvn-settings}'
1328 settings-type: cfp
1329 global-settings: 'global-settings'
1330 global-settings-type: cfp
1331
1332 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001333 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001334 pom: '{pom}'
1335 goals: '{mvn-goals}'
1336 settings: '{mvn-settings}'
1337 settings-type: cfp
1338 global-settings: 'global-settings'
1339 global-settings-type: cfp
1340 properties:
1341 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001342 - docker.pull.registry=nexus3.onap.org:10001
1343 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001344
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001345 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001346
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001347 publishers:
1348 - infra-shiplogs:
1349 maven-version: '{maven-version}'
1350
Carsten Lund2d06a692017-02-23 18:23:07 +00001351- job-template:
1352 # Job template for Java daily release jobs
1353 #
1354 # The purpose of this job template is to run
1355 # - change version in all POM files to the release version specified
1356 # in version.properties. This is done using a script instread of
1357 # the mvn version plugin that assumes some specific parent structure.
1358 # - runs maven clean deploy sonar
1359 #
1360 # The POM files are required to use the Maven staging plugin so the deploy
1361 # does not deploy directly to the release repo.
1362 #
1363 # Required Variables:
1364 # branch: git branch (eg. stable/lithium or master)
1365 name: '{project-name}-{stream}-release-version2-java-daily'
1366
1367 project-type: freestyle
1368 node: '{build-node}'
1369 maven-deploy-properties:
1370 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001371 - infra-properties:
Carsten Lund2d06a692017-02-23 18:23:07 +00001372 build-days-to-keep: '{build-days-to-keep}'
1373
1374 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001375 - infra-parameters:
Carsten Lund2d06a692017-02-23 18:23:07 +00001376 project: '{project}'
1377 branch: '{branch}'
1378 refspec: 'refs/heads/{branch}'
1379 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001380 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001381 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001382
1383 scm:
1384 - gerrit-trigger-scm:
1385 refspec: ''
1386 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001387 submodule-recursive: '{submodule-recursive}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001388
1389 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001390 - infra-wrappers:
Carsten Lund2d06a692017-02-23 18:23:07 +00001391 build-timeout: '{build-timeout}'
1392
1393 triggers:
1394 # 11 AM UTC
1395 - timed: 'H 11 * * *'
1396 - gerrit-trigger-release-manually:
1397 server: '{server-name}'
1398 project: '{project}'
1399 branch: '{branch}'
1400
1401 builders:
1402 - provide-maven-settings:
1403 global-settings-file: 'global-settings'
1404 settings-file: '{mvn-settings}'
Andrew Grimbergb7f16152017-02-24 13:13:15 -08001405 - maven-install:
1406 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001407
1408 - inject:
1409 properties-file: version.properties
1410
1411 - shell: !include-raw-escape: include-update-pom-versions.sh
1412
1413 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001414 maven-version: '{maven-version}'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001415 goals: 'clean deploy sonar:sonar site:site site:stage-deploy
1416 -Dsonar.host.url=${{SONAR}} -B
1417 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lund2d06a692017-02-23 18:23:07 +00001418 properties:
1419 - '{maven-deploy-properties}'
1420 settings: '{mvn-settings}'
1421 settings-type: cfp
1422 global-settings: 'global-settings'
1423 global-settings-type: cfp
1424
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001425 publishers:
1426 - infra-shiplogs:
1427 maven-version: '{maven-version}'
1428
Carsten Lund2d06a692017-02-23 18:23:07 +00001429- job-template:
1430 # Job template for Java daily release jobs
1431 #
1432 # The purpose of this job template is to run
1433 # - change version in all POM files to the release version specified
1434 # in version.properties. This is done using a script instread of
1435 # the mvn version plugin that assumes some specific parent structure.
1436 # - runs maven clean deploy sonar
1437 #
1438 # The POM files are required to use the Maven staging plugin so the deploy
1439 # does not deploy directly to the release repo.
1440 #
1441 # Required Variables:
1442 # branch: git branch (eg. stable/lithium or master)
1443 # pom: name/location of the pom.xml file relative to the workspace
1444 # pattern: ant file-path pattern relative to the workspace used to
1445 # trigger the job
1446
1447 name: '{project-name}-{stream}-{subproject}-release-version2-java-daily'
1448
1449 project-type: freestyle
1450 node: '{build-node}'
1451 maven-deploy-properties:
1452 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001453 - infra-properties:
Carsten Lund2d06a692017-02-23 18:23:07 +00001454 build-days-to-keep: '{build-days-to-keep}'
1455
1456 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001457 - infra-parameters:
Carsten Lund2d06a692017-02-23 18:23:07 +00001458 project: '{project}'
1459 branch: '{branch}'
1460 refspec: 'refs/heads/{branch}'
1461 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001462 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001463 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001464
1465 scm:
1466 - gerrit-trigger-scm:
1467 refspec: ''
1468 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001469 submodule-recursive: '{submodule-recursive}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001470
1471 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001472 - infra-wrappers:
Carsten Lund2d06a692017-02-23 18:23:07 +00001473 build-timeout: '{build-timeout}'
1474
1475 triggers:
1476 # 11 AM UTC
1477 - timed: 'H 11 * * *'
1478 - gerrit-trigger-release-manually:
1479 server: '{server-name}'
1480 project: '{project}'
1481 branch: '{branch}'
1482 files: '{pattern}'
1483
1484 builders:
1485 - provide-maven-settings:
1486 global-settings-file: 'global-settings'
1487 settings-file: '{mvn-settings}'
Andrew Grimbergb7f16152017-02-24 13:13:15 -08001488 - maven-install:
1489 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001490
1491 - inject:
1492 properties-file: version.properties
1493
1494 - shell: !include-raw-escape: include-update-pom-versions.sh
1495
1496 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001497 maven-version: '{maven-version}'
Carsten Lund2d06a692017-02-23 18:23:07 +00001498 pom: '{pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001499 goals: 'clean deploy sonar:sonar site:site site:stage-deploy
1500 -Dsonar.host.url=${{SONAR}} -B
1501 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lund2d06a692017-02-23 18:23:07 +00001502 properties:
1503 - '{maven-deploy-properties}'
1504 settings: '{mvn-settings}'
1505 settings-type: cfp
1506 global-settings: 'global-settings'
1507 global-settings-type: cfp
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001508
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001509 publishers:
1510 - infra-shiplogs:
1511 maven-version: '{maven-version}'
1512
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001513- job-template:
1514 # Template for maven site plugin invocation
1515 #
1516 # It's designed to be triggered when the trigger-job job
1517 # succeeds as there's no need for new documentaiton
1518 # if the build job fails.
1519 #
1520 # Those parameters should be set :
1521 # - site-pom : the pom file that contains the site confiration
1522 # - trigger-job : the name of the project that triggers this job
1523 # upon success. The job name can be
1524 # parameterized.
1525 name: '{project-name}-{stream}-stage-site-java'
1526 project-type: freestyle
Anaël Clossonb8c5fb52017-03-14 15:43:18 +01001527 node: '{build-node}'
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001528
1529 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001530 - infra-properties:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001531 build-days-to-keep: '{build-days-to-keep}'
1532
1533 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001534 - infra-parameters:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001535 project: '{project}'
1536 branch: '{branch}'
1537 refspec: 'refs/heads/{branch}'
1538 artifacts: '{archive-artifacts}'
1539 - maven-exec:
1540 maven-version: '{maven-version}'
1541
1542 scm:
1543 - gerrit-trigger-scm:
1544 refspec: ''
1545 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001546 submodule-recursive: '{submodule-recursive}'
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001547
1548 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001549 - infra-wrappers:
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001550 build-timeout: '{build-timeout}'
1551
1552 triggers:
1553 - trigger-on-build-success:
1554 job-name: '{trigger-job}'
1555
1556 builders:
1557 - provide-maven-settings:
1558 global-settings-file: 'global-settings'
1559 settings-file: '{mvn-settings}'
Anaël Closson09166842017-03-15 11:19:40 +01001560 - inject:
1561 properties-file: version.properties
1562 - maven-target:
1563 maven-version: '{maven-version}'
Christopher Lott (cl778h)253e61f2017-07-10 15:44:50 -04001564 goals: 'versions:set versions:update-child-modules versions:commit -B'
Anaël Closson09166842017-03-15 11:19:40 +01001565 properties:
1566 - 'newVersion=${{release_version}}'
1567 settings: '{mvn-settings}'
1568 settings-type: cfp
1569 global-settings: 'global-settings'
1570 global-settings-type: cfp
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001571
1572 - maven-target:
1573 maven-version: '{maven-version}'
Anaël Closson03222ed2017-03-13 16:37:09 +01001574 pom: '{site-pom}'
Anaël Clossonb7c8aa32017-03-14 15:50:20 +01001575 goals: 'clean site:site site:stage-deploy'
Anaël Clossonadcb39d2017-03-10 15:39:09 +01001576 settings: '{mvn-settings}'
1577 settings-type: cfp
1578 global-settings: 'global-settings'
1579 global-settings-type: cfp
ig61339fdb9d22017-04-03 17:47:19 +03001580
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001581 publishers:
1582 - infra-shiplogs:
1583 maven-version: '{maven-version}'
1584
ig61339fdb9d22017-04-03 17:47:19 +03001585- job-template:
1586 # Job template for Java merge jobs
1587 #
1588 # The purpose of this job template is to run "maven clean deploy" for
1589 # projects using this template.
1590 #
1591 # Required Variables:
1592 # branch: git branch (eg. stable/lithium or master)
1593 name: '{project-name}-{stream}-sdc-merge-java'
1594
1595 project-type: freestyle
ig6133cb3f8232017-04-05 14:22:42 +03001596 node: 'ubuntu1604-docker-8c-8g'
ig61339fdb9d22017-04-03 17:47:19 +03001597
1598 properties:
1599 - infra-properties:
1600 build-days-to-keep: '{build-days-to-keep}'
1601
1602 parameters:
1603 - infra-parameters:
1604 project: '{project}'
1605 branch: '{branch}'
1606 refspec: 'refs/heads/{branch}'
1607 artifacts: '{archive-artifacts}'
1608 - maven-exec:
1609 maven-version: '{maven-version}'
1610
1611 scm:
1612 - gerrit-trigger-scm:
1613 refspec: ''
1614 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001615 submodule-recursive: '{submodule-recursive}'
ig61339fdb9d22017-04-03 17:47:19 +03001616
1617 wrappers:
1618 - infra-wrappers:
1619 build-timeout: '{build-timeout}'
1620
1621 triggers:
1622 - gerrit-trigger-patch-merged:
1623 server: '{server-name}'
1624 project: '{project}'
1625 branch: '{branch}'
1626 files: '**'
1627
1628 builders:
1629 - provide-maven-settings:
1630 global-settings-file: 'global-settings'
1631 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001632
1633 - docker-login
1634
ig6133cb3f8232017-04-05 14:22:42 +03001635 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001636 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001637 mvn-settings: '{mvn-settings}'
1638 pom: '{docker-pom}'
1639 # use default as mvn-profile if profile is not needed
1640 mvn-profile: '{mvn-profile}'
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001641
1642 publishers:
1643 - infra-shiplogs:
1644 maven-version: '{maven-version}'
Venkata Harish K Kajur2bf22a02017-05-15 16:22:55 -04001645
1646- job-template:
1647 name: '{project-name}-{stream}-aai-docker-java-version-daily'
1648 project-type: freestyle
1649 node: 'ubuntu1604-docker-8c-8g'
1650
1651 properties:
1652 - infra-properties:
1653 build-days-to-keep: '{build-days-to-keep}'
1654
1655 parameters:
1656 - infra-parameters:
1657 project: '{project}'
1658 branch: '{branch}'
1659 refspec: 'refs/heads/{branch}'
1660 artifacts: '{archive-artifacts}'
1661 - maven-exec:
1662 maven-version: '{maven-version}'
1663
1664 scm:
1665 - gerrit-trigger-scm:
1666 refspec: ''
1667 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001668 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajur2bf22a02017-05-15 16:22:55 -04001669
1670 wrappers:
1671 - infra-wrappers:
1672 build-timeout: '{build-timeout}'
1673
1674 triggers:
1675 # 12 AM UTC
1676 - timed: 'H 12 * * *'
1677 - gerrit-trigger-release-manually:
1678 server: '{server-name}'
1679 project: '{project}'
1680 branch: '{branch}'
1681
1682 builders:
1683
1684 - provide-maven-settings:
1685 global-settings-file: 'global-settings'
1686 settings-file: '{mvn-settings}'
1687
1688 - docker-login
1689
1690 - maven-target:
1691 maven-version: '{maven-version}'
1692 pom: 'pom.xml'
1693 goals: 'clean install -DskipTests -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
1694 settings: '{mvn-settings}'
1695 settings-type: cfp
1696 global-settings: 'global-settings'
1697 global-settings-type: cfp
1698
1699 - maven-target:
1700 maven-version: '{maven-version}'
1701 pom: '{pom}'
1702 goals: '{mvn-goals}'
1703 settings: '{mvn-settings}'
1704 settings-type: cfp
1705 global-settings: 'global-settings'
1706 global-settings-type: cfp
1707 properties:
1708 - maven.test.skip=true
1709 - docker.pull.registry=nexus3.onap.org:10001
1710 - docker.push.registry=nexus3.onap.org:10003
1711
1712 publishers:
1713 - infra-shiplogs:
1714 maven-version: '{maven-version}'
1715