blob: 3a05979b3e1aff1f9eac8d8451e7ceeb06c127e0 [file] [log] [blame]
Andrew Grimbergebc710a2017-01-30 12:59:38 -08001---
2- job-template:
3 # Job template for Java verify jobs
4 #
5 # The purpose of this job template is to run "maven clean install" for
6 # projects using this template.
7 #
8 # Required Variables:
9 # branch: git branch (eg. stable/lithium or master)
10
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050011 name: '{project-name}-{stream}-verify-java-skip-tests'
12
13 project-type: freestyle
14 concurrent: true
15 node: '{build-node}'
16
17 properties:
18 - ecomp-infra-properties:
19 build-days-to-keep: '{build-days-to-keep}'
20
21 parameters:
22 - ecomp-infra-parameters:
23 project: '{project}'
24 branch: '{branch}'
25 refspec: 'refs/heads/{branch}'
26 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080027 - maven-exec:
28 maven-version: 'mvn33'
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050029
30 scm:
31 - gerrit-trigger-scm:
32 refspec: '$GERRIT_REFSPEC'
33 choosing-strategy: 'gerrit'
34
35 wrappers:
36 - ecomp-infra-wrappers:
37 build-timeout: '{build-timeout}'
38
39 triggers:
40 - gerrit-trigger-patch-submitted:
41 server: '{server-name}'
42 project: '{project}'
43 branch: '{branch}'
44 files: '**'
45
46 builders:
47 - provide-maven-settings:
48 global-settings-file: 'global-settings'
49 settings-file: '{mvn-settings}'
50 - maven-target:
51 maven-version: 'mvn33'
Timoney, Daniel (dt5972)a9dced72017-02-19 09:06:23 -050052 goals: 'clean install -DskipTests=true'
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050053 settings: '{mvn-settings}'
54 settings-type: cfp
55 global-settings: 'global-settings'
56 global-settings-type: cfp
57 maven-opts:
58 - maven.test.skip=true
59
60# publishers:
61# - ecomp-infra-shiplogs:
62# maven-version: 'mvn33'
63
64
65- job-template:
66 # Job template for Java verify jobs
67 #
68 # The purpose of this job template is to run "maven clean install" for
69 # projects using this template.
70 #
71 # Required Variables:
72 # branch: git branch (eg. stable/lithium or master)
73
Andrew Grimbergce2286c2017-01-31 05:50:39 -080074 name: '{project-name}-{stream}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080075
76 project-type: freestyle
77 concurrent: true
78 node: '{build-node}'
79
80 properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080081 - ecomp-infra-properties:
82 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080083
84 parameters:
85 - ecomp-infra-parameters:
86 project: '{project}'
87 branch: '{branch}'
88 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080089 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080090 - maven-exec:
91 maven-version: 'mvn33'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080092
93 scm:
94 - gerrit-trigger-scm:
95 refspec: '$GERRIT_REFSPEC'
96 choosing-strategy: 'gerrit'
97
98 wrappers:
99 - ecomp-infra-wrappers:
100 build-timeout: '{build-timeout}'
101
102 triggers:
103 - gerrit-trigger-patch-submitted:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800104 server: '{server-name}'
105 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800106 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800107 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800108
109 builders:
110 - provide-maven-settings:
111 global-settings-file: 'global-settings'
112 settings-file: '{mvn-settings}'
113 - maven-target:
114 maven-version: 'mvn33'
115 goals: 'clean install'
116 settings: '{mvn-settings}'
117 settings-type: cfp
118 global-settings: 'global-settings'
119 global-settings-type: cfp
120
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800121# publishers:
122# - ecomp-infra-shiplogs:
123# maven-version: 'mvn33'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800124
125- job-template:
126 # Job template for Java verify jobs with POM not at the root
127 #
128 # The purpose of this job template is to run "maven clean install" for
129 # projects using this template.
130 #
131 # Required Variables:
132 # branch: git branch (eg. stable/lithium or master)
133 # pom: name/location of the pom.xml file relative to the workspace
134 # pattern: ant file-path pattern relative to the workspace used to
135 # trigger the job
136
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800137 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800138
139 project-type: freestyle
140 concurrent: true
141 node: '{build-node}'
142
143 properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800144 - ecomp-infra-properties:
145 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800146
147 parameters:
148 - ecomp-infra-parameters:
149 project: '{project}'
150 branch: '{branch}'
151 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800152 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800153 - maven-exec:
154 maven-version: 'mvn33'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800155
156 scm:
157 - gerrit-trigger-scm:
158 refspec: '$GERRIT_REFSPEC'
159 choosing-strategy: 'gerrit'
160
161 wrappers:
162 - ecomp-infra-wrappers:
163 build-timeout: '{build-timeout}'
164
165 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800166 - gerrit-trigger-patch-submitted:
167 server: '{server-name}'
168 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800169 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800170 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800171
172 builders:
173 - provide-maven-settings:
174 global-settings-file: 'global-settings'
175 settings-file: '{mvn-settings}'
176 - maven-target:
177 maven-version: 'mvn33'
178 pom: '{pom}'
179 goals: 'clean install'
180 settings: '{mvn-settings}'
181 settings-type: cfp
182 global-settings: 'global-settings'
183 global-settings-type: cfp
184
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800185# publishers:
186# - ecomp-infra-shiplogs:
187# maven-version: 'mvn33'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800188
189- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100190 # Job template for Java daily release jobs
191 #
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800192 # The purpose of this job template is to run "maven version && maven clean
193 # deploy" for projects using this template.
JulienBe2f4ee072017-02-01 21:42:32 +0100194 #
195 # Required Variables:
196 # branch: git branch (eg. stable/lithium or master)
197 name: '{project-name}-{stream}-release-java-daily'
198
199 project-type: freestyle
200 node: '{build-node}'
201 maven-deploy-properties:
202 properties:
203 - ecomp-infra-properties:
204 build-days-to-keep: '{build-days-to-keep}'
205
206 parameters:
207 - ecomp-infra-parameters:
208 project: '{project}'
209 branch: '{branch}'
210 refspec: 'refs/heads/{branch}'
211 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800212 - maven-exec:
213 maven-version: 'mvn33'
JulienBe2f4ee072017-02-01 21:42:32 +0100214
215 scm:
216 - gerrit-trigger-scm:
217 refspec: ''
218 choosing-strategy: 'default'
219
220 wrappers:
221 - ecomp-infra-wrappers:
222 build-timeout: '{build-timeout}'
223
224 triggers:
225 # 11 AM UTC
226 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800227 - gerrit-trigger-release-manually:
228 server: '{server-name}'
229 project: '{project}'
230 branch: '{branch}'
JulienBe2f4ee072017-02-01 21:42:32 +0100231
232 builders:
233 - provide-maven-settings:
234 global-settings-file: 'global-settings'
235 settings-file: '{mvn-settings}'
236
JulienBe5641aa02017-02-17 01:08:38 -0800237 - maven-target:
238 maven-version: 'mvn33'
239 goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org'
240 properties:
241 - '{maven-deploy-properties}'
242 settings: '{mvn-settings}'
243 settings-type: cfp
244 global-settings: 'global-settings'
245 global-settings-type: cfp
246
247- job-template:
248 # Job template for Java daily release jobs
249 #
250 # The purpose of this job template is to run "maven version && maven clean
251 # deploy" for projects using this template.
252 #
253 # Required Variables:
254 # branch: git branch (eg. stable/lithium or master)
255 name: '{project-name}-{stream}-release-version-java-daily'
256
257 project-type: freestyle
258 node: '{build-node}'
259 maven-deploy-properties:
260 properties:
261 - ecomp-infra-properties:
262 build-days-to-keep: '{build-days-to-keep}'
263
264 parameters:
265 - ecomp-infra-parameters:
266 project: '{project}'
267 branch: '{branch}'
268 refspec: 'refs/heads/{branch}'
269 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800270 - maven-exec:
271 maven-version: 'mvn33'
JulienBe5641aa02017-02-17 01:08:38 -0800272
273 scm:
274 - gerrit-trigger-scm:
275 refspec: ''
276 choosing-strategy: 'default'
277
278 wrappers:
279 - ecomp-infra-wrappers:
280 build-timeout: '{build-timeout}'
281
282 triggers:
283 # 11 AM UTC
284 - timed: 'H 11 * * *'
285 - gerrit-trigger-release-manually:
286 server: '{server-name}'
287 project: '{project}'
288 branch: '{branch}'
289
290 builders:
291 - provide-maven-settings:
292 global-settings-file: 'global-settings'
293 settings-file: '{mvn-settings}'
294
JulienBe2f4ee072017-02-01 21:42:32 +0100295 - inject:
296 properties-file: version.properties
297 - maven-target:
298 maven-version: 'mvn33'
299 goals: 'versions:set versions:update-child-modules versions:commit'
300 properties:
301 - 'newVersion=${{release_version}}'
302 settings: '{mvn-settings}'
303 settings-type: cfp
304 global-settings: 'global-settings'
305 global-settings-type: cfp
306
307 - maven-target:
308 maven-version: 'mvn33'
JulienBe360dc8c2017-02-07 02:53:25 -0800309 goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800310 properties:
311 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100312 settings: '{mvn-settings}'
313 settings-type: cfp
314 global-settings: 'global-settings'
315 global-settings-type: cfp
316
317- job-template:
Carsten Lundda8b6972017-02-15 23:59:25 +0000318 # Job template for Java daily release jobs with POM not at the root
319 #
320 # The purpose of this job template is to run "maven version && maven clean
321 # deploy" for projects using this template.
322 #
323 # Required Variables:
324 # branch: git branch (eg. stable/lithium or master)
325 # pom: name/location of the pom.xml file relative to the workspace
326
327
328 name: '{project-name}-{stream}-{subproject}-release-java-daily'
329
330 project-type: freestyle
331 node: '{build-node}'
332 maven-deploy-properties:
333 properties:
334 - ecomp-infra-properties:
335 build-days-to-keep: '{build-days-to-keep}'
336
337 parameters:
338 - ecomp-infra-parameters:
339 project: '{project}'
340 branch: '{branch}'
341 refspec: 'refs/heads/{branch}'
342 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800343 - maven-exec:
344 maven-version: 'mvn33'
Carsten Lundda8b6972017-02-15 23:59:25 +0000345
346 scm:
347 - gerrit-trigger-scm:
348 refspec: ''
349 choosing-strategy: 'default'
350
351 wrappers:
352 - ecomp-infra-wrappers:
353 build-timeout: '{build-timeout}'
354
355 triggers:
356 # 11 AM UTC
357 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800358 - gerrit-trigger-release-manually:
359 server: '{server-name}'
360 project: '{project}'
361 branch: '{branch}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000362
363 builders:
364 - provide-maven-settings:
365 global-settings-file: 'global-settings'
366 settings-file: '{mvn-settings}'
367
Carsten Lundda8b6972017-02-15 23:59:25 +0000368 - maven-target:
369 maven-version: 'mvn33'
Carsten Lund63cd3b82017-02-18 18:19:22 +0000370 pom: '{pom}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000371 goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org'
372 properties:
373 - '{maven-deploy-properties}'
374 settings: '{mvn-settings}'
375 settings-type: cfp
376 global-settings: 'global-settings'
377 global-settings-type: cfp
378
379- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800380 # Job template for Java merge jobs
381 #
382 # The purpose of this job template is to run "maven clean deploy" for
383 # projects using this template.
384 #
385 # Required Variables:
386 # branch: git branch (eg. stable/lithium or master)
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800387 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800388
389 project-type: freestyle
390 node: '{build-node}'
391
392 properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800393 - ecomp-infra-properties:
394 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800395
396 parameters:
397 - ecomp-infra-parameters:
398 project: '{project}'
399 branch: '{branch}'
400 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800401 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800402 - maven-exec:
403 maven-version: 'mvn33'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800404
405 scm:
406 - gerrit-trigger-scm:
407 refspec: ''
408 choosing-strategy: 'default'
409
410 wrappers:
411 - ecomp-infra-wrappers:
412 build-timeout: '{build-timeout}'
413
414 triggers:
415 - gerrit-trigger-patch-merged:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800416 server: '{server-name}'
417 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800418 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800419 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800420
421 builders:
422 - provide-maven-settings:
423 global-settings-file: 'global-settings'
424 settings-file: '{mvn-settings}'
425 - maven-target:
426 maven-version: 'mvn33'
427 # yamllint disable rule:line-length
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800428 goals: 'clean deploy'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800429 # yamllint enable
430 settings: '{mvn-settings}'
431 settings-type: cfp
432 global-settings: 'global-settings'
433 global-settings-type: cfp
434
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800435# publishers:
436# - ecomp-infra-shiplogs:
437# maven-version: 'mvn33'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800438
439- job-template:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800440 # Job template for Java merge jobs that should also be triggered by upstream
441 # merges
442 #
443 # Required Variables:
444 # stream: release stream
445 # branch: git branch
446 # dependencies: fully qualified upstream job name to trigger on
447 # this may be ''
448 name: '{project-name}-{stream}-downstream-merge-java'
449
450 project-type: freestyle
451 node: '{build-node}'
452
453 properties:
454 - ecomp-infra-properties:
455 build-days-to-keep: '{build-days-to-keep}'
456
457 parameters:
458 - ecomp-infra-parameters:
459 project: '{project}'
460 branch: '{branch}'
461 refspec: 'refs/heads/{branch}'
462 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800463 - maven-exec:
464 maven-version: 'mvn33'
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800465
466 scm:
467 - gerrit-trigger-scm:
468 refspec: ''
469 choosing-strategy: 'default'
470
471 wrappers:
472 - ecomp-infra-wrappers:
473 build-timeout: '{build-timeout}'
474
475 triggers:
476 - reverse:
477 jobs: '{dependencies}'
478 result: 'success'
479 - gerrit-trigger-patch-merged:
480 server: '{server-name}'
481 project: '{project}'
482 branch: '{branch}'
483 files: '**'
484
485 builders:
486 - provide-maven-settings:
487 global-settings-file: 'global-settings'
488 settings-file: '{mvn-settings}'
489 - maven-target:
490 maven-version: 'mvn33'
491 # yamllint disable rule:line-length
492 goals: 'clean deploy'
493 # yamllint enable
494 settings: '{mvn-settings}'
495 settings-type: cfp
496 global-settings: 'global-settings'
497 global-settings-type: cfp
498
499# publishers:
500# - ecomp-infra-shiplogs:
501# maven-version: 'mvn33'
502
503- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800504 # Job template for Java merge jobs with POM not at the root
505 #
506 # The purpose of this job template is to run "maven clean deploy" for
507 # projects using this template.
508 #
509 # Required Variables:
510 # branch: git branch (eg. stable/lithium or master)
511 # pom: name/location of the pom.xml file relative to the workspace
512 # pattern: ant file-path pattern relative to the workspace used to
513 # trigger the job
514
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800515 name: '{project-name}-{stream}-{subproject}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800516
517 project-type: freestyle
518 node: '{build-node}'
519
520 properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800521 - ecomp-infra-properties:
522 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800523
524 parameters:
525 - ecomp-infra-parameters:
526 project: '{project}'
527 branch: '{branch}'
528 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800529 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800530 - maven-exec:
531 maven-version: 'mvn33'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800532
533 scm:
534 - gerrit-trigger-scm:
535 refspec: ''
536 choosing-strategy: 'default'
537
538 wrappers:
539 - ecomp-infra-wrappers:
540 build-timeout: '{build-timeout}'
541
542 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800543 - gerrit-trigger-patch-merged:
544 server: '{server-name}'
545 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800546 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800547 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800548
549 builders:
550 - provide-maven-settings:
551 global-settings-file: 'global-settings'
552 settings-file: '{mvn-settings}'
553 - maven-target:
554 maven-version: 'mvn33'
555 pom: '{pom}'
556 # yamllint disable rule:line-length
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800557 goals: 'clean deploy'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800558 # yamllint enable
559 settings: '{mvn-settings}'
560 settings-type: cfp
561 global-settings: 'global-settings'
562 global-settings-type: cfp
563
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800564# publishers:
565# - ecomp-infra-shiplogs:
566# maven-version: 'mvn33'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100567
568- job-template:
569 name: '{project-name}-{stream}-docker-java-daily'
570 project-type: freestyle
Andrew Grimberg2137b1d2017-02-15 07:24:53 -0800571 node: 'ubuntu1604-docker-8c-8g'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100572
573 properties:
574 - ecomp-infra-properties:
575 build-days-to-keep: '{build-days-to-keep}'
576
577 parameters:
578 - ecomp-infra-parameters:
579 project: '{project}'
580 branch: '{branch}'
581 refspec: 'refs/heads/{branch}'
582 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800583 - maven-exec:
584 maven-version: 'mvn33'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100585
586 scm:
587 - gerrit-trigger-scm:
588 refspec: ''
589 choosing-strategy: 'default'
590
Anaël Clossonabbafb52017-02-09 17:55:10 +0100591 wrappers:
592 - ecomp-infra-wrappers:
593 build-timeout: '{build-timeout}'
594
595 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800596 # 12 AM UTC
Anaël Clossonabbafb52017-02-09 17:55:10 +0100597 - timed: 'H 12 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800598 - gerrit-trigger-release-manually:
599 server: '{server-name}'
600 project: '{project}'
601 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100602
603 builders:
Anaël Closson63e090e2017-02-15 14:50:45 +0100604
Anaël Clossonabbafb52017-02-09 17:55:10 +0100605 - provide-maven-settings:
606 global-settings-file: 'global-settings'
607 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100608
Anaël Closson63e090e2017-02-15 14:50:45 +0100609 - docker-login
610
Anaël Clossonabbafb52017-02-09 17:55:10 +0100611 - maven-docker-push-daily:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100612 mvn-settings: '{mvn-settings}'
613 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100614 # use default as mvn-profile if profile is not needed
615 mvn-profile: '{mvn-profile}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500616
617- job-template:
618 name: '{project-name}-{stream}-docker-java-shell-daily'
619 project-type: freestyle
620 node: 'ubuntu1604-docker-8c-8g'
621
622 properties:
623 - ecomp-infra-properties:
624 build-days-to-keep: '{build-days-to-keep}'
625
626 parameters:
627 - ecomp-infra-parameters:
628 project: '{project}'
629 branch: '{branch}'
630 refspec: 'refs/heads/{branch}'
631 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800632 - maven-exec:
633 maven-version: 'mvn33'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500634
635 scm:
636 - gerrit-trigger-scm:
637 refspec: ''
638 choosing-strategy: 'default'
639
640 wrappers:
641 - ecomp-infra-wrappers:
642 build-timeout: '{build-timeout}'
643
644 triggers:
645 # 12 AM UTC
646 - timed: 'H 12 * * *'
647 - gerrit-trigger-release-manually:
648 server: '{server-name}'
649 project: '{project}'
650 branch: '{branch}'
651
652 builders:
653
654 - provide-maven-settings:
655 global-settings-file: 'global-settings'
656 settings-file: '{mvn-settings}'
657
658 - docker-login
659
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500660 - maven-target:
661 maven-version: 'mvn33'
662 goals: '{mvn-goals}'
663 settings: '{mvn-settings}'
664 settings-type: cfp
665 global-settings: 'global-settings'
666 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500667
668 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000669
670- job-template:
671 name: '{project-name}-{stream}-aai-docker-java-daily'
672 project-type: freestyle
673 node: 'ubuntu1604-docker-8c-8g'
674
675 properties:
676 - ecomp-infra-properties:
677 build-days-to-keep: '{build-days-to-keep}'
678
679 parameters:
680 - ecomp-infra-parameters:
681 project: '{project}'
682 branch: '{branch}'
683 refspec: 'refs/heads/{branch}'
684 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800685 - maven-exec:
686 maven-version: 'mvn33'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000687
688 scm:
689 - gerrit-trigger-scm:
690 refspec: ''
691 choosing-strategy: 'default'
692
693 wrappers:
694 - ecomp-infra-wrappers:
695 build-timeout: '{build-timeout}'
696
697 triggers:
698 # 12 AM UTC
699 - timed: 'H 12 * * *'
700 - gerrit-trigger-release-manually:
701 server: '{server-name}'
702 project: '{project}'
703 branch: '{branch}'
704
705 builders:
706
707 - provide-maven-settings:
708 global-settings-file: 'global-settings'
709 settings-file: '{mvn-settings}'
710
711 - docker-login
712
713 - maven-target:
714 maven-version: 'mvn33'
715 pom: 'pom.xml'
716 goals: 'clean install -DskipTests'
717 settings: '{mvn-settings}'
718 settings-type: cfp
719 global-settings: 'global-settings'
720 global-settings-type: cfp
721
722 - maven-target:
723 maven-version: 'mvn33'
724 pom: '{pom}'
725 goals: '{mvn-goals}'
726 settings: '{mvn-settings}'
727 settings-type: cfp
728 global-settings: 'global-settings'
729 global-settings-type: cfp
730 properties:
731 - maven.test.skip=true
732 - docker.pull.registry=nexus3.openecomp.org:10001
733 - docker.push.registry=nexus3.openecomp.org:10003
734
735 - shell: !include-raw: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +0000736
737- job-template:
738 # Job template for Java daily release jobs
739 #
740 # The purpose of this job template is to run
741 # - change version in all POM files to the release version specified
742 # in version.properties. This is done using a script instread of
743 # the mvn version plugin that assumes some specific parent structure.
744 # - runs maven clean deploy sonar
745 #
746 # The POM files are required to use the Maven staging plugin so the deploy
747 # does not deploy directly to the release repo.
748 #
749 # Required Variables:
750 # branch: git branch (eg. stable/lithium or master)
751 name: '{project-name}-{stream}-release-version2-java-daily'
752
753 project-type: freestyle
754 node: '{build-node}'
755 maven-deploy-properties:
756 properties:
757 - ecomp-infra-properties:
758 build-days-to-keep: '{build-days-to-keep}'
759
760 parameters:
761 - ecomp-infra-parameters:
762 project: '{project}'
763 branch: '{branch}'
764 refspec: 'refs/heads/{branch}'
765 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800766 - maven-exec:
767 maven-version: 'mvn33'
Carsten Lund2d06a692017-02-23 18:23:07 +0000768
769 scm:
770 - gerrit-trigger-scm:
771 refspec: ''
772 choosing-strategy: 'default'
773
774 wrappers:
775 - ecomp-infra-wrappers:
776 build-timeout: '{build-timeout}'
777
778 triggers:
779 # 11 AM UTC
780 - timed: 'H 11 * * *'
781 - gerrit-trigger-release-manually:
782 server: '{server-name}'
783 project: '{project}'
784 branch: '{branch}'
785
786 builders:
787 - provide-maven-settings:
788 global-settings-file: 'global-settings'
789 settings-file: '{mvn-settings}'
790
791 - inject:
792 properties-file: version.properties
793
794 - shell: !include-raw-escape: include-update-pom-versions.sh
795
796 - maven-target:
797 maven-version: 'mvn33'
798 goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org'
799 properties:
800 - '{maven-deploy-properties}'
801 settings: '{mvn-settings}'
802 settings-type: cfp
803 global-settings: 'global-settings'
804 global-settings-type: cfp
805
806- job-template:
807 # Job template for Java daily release jobs
808 #
809 # The purpose of this job template is to run
810 # - change version in all POM files to the release version specified
811 # in version.properties. This is done using a script instread of
812 # the mvn version plugin that assumes some specific parent structure.
813 # - runs maven clean deploy sonar
814 #
815 # The POM files are required to use the Maven staging plugin so the deploy
816 # does not deploy directly to the release repo.
817 #
818 # Required Variables:
819 # branch: git branch (eg. stable/lithium or master)
820 # pom: name/location of the pom.xml file relative to the workspace
821 # pattern: ant file-path pattern relative to the workspace used to
822 # trigger the job
823
824 name: '{project-name}-{stream}-{subproject}-release-version2-java-daily'
825
826 project-type: freestyle
827 node: '{build-node}'
828 maven-deploy-properties:
829 properties:
830 - ecomp-infra-properties:
831 build-days-to-keep: '{build-days-to-keep}'
832
833 parameters:
834 - ecomp-infra-parameters:
835 project: '{project}'
836 branch: '{branch}'
837 refspec: 'refs/heads/{branch}'
838 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800839 - maven-exec:
840 maven-version: 'mvn33'
Carsten Lund2d06a692017-02-23 18:23:07 +0000841
842 scm:
843 - gerrit-trigger-scm:
844 refspec: ''
845 choosing-strategy: 'default'
846
847 wrappers:
848 - ecomp-infra-wrappers:
849 build-timeout: '{build-timeout}'
850
851 triggers:
852 # 11 AM UTC
853 - timed: 'H 11 * * *'
854 - gerrit-trigger-release-manually:
855 server: '{server-name}'
856 project: '{project}'
857 branch: '{branch}'
858 files: '{pattern}'
859
860 builders:
861 - provide-maven-settings:
862 global-settings-file: 'global-settings'
863 settings-file: '{mvn-settings}'
864
865 - inject:
866 properties-file: version.properties
867
868 - shell: !include-raw-escape: include-update-pom-versions.sh
869
870 - maven-target:
871 maven-version: 'mvn33'
872 pom: '{pom}'
873 goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org'
874 properties:
875 - '{maven-deploy-properties}'
876 settings: '{mvn-settings}'
877 settings-type: cfp
878 global-settings: 'global-settings'
879 global-settings-type: cfp