Remove unused job templates
[ci-management.git] / jjb / global-templates-java.yaml
1 ---
2 - job-template:
3     # Job template for Java verify jobs
4     #
5     # The purpose of this job template is to run:
6     # 1. maven clean install -DskipTests=true
7     #
8     # Required Variables:
9     #     branch:    git branch (eg. stable/lithium or master)
10
11     name: '{project-name}-{stream}-verify-java-skip-tests'
12
13     project-type: freestyle
14     concurrent: true
15     node: '{build-node}'
16
17     properties:
18       - infra-properties:
19           build-days-to-keep: '{build-days-to-keep}'
20
21     parameters:
22       - infra-parameters:
23           project: '{project}'
24           branch: '{branch}'
25           refspec: 'refs/heads/{branch}'
26           artifacts: '{archive-artifacts}'
27       - maven-exec:
28           maven-version: '{maven-version}'
29
30     scm:
31       - gerrit-trigger-scm:
32           refspec: '$GERRIT_REFSPEC'
33           choosing-strategy: 'gerrit'
34           submodule-recursive: '{submodule-recursive}'
35
36     wrappers:
37       - infra-wrappers:
38           build-timeout: '{build-timeout}'
39
40     triggers:
41       - gerrit-trigger-patch-submitted:
42           server: '{server-name}'
43           project: '{project}'
44           branch: '{branch}'
45           files: '**'
46
47     builders:
48       - provide-maven-settings:
49           global-settings-file: 'global-settings'
50           settings-file: '{mvn-settings}'
51       - maven-target:
52           maven-version: '{maven-version}'
53           goals: 'clean install -DskipTests=true -B
54             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
55           settings: '{mvn-settings}'
56           settings-type: cfp
57           global-settings: 'global-settings'
58           global-settings-type: cfp
59           maven-opts:
60             - maven.test.skip=true
61
62     publishers:
63       - infra-shiplogs:
64           maven-version: '{maven-version}'
65
66 - job-template:
67     # Job template for Java verify jobs
68     #
69     # The purpose of this job template is to run:
70     # 1. maven clean install
71     #
72     # Required Variables:
73     #     branch:    git branch (eg. stable/lithium or master)
74
75     name: '{project-name}-{stream}-verify-java'
76
77     project-type: freestyle
78     concurrent: true
79     node: '{build-node}'
80
81     properties:
82       - infra-properties:
83           build-days-to-keep: '{build-days-to-keep}'
84
85     parameters:
86       - infra-parameters:
87           project: '{project}'
88           branch: '{branch}'
89           refspec: 'refs/heads/{branch}'
90           artifacts: '{archive-artifacts}'
91       - maven-exec:
92           maven-version: '{maven-version}'
93       - maven-params:
94           mvn-params: '{mvn-params}'
95
96     scm:
97       - gerrit-trigger-scm:
98           refspec: '$GERRIT_REFSPEC'
99           choosing-strategy: 'gerrit'
100           submodule-recursive: '{submodule-recursive}'
101
102     wrappers:
103       - infra-wrappers:
104           build-timeout: '{build-timeout}'
105
106     triggers:
107       - gerrit-trigger-patch-submitted:
108           server: '{server-name}'
109           project: '{project}'
110           branch: '{branch}'
111           files: '**'
112
113     builders:
114       - provide-maven-settings:
115           global-settings-file: 'global-settings'
116           settings-file: '{mvn-settings}'
117       - maven-target:
118           maven-version: '{maven-version}'
119           goals: 'clean install -B
120             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn {mvn-params}'
121           settings: '{mvn-settings}'
122           settings-type: cfp
123           global-settings: 'global-settings'
124           global-settings-type: cfp
125
126     publishers:
127       - infra-shiplogs:
128           maven-version: '{maven-version}'
129
130 - job-template:
131     # Job template for Java verify jobs running checkstyle at the end
132     # When checkstyle will be fully incorporated, it is meant to replace
133     #  '{project-name}-{stream}-verify-java-checkstyle'
134     #
135     # The purpose of this job template is to run:
136     # 1. maven clean install
137     #
138     # This job publishes checkstyle results.
139     #
140     # Required Variables:
141     #     branch:    git branch (eg. stable/lithium or master)
142
143     name: '{project-name}-{stream}-verify-java-checkstyle'
144     project-type: freestyle
145     concurrent: true
146     node: '{build-node}'
147     properties:
148       - infra-properties:
149           build-days-to-keep: '{build-days-to-keep}'
150     parameters:
151       - infra-parameters:
152           project: '{project}'
153           branch: '{branch}'
154           refspec: 'refs/heads/{branch}'
155           artifacts: '{archive-artifacts}'
156       - maven-exec:
157           maven-version: '{maven-version}'
158       - maven-params:
159           mvn-params: '{mvn-params}'
160     scm:
161       - gerrit-trigger-scm:
162           refspec: '$GERRIT_REFSPEC'
163           choosing-strategy: 'gerrit'
164           submodule-recursive: '{submodule-recursive}'
165     wrappers:
166       - infra-wrappers:
167           build-timeout: '{build-timeout}'
168     triggers:
169       - gerrit-trigger-patch-submitted:
170           server: '{server-name}'
171           project: '{project}'
172           branch: '{branch}'
173           files: '**'
174     builders:
175       - provide-maven-settings:
176           global-settings-file: 'global-settings'
177           settings-file: '{mvn-settings}'
178       - maven-target:
179           maven-version: '{maven-version}'
180           goals: 'clean install -B
181             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn {mvn-params}'
182           settings: '{mvn-settings}'
183           settings-type: cfp
184           global-settings: 'global-settings'
185           global-settings-type: cfp
186     publishers:
187       - infra-shiplogs:
188           maven-version: '{maven-version}'
189       - checkstyle-result
190
191 - job-template:
192     # Job template for Java verify jobs that takes a maven template
193     #
194     # The purpose of this job template is to run:
195     # 1. maven clean install -P {mvn-profile}
196     #
197     # Required Variables:
198     #     branch:    git branch (eg. stable/lithium or master)
199
200     name: '{project-name}-{stream}-verify-profile-java'
201
202     project-type: freestyle
203     concurrent: true
204     node: '{build-node}'
205
206     properties:
207       - infra-properties:
208           build-days-to-keep: '{build-days-to-keep}'
209
210     parameters:
211       - infra-parameters:
212           project: '{project}'
213           branch: '{branch}'
214           refspec: 'refs/heads/{branch}'
215           artifacts: '{archive-artifacts}'
216       - maven-exec:
217           maven-version: '{maven-version}'
218
219     scm:
220       - gerrit-trigger-scm:
221           refspec: '$GERRIT_REFSPEC'
222           choosing-strategy: 'gerrit'
223           submodule-recursive: '{submodule-recursive}'
224
225     wrappers:
226       - infra-wrappers:
227           build-timeout: '{build-timeout}'
228
229     triggers:
230       - gerrit-trigger-patch-submitted:
231           server: '{server-name}'
232           project: '{project}'
233           branch: '{branch}'
234           files: '{files}'
235
236     builders:
237       - provide-maven-settings:
238           global-settings-file: 'global-settings'
239           settings-file: '{mvn-settings}'
240       - maven-target:
241           maven-version: '{maven-version}'
242           goals: 'clean install -P {mvn-profile} -B
243             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
244           settings: '{mvn-settings}'
245           settings-type: cfp
246           global-settings: 'global-settings'
247           global-settings-type: cfp
248
249     publishers:
250       - infra-shiplogs:
251           maven-version: '{maven-version}'
252
253 - job-template:
254     # Job template for Java verify jobs with POM not at the root
255     #
256     # The purpose of this job template is to run:
257     # 1. maven clean install
258     #
259     # This job supports subprojects.
260     #
261     # Required Variables:
262     #     branch:    git branch (eg. stable/lithium or master)
263     #     pom:       name/location of the pom.xml file relative to the workspace
264     #     pattern:   ant file-path pattern relative to the workspace used to
265     #                trigger the job
266
267     name: '{project-name}-{stream}-{subproject}-verify-java'
268
269     project-type: freestyle
270     concurrent: true
271     node: '{build-node}'
272
273     properties:
274       - infra-properties:
275           build-days-to-keep: '{build-days-to-keep}'
276
277     parameters:
278       - infra-parameters:
279           project: '{project}'
280           branch: '{branch}'
281           refspec: 'refs/heads/{branch}'
282           artifacts: '{archive-artifacts}'
283       - maven-exec:
284           maven-version: '{maven-version}'
285
286     scm:
287       - gerrit-trigger-scm:
288           refspec: '$GERRIT_REFSPEC'
289           choosing-strategy: 'gerrit'
290           submodule-recursive: '{submodule-recursive}'
291
292     wrappers:
293       - infra-wrappers:
294           build-timeout: '{build-timeout}'
295
296     triggers:
297       - gerrit-trigger-patch-submitted:
298           server: '{server-name}'
299           project: '{project}'
300           branch: '{branch}'
301           files: '{pattern}'
302
303     builders:
304       - provide-maven-settings:
305           global-settings-file: 'global-settings'
306           settings-file: '{mvn-settings}'
307       - maven-target:
308           maven-version: '{maven-version}'
309           pom: '{pom}'
310           goals: 'clean install -B
311             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
312           settings: '{mvn-settings}'
313           settings-type: cfp
314           global-settings: 'global-settings'
315           global-settings-type: cfp
316
317     publishers:
318       - infra-shiplogs:
319           maven-version: '{maven-version}'
320
321 - job-template:
322     # Job template for Java daily release jobs
323     #
324     # The purpose of this job template is to run:
325     # 1. maven clean deploy with Sonar scans
326     #
327     # Required Variables:
328     #     branch:    git branch (eg. stable/lithium or master)
329
330     name: '{project-name}-{stream}-release-java-daily'
331
332     project-type: freestyle
333     node: '{build-node}'
334     disabled: '{disabled}'
335     maven-deploy-properties:
336     properties:
337       - infra-properties:
338           build-days-to-keep: '{build-days-to-keep}'
339
340     parameters:
341       - infra-parameters:
342           project: '{project}'
343           branch: '{branch}'
344           refspec: 'refs/heads/{branch}'
345           artifacts: '{archive-artifacts}'
346       - maven-exec:
347           maven-version: '{maven-version}'
348
349     scm:
350       - gerrit-trigger-scm:
351           refspec: ''
352           choosing-strategy: 'default'
353           submodule-recursive: '{submodule-recursive}'
354
355     wrappers:
356       - infra-wrappers:
357           build-timeout: '{build-timeout}'
358
359     triggers:
360       # 11 AM UTC
361       - timed: 'H 11 * * *'
362       - gerrit-trigger-release-manually:
363           server: '{server-name}'
364           project: '{project}'
365           branch: '{branch}'
366
367     builders:
368       - provide-maven-settings:
369           global-settings-file: 'global-settings'
370           settings-file: '{mvn-settings}'
371
372       - maven-target:
373           maven-version: '{maven-version}'
374           goals: 'clean deploy -B
375             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
376           properties:
377             - '{maven-deploy-properties}'
378           java-opts:
379             - '-Xmx4096m -XX:MaxPermSize=512m'
380           settings: '{mvn-settings}'
381           settings-type: cfp
382           global-settings: 'global-settings'
383           global-settings-type: cfp
384
385     publishers:
386       - infra-shiplogs:
387           maven-version: '{maven-version}'
388
389 - job-template:
390     # Job template for Java daily release jobs running checkstyle at the end
391     # When checkstyle will be fully incorporated, it is meant to replace
392     #  '{project-name}-{stream}-release-java-daily'
393     #
394     # The purpose of this job template is to run:
395     # 1. maven clean deploy with Sonar scans
396     #
397     # This job publishes checkstyle results.
398     # This job uses a conditional regex match step to set versions.
399     #
400     # Required Variables:
401     #     branch:    git branch (eg. stable/lithium or master)
402
403     name: '{project-name}-{stream}-release-java-daily-checkstyle'
404     project-type: freestyle
405     node: '{build-node}'
406     disabled: '{disabled}'
407     maven-deploy-properties:
408     properties:
409       - infra-properties:
410           build-days-to-keep: '{build-days-to-keep}'
411     parameters:
412       - infra-parameters:
413           project: '{project}'
414           branch: '{branch}'
415           refspec: 'refs/heads/{branch}'
416           artifacts: '{archive-artifacts}'
417       - maven-exec:
418           maven-version: '{maven-version}'
419     scm:
420       - gerrit-trigger-scm:
421           refspec: ''
422           choosing-strategy: 'default'
423           submodule-recursive: '{submodule-recursive}'
424     wrappers:
425       - infra-wrappers:
426           build-timeout: '{build-timeout}'
427     triggers:
428       # 11 AM UTC
429       - timed: 'H 11 * * *'
430       - gerrit-trigger-release-manually:
431           server: '{server-name}'
432           project: '{project}'
433           branch: '{branch}'
434     builders:
435       - provide-maven-settings:
436           global-settings-file: 'global-settings'
437           settings-file: '{mvn-settings}'
438       - conditional-step:
439           condition-kind: regex-match
440           regex: DoSetVersion
441           label: '{setVersion}'
442           steps:
443             - inject:
444                 properties-file: version.properties
445             - maven-target:
446                 maven-version: '{maven-version}'
447                 goals: 'versions:set versions:update-child-modules versions:commit -B'
448                 properties:
449                   - 'newVersion=${{release_version}}'
450                 settings: '{mvn-settings}'
451                 settings-type: cfp
452                 global-settings: 'global-settings'
453                 global-settings-type: cfp
454       - maven-target:
455           maven-version: '{maven-version}'
456           goals: 'clean deploy -B
457             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
458           properties: '{obj:mvn_properties}'
459           settings: '{mvn-settings}'
460           settings-type: cfp
461           global-settings: 'global-settings'
462           global-settings-type: cfp
463     publishers:
464       - infra-shiplogs:
465           maven-version: '{maven-version}'
466       - checkstyle-result-daily
467
468 - job-template:
469     # Job template for Java daily release jobs
470     #
471     # The purpose of this job template is to run:
472     # 1. maven set versions
473     # 2. maven clean deploy with Sonar scans
474     #
475     # Required Variables:
476     #     branch:    git branch (eg. stable/lithium or master)
477
478     name: '{project-name}-{stream}-release-version-java-daily'
479
480     project-type: freestyle
481     disabled: '{disabled}'
482     node: '{build-node}'
483     maven-deploy-properties:
484     properties:
485       - infra-properties:
486           build-days-to-keep: '{build-days-to-keep}'
487
488     parameters:
489       - infra-parameters:
490           project: '{project}'
491           branch: '{branch}'
492           refspec: 'refs/heads/{branch}'
493           artifacts: '{archive-artifacts}'
494       - maven-exec:
495           maven-version: '{maven-version}'
496
497     scm:
498       - gerrit-trigger-scm:
499           refspec: ''
500           choosing-strategy: 'default'
501           submodule-recursive: '{submodule-recursive}'
502
503     wrappers:
504       - infra-wrappers:
505           build-timeout: '{build-timeout}'
506
507     triggers:
508       # 11 AM UTC
509       - timed: 'H H(10-17) * * *'
510       - gerrit-trigger-release-manually:
511           server: '{server-name}'
512           project: '{project}'
513           branch: '{branch}'
514
515     builders:
516       - provide-maven-settings:
517           global-settings-file: 'global-settings'
518           settings-file: '{mvn-settings}'
519
520       - inject:
521           properties-file: version.properties
522       - maven-target:
523           maven-version: '{maven-version}'
524           goals: 'versions:set versions:update-child-modules versions:commit -B'
525           properties:
526             - 'newVersion=${{release_version}}'
527           settings: '{mvn-settings}'
528           settings-type: cfp
529           global-settings: 'global-settings'
530           global-settings-type: cfp
531
532       - maven-target:
533           maven-version: '{maven-version}'
534           goals: 'clean deploy -B
535             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
536           properties:
537             - '{maven-deploy-properties}'
538           settings: '{mvn-settings}'
539           settings-type: cfp
540           global-settings: 'global-settings'
541           global-settings-type: cfp
542
543     publishers:
544       - infra-shiplogs:
545           maven-version: '{maven-version}'
546
547 - job-template:
548     # Job template for Java daily release jobs
549     #
550     # The purpose of this job template is to run:
551     # 1. maven set versions
552     # 2. maven clean deploy -P {mvn-profile} with Sonar scans
553     #
554     # Required Variables:
555     #     branch:    git branch (eg. stable/lithium or master)
556
557     name: '{project-name}-{stream}-release-version-profile-java-daily'
558
559     project-type: freestyle
560     node: '{build-node}'
561     disabled: '{disabled}'
562     maven-deploy-properties:
563     properties:
564       - infra-properties:
565           build-days-to-keep: '{build-days-to-keep}'
566
567     parameters:
568       - infra-parameters:
569           project: '{project}'
570           branch: '{branch}'
571           refspec: 'refs/heads/{branch}'
572           artifacts: '{archive-artifacts}'
573       - maven-exec:
574           maven-version: '{maven-version}'
575
576     scm:
577       - gerrit-trigger-scm:
578           refspec: ''
579           choosing-strategy: 'default'
580           submodule-recursive: '{submodule-recursive}'
581
582     wrappers:
583       - infra-wrappers:
584           build-timeout: '{build-timeout}'
585
586     triggers:
587       # 11 AM UTC
588       - timed: 'H 11 * * *'
589       - gerrit-trigger-release-manually:
590           server: '{server-name}'
591           project: '{project}'
592           branch: '{branch}'
593
594     builders:
595       - provide-maven-settings:
596           global-settings-file: 'global-settings'
597           settings-file: '{mvn-settings}'
598
599       - inject:
600           properties-file: version.properties
601       - maven-target:
602           maven-version: '{maven-version}'
603           goals: 'versions:set versions:update-child-modules versions:commit -B'
604           properties:
605             - 'newVersion=${{release_version}}'
606           settings: '{mvn-settings}'
607           settings-type: cfp
608           global-settings: 'global-settings'
609           global-settings-type: cfp
610
611       - maven-target:
612           maven-version: '{maven-version}'
613           goals: 'clean deploy -P {mvn-profile} -B
614             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
615           properties:
616             - '{maven-deploy-properties}'
617           settings: '{mvn-settings}'
618           settings-type: cfp
619           global-settings: 'global-settings'
620           global-settings-type: cfp
621
622     publishers:
623       - infra-shiplogs:
624           maven-version: '{maven-version}'
625
626
627 - job-template:
628     # Job template for Java daily release jobs with POM not at the root
629     #
630     # The purpose of this job template is to run:
631     # 1. maven clean deploy with Sonar scans
632     #
633     # This job supports subprojects.
634     #
635     # Required Variables:
636     #     branch:    git branch (eg. stable/lithium or master)
637     #     pom:       name/location of the pom.xml file relative to the workspace
638
639     name: '{project-name}-{stream}-{subproject}-release-java-daily'
640
641     project-type: freestyle
642     node: '{build-node}'
643     disabled: '{disabled}'
644     maven-deploy-properties:
645     properties:
646       - infra-properties:
647           build-days-to-keep: '{build-days-to-keep}'
648
649     parameters:
650       - infra-parameters:
651           project: '{project}'
652           branch: '{branch}'
653           refspec: 'refs/heads/{branch}'
654           artifacts: '{archive-artifacts}'
655       - maven-exec:
656           maven-version: '{maven-version}'
657
658     scm:
659       - gerrit-trigger-scm:
660           refspec: ''
661           choosing-strategy: 'default'
662           submodule-recursive: '{submodule-recursive}'
663
664     wrappers:
665       - infra-wrappers:
666           build-timeout: '{build-timeout}'
667
668     triggers:
669       # 11 AM UTC
670       - timed: 'H 11 * * *'
671       - gerrit-trigger-release-manually:
672           server: '{server-name}'
673           project: '{project}'
674           branch: '{branch}'
675
676     builders:
677       - provide-maven-settings:
678           global-settings-file: 'global-settings'
679           settings-file: '{mvn-settings}'
680
681       - maven-target:
682           maven-version: '{maven-version}'
683           pom: '{pom}'
684           goals: 'clean deploy -B
685             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
686           properties:
687             - '{maven-deploy-properties}'
688           java-opts:
689             - '-Xmx4096m -XX:MaxPermSize=512m'
690           settings: '{mvn-settings}'
691           settings-type: cfp
692           global-settings: 'global-settings'
693           global-settings-type: cfp
694
695     publishers:
696       - infra-shiplogs:
697           maven-version: '{maven-version}'
698
699 - job-template:
700     # Job template for Java daily release jobs with POM not at the root
701     #
702     # The purpose of this job template is to run:
703     # 1. maven set versions
704     # 2. maven clean deploy with Sonar scans
705     #
706     # This job supports subprojects.
707     #
708     # Required Variables:
709     #     branch:    git branch (eg. stable/lithium or master)
710     #     pom:       name/location of the pom.xml file relative to the workspace
711
712     name: '{project-name}-{stream}-{subproject}-release-version-java-daily'
713
714     project-type: freestyle
715     node: '{build-node}'
716     disabled: '{disabled}'
717     maven-deploy-properties:
718     properties:
719       - infra-properties:
720           build-days-to-keep: '{build-days-to-keep}'
721
722     parameters:
723       - infra-parameters:
724           project: '{project}'
725           branch: '{branch}'
726           refspec: 'refs/heads/{branch}'
727           artifacts: '{archive-artifacts}'
728       - maven-exec:
729           maven-version: '{maven-version}'
730
731     scm:
732       - gerrit-trigger-scm:
733           refspec: ''
734           choosing-strategy: 'default'
735           submodule-recursive: '{submodule-recursive}'
736
737     wrappers:
738       - infra-wrappers:
739           build-timeout: '{build-timeout}'
740
741     triggers:
742       # 11 AM UTC
743       - timed: 'H 11 * * *'
744       - gerrit-trigger-release-manually:
745           server: '{server-name}'
746           project: '{project}'
747           branch: '{branch}'
748
749     builders:
750       - provide-maven-settings:
751           global-settings-file: 'global-settings'
752           settings-file: '{mvn-settings}'
753
754       - inject:
755           properties-file: version.properties
756       - maven-target:
757           maven-version: '{maven-version}'
758           pom: '{pom}'
759           goals: 'versions:set versions:update-child-modules versions:commit -B'
760           properties:
761             - 'newVersion=${{release_version}}'
762           settings: '{mvn-settings}'
763           settings-type: cfp
764           global-settings: 'global-settings'
765           global-settings-type: cfp
766
767       - maven-target:
768           maven-version: '{maven-version}'
769           pom: '{pom}'
770           goals: 'clean deploy -B
771             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
772           properties:
773             - '{maven-deploy-properties}'
774           settings: '{mvn-settings}'
775           settings-type: cfp
776           global-settings: 'global-settings'
777           global-settings-type: cfp
778
779     publishers:
780       - infra-shiplogs:
781           maven-version: '{maven-version}'
782
783
784 - job-template:
785     # Job template for Java merge jobs
786     #
787     # The purpose of this job template is to run:
788     # 1. maven clean deploy
789     #
790     # Required Variables:
791     #     branch:    git branch (eg. stable/lithium or master)
792
793     name: '{project-name}-{stream}-merge-java'
794
795     project-type: freestyle
796     node: '{build-node}'
797
798     properties:
799       - infra-properties:
800           build-days-to-keep: '{build-days-to-keep}'
801
802     parameters:
803       - infra-parameters:
804           project: '{project}'
805           branch: '{branch}'
806           refspec: 'refs/heads/{branch}'
807           artifacts: '{archive-artifacts}'
808       - maven-exec:
809           maven-version: '{maven-version}'
810
811     scm:
812       - gerrit-trigger-scm:
813           refspec: ''
814           choosing-strategy: 'default'
815           submodule-recursive: '{submodule-recursive}'
816
817     wrappers:
818       - infra-wrappers:
819           build-timeout: '{build-timeout}'
820
821     triggers:
822       - gerrit-trigger-patch-merged:
823           server: '{server-name}'
824           project: '{project}'
825           branch: '{branch}'
826           files: '**'
827
828     builders:
829       - provide-maven-settings:
830           global-settings-file: 'global-settings'
831           settings-file: '{mvn-settings}'
832       - maven-target:
833           maven-version: '{maven-version}'
834           goals: 'clean deploy -B
835             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
836           settings: '{mvn-settings}'
837           settings-type: cfp
838           global-settings: 'global-settings'
839           global-settings-type: cfp
840
841     publishers:
842       - infra-shiplogs:
843           maven-version: '{maven-version}'
844
845 - job-template:
846     # Job template for Java merge jobs based on
847     #   '{project-name}-{stream}-merge-java'
848     # The purpose of this job template is to run:
849     # 1. maven clean deploy
850     #
851     # This project supports maven properties.
852     #
853     # Required Variables:
854     #     branch:    git branch (eg. stable/lithium or master)
855     #     maven-properties: properties passed to maven
856
857     name: '{project-name}-{stream}-merge-properties-java'
858
859     project-type: freestyle
860     node: '{build-node}'
861
862     properties:
863       - infra-properties:
864           build-days-to-keep: '{build-days-to-keep}'
865
866     parameters:
867       - infra-parameters:
868           project: '{project}'
869           branch: '{branch}'
870           refspec: 'refs/heads/{branch}'
871           artifacts: '{archive-artifacts}'
872       - maven-exec:
873           maven-version: '{maven-version}'
874
875     scm:
876       - gerrit-trigger-scm:
877           refspec: ''
878           choosing-strategy: 'default'
879           submodule-recursive: '{submodule-recursive}'
880
881     wrappers:
882       - infra-wrappers:
883           build-timeout: '{build-timeout}'
884
885     triggers:
886       - gerrit-trigger-patch-merged:
887           server: '{server-name}'
888           project: '{project}'
889           branch: '{branch}'
890           files: '**'
891
892     builders:
893       - provide-maven-settings:
894           global-settings-file: 'global-settings'
895           settings-file: '{mvn-settings}'
896       - maven-target:
897           maven-version: '{maven-version}'
898           goals: 'clean deploy -B
899             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
900           settings: '{mvn-settings}'
901           settings-type: cfp
902           global-settings: 'global-settings'
903           global-settings-type: cfp
904           properties: '{obj:mvn_properties}'
905
906     publishers:
907       - infra-shiplogs:
908           maven-version: '{maven-version}'
909
910 - job-template:
911     # Job template for Java merge jobs that takes a maven template
912     #
913     # The purpose of this job template is to run:
914     # 1. maven clean deploy -P {mvn-profile}
915     #
916     # Required Variables:
917     #     branch:    git branch (eg. stable/lithium or master)
918
919     name: '{project-name}-{stream}-merge-profile-java'
920
921     project-type: freestyle
922     node: '{build-node}'
923
924     properties:
925       - infra-properties:
926           build-days-to-keep: '{build-days-to-keep}'
927
928     parameters:
929       - infra-parameters:
930           project: '{project}'
931           branch: '{branch}'
932           refspec: 'refs/heads/{branch}'
933           artifacts: '{archive-artifacts}'
934       - maven-exec:
935           maven-version: '{maven-version}'
936
937     scm:
938       - gerrit-trigger-scm:
939           refspec: ''
940           choosing-strategy: 'default'
941           submodule-recursive: '{submodule-recursive}'
942
943     wrappers:
944       - infra-wrappers:
945           build-timeout: '{build-timeout}'
946
947     triggers:
948       - gerrit-trigger-patch-merged:
949           server: '{server-name}'
950           project: '{project}'
951           branch: '{branch}'
952           files: '{files}'
953
954     builders:
955       - provide-maven-settings:
956           global-settings-file: 'global-settings'
957           settings-file: '{mvn-settings}'
958
959       - docker-login
960
961       - maven-target:
962           maven-version: '{maven-version}'
963           goals: 'clean deploy -P {mvn-profile} -B
964             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
965           settings: '{mvn-settings}'
966           settings-type: cfp
967           global-settings: 'global-settings'
968           global-settings-type: cfp
969           properties:
970             - docker.pull.registry=nexus3.onap.org:10001
971             - docker.push.registry=nexus3.onap.org:10003
972
973     publishers:
974       - infra-shiplogs:
975           maven-version: '{maven-version}'
976
977 - job-template:
978     # Job template for Java merge jobs with POM not at the root
979     #
980     # The purpose of this job template is to run:
981     # 1. maven clean deploy
982     #
983     # This job supports subprojects.
984     #
985     # Required Variables:
986     #     branch:    git branch (eg. stable/lithium or master)
987     #     pom:       name/location of the pom.xml file relative to the workspace
988     #     pattern:   ant file-path pattern relative to the workspace used to
989     #                trigger the job
990
991     name: '{project-name}-{stream}-{subproject}-merge-java'
992
993     project-type: freestyle
994     node: '{build-node}'
995
996     properties:
997       - infra-properties:
998           build-days-to-keep: '{build-days-to-keep}'
999
1000     parameters:
1001       - infra-parameters:
1002           project: '{project}'
1003           branch: '{branch}'
1004           refspec: 'refs/heads/{branch}'
1005           artifacts: '{archive-artifacts}'
1006       - maven-exec:
1007           maven-version: '{maven-version}'
1008
1009     scm:
1010       - gerrit-trigger-scm:
1011           refspec: ''
1012           choosing-strategy: 'default'
1013           submodule-recursive: '{submodule-recursive}'
1014
1015     wrappers:
1016       - infra-wrappers:
1017           build-timeout: '{build-timeout}'
1018
1019     triggers:
1020       - gerrit-trigger-patch-merged:
1021           server: '{server-name}'
1022           project: '{project}'
1023           branch: '{branch}'
1024           files: '{pattern}'
1025
1026     builders:
1027       - provide-maven-settings:
1028           global-settings-file: 'global-settings'
1029           settings-file: '{mvn-settings}'
1030       - maven-target:
1031           maven-version: '{maven-version}'
1032           pom: '{pom}'
1033           goals: 'clean deploy -B
1034             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
1035           settings: '{mvn-settings}'
1036           settings-type: cfp
1037           global-settings: 'global-settings'
1038           global-settings-type: cfp
1039
1040     publishers:
1041       - infra-shiplogs:
1042           maven-version: '{maven-version}'
1043
1044 - job-template:
1045     # Job template for Docker daily jobs
1046     #
1047     # The purpose of this job template is to run:
1048     # 1. login to the docker registry
1049     # 2. docker push
1050     #
1051     # Required Variables:
1052     #     branch:    git branch (eg. stable/lithium or master)
1053
1054     name: '{project-name}-{stream}-docker-java-daily'
1055     id: '{project-name}-{stream}-docker-java-daily'
1056     project-type: freestyle
1057     node: 'ubuntu1604-docker-8c-8g'
1058     disabled: '{disabled}'
1059     properties:
1060       - infra-properties:
1061           build-days-to-keep: '{build-days-to-keep}'
1062
1063     parameters:
1064       - infra-parameters:
1065           project: '{project}'
1066           branch: '{branch}'
1067           refspec: 'refs/heads/{branch}'
1068           artifacts: '{archive-artifacts}'
1069       - maven-exec:
1070           maven-version: '{maven-version}'
1071       - maven-params:
1072           mvn-params: '{mvn-params}'
1073
1074     scm:
1075       - gerrit-trigger-scm:
1076           refspec: ''
1077           choosing-strategy: 'default'
1078           submodule-recursive: '{submodule-recursive}'
1079
1080     wrappers:
1081       - infra-wrappers:
1082           build-timeout: '{build-timeout}'
1083
1084     triggers:
1085       # 12 AM UTC
1086       - timed: 'H 12 * * *'
1087       - gerrit-trigger-release-manually:
1088           server: '{server-name}'
1089           project: '{project}'
1090           branch: '{branch}'
1091
1092     builders:
1093
1094       - provide-maven-settings:
1095           global-settings-file: 'global-settings'
1096           settings-file: '{mvn-settings}'
1097
1098       - docker-login
1099
1100       - maven-docker-push-daily:
1101           maven-version: '{maven-version}'
1102           mvn-settings: '{mvn-settings}'
1103           pom: '{docker-pom}'
1104           # use default as mvn-profile if profile is not needed
1105           mvn-profile: '{mvn-profile}'
1106           mvn-params: '{mvn-params}'
1107
1108     publishers:
1109       - infra-shiplogs:
1110           maven-version: '{maven-version}'
1111
1112 - job-template:
1113     # Job template for Docker daily jobs
1114     #
1115     # The purpose of this job template is to run:
1116     # 1. login to the docker registry
1117     # 2. docker push
1118     #
1119     # Required Variables:
1120     #     branch:    git branch (eg. stable/lithium or master)
1121
1122     name: '{project-name}-{stream}-docker-java-daily'
1123     id: docker-java-daily
1124     project-type: freestyle
1125     node: '{build-node}'
1126     disabled: '{disabled}'
1127     properties:
1128       - infra-properties:
1129           build-days-to-keep: '{build-days-to-keep}'
1130
1131     parameters:
1132       - infra-parameters:
1133           project: '{project}'
1134           branch: '{branch}'
1135           refspec: 'refs/heads/{branch}'
1136           artifacts: '{archive-artifacts}'
1137       - maven-exec:
1138           maven-version: '{maven-version}'
1139       - maven-params:
1140           mvn-params: '{mvn-params}'
1141
1142     scm:
1143       - gerrit-trigger-scm:
1144           refspec: ''
1145           choosing-strategy: 'default'
1146           submodule-recursive: '{submodule-recursive}'
1147
1148     wrappers:
1149       - infra-wrappers-docker-build:
1150           build-timeout: '{build-timeout}'
1151
1152     triggers:
1153       # 12 AM UTC
1154       - timed: 'H 12 * * *'
1155       - gerrit-trigger-release-manually:
1156           server: '{server-name}'
1157           project: '{project}'
1158           branch: '{branch}'
1159
1160     builders:
1161
1162       - provide-maven-settings:
1163           global-settings-file: 'global-settings'
1164           settings-file: '{mvn-settings}'
1165
1166       - docker-login
1167
1168       - maven-docker-push-daily:
1169           maven-version: '{maven-version}'
1170           mvn-settings: '{mvn-settings}'
1171           pom: '{docker-pom}'
1172           # use default as mvn-profile if profile is not needed
1173           mvn-profile: '{mvn-profile}'
1174           mvn-params: '{mvn-params}'
1175
1176     publishers:
1177       - infra-shiplogs:
1178           maven-version: '{maven-version}'
1179
1180
1181 - job-template:
1182     # Job template for building & pushing docker images
1183     #
1184     # The purpose of this job template is to run:
1185     #  1. login to the docker registry
1186     #  2. maven clean deploy on the specified profile
1187     #
1188     # This job uses a conditional regex match step to set versions.
1189     # This template supports maven properties.
1190     #
1191     # Required Variables:
1192     #     pom:       name/location of the pom.xml file relative to the workspace
1193     #     profile:   the docker profile defined in the pom
1194     #     maven-properties: properties passed to maven
1195
1196     name: '{project-name}-{stream}-docker-java-properties-daily'
1197     project-type: freestyle
1198     node: 'ubuntu1604-docker-8c-8g'
1199     disabled: '{disabled}'
1200     properties:
1201       - infra-properties:
1202           build-days-to-keep: '{build-days-to-keep}'
1203     parameters:
1204       - infra-parameters:
1205           project: '{project}'
1206           branch: '{branch}'
1207           refspec: 'refs/heads/{branch}'
1208           artifacts: '{archive-artifacts}'
1209       - maven-exec:
1210           maven-version: '{maven-version}'
1211       - maven-params:
1212           mvn-params: '{mvn-params}'
1213     scm:
1214       - gerrit-trigger-scm:
1215           refspec: ''
1216           choosing-strategy: 'default'
1217           submodule-recursive: '{submodule-recursive}'
1218     wrappers:
1219       - infra-wrappers:
1220           build-timeout: '{build-timeout}'
1221     triggers:
1222       # 12 AM UTC
1223       - timed: 'H 12 * * *'
1224       - gerrit-trigger-release-manually:
1225           server: '{server-name}'
1226           project: '{project}'
1227           branch: '{branch}'
1228     builders:
1229       - provide-maven-settings:
1230           global-settings-file: 'global-settings'
1231           settings-file: '{mvn-settings}'
1232       - conditional-step:
1233           condition-kind: regex-match
1234           regex: DoSetVersion
1235           label: '{setVersion}'
1236           steps:
1237             - inject:
1238                 properties-file: version.properties
1239             - maven-target:
1240                 maven-version: '{maven-version}'
1241                 goals: 'versions:set versions:update-child-modules versions:commit -B'
1242                 properties:
1243                   - 'newVersion=${{release_version}}'
1244                 settings: '{mvn-settings}'
1245                 settings-type: cfp
1246                 global-settings: 'global-settings'
1247                 global-settings-type: cfp
1248       - docker-login
1249       - maven-docker-push-daily:
1250           maven-version: '{maven-version}'
1251           mvn-settings: '{mvn-settings}'
1252           pom: '{docker-pom}'
1253           properties: '{maven-properties}'
1254           # use default as mvn-profile if profile is not needed
1255           mvn-profile: '{mvn-profile}'
1256           mvn-params: '{mvn-params}'
1257     publishers:
1258       - infra-shiplogs:
1259           maven-version: '{maven-version}'
1260
1261 - job-template:
1262     # Job template for building & pushing docker images
1263     #
1264     # The purpose of this job template is to run:
1265     #  1. login to the docker registry
1266     #  2. run a specified shell builder
1267     #
1268     # Required Variables:
1269     #     pom:       name/location of the pom.xml file relative to the workspace
1270     #     maven-properties: properties passed to maven
1271
1272     name: '{project-name}-{stream}-docker-java-shell-daily'
1273     project-type: freestyle
1274     node: 'ubuntu1604-docker-8c-8g'
1275     disabled: '{disabled}'
1276     properties:
1277       - infra-properties:
1278           build-days-to-keep: '{build-days-to-keep}'
1279
1280     parameters:
1281       - infra-parameters:
1282           project: '{project}'
1283           branch: '{branch}'
1284           refspec: 'refs/heads/{branch}'
1285           artifacts: '{archive-artifacts}'
1286       - maven-exec:
1287           maven-version: '{maven-version}'
1288
1289     scm:
1290       - gerrit-trigger-scm:
1291           refspec: ''
1292           choosing-strategy: 'default'
1293           submodule-recursive: '{submodule-recursive}'
1294
1295     wrappers:
1296       - infra-wrappers:
1297           build-timeout: '{build-timeout}'
1298
1299     triggers:
1300       # 12 AM UTC
1301       - timed: 'H 12 * * *'
1302       - gerrit-trigger-release-manually:
1303           server: '{server-name}'
1304           project: '{project}'
1305           branch: '{branch}'
1306
1307     builders:
1308
1309       - provide-maven-settings:
1310           global-settings-file: 'global-settings'
1311           settings-file: '{mvn-settings}'
1312
1313       - docker-login
1314
1315       - maven-target:
1316           maven-version: '{maven-version}'
1317           goals: '{mvn-goals}'
1318           settings: '{mvn-settings}'
1319           settings-type: cfp
1320           global-settings: 'global-settings'
1321           global-settings-type: cfp
1322
1323       - shell: '{script}'
1324
1325     publishers:
1326       - infra-shiplogs:
1327           maven-version: '{maven-version}'
1328
1329 - job-template:
1330     # Job template for building & pushing docker images
1331     #
1332     # The purpose of this job template is to run:
1333     #  1. login to the docker registry
1334     #  2. inject a version.properties file and set versions
1335     #  3. run a specified shell builder
1336     #
1337     # Required Variables:
1338     #     pom:       name/location of the pom.xml file relative to the workspace
1339     #     maven-properties: properties passed to maven
1340
1341     name: '{project-name}-{stream}-docker-java-version-shell-daily'
1342     project-type: freestyle
1343     node: 'ubuntu1604-docker-8c-8g'
1344     disabled: '{disabled}'
1345     properties:
1346       - infra-properties:
1347           build-days-to-keep: '{build-days-to-keep}'
1348
1349     parameters:
1350       - infra-parameters:
1351           project: '{project}'
1352           branch: '{branch}'
1353           refspec: 'refs/heads/{branch}'
1354           artifacts: '{archive-artifacts}'
1355       - maven-exec:
1356           maven-version: '{maven-version}'
1357
1358     scm:
1359       - gerrit-trigger-scm:
1360           refspec: ''
1361           choosing-strategy: 'default'
1362           submodule-recursive: '{submodule-recursive}'
1363
1364     wrappers:
1365       - infra-wrappers:
1366           build-timeout: '{build-timeout}'
1367
1368     triggers:
1369       # 12 AM UTC
1370       - timed: 'H 12 * * *'
1371       - gerrit-trigger-release-manually:
1372           server: '{server-name}'
1373           project: '{project}'
1374           branch: '{branch}'
1375
1376     builders:
1377
1378       - provide-maven-settings:
1379           global-settings-file: 'global-settings'
1380           settings-file: '{mvn-settings}'
1381
1382       - inject:
1383           properties-file: version.properties
1384
1385       - maven-target:
1386           maven-version: '{maven-version}'
1387           goals: 'versions:set versions:update-child-modules versions:commit -B'
1388           properties:
1389             - 'newVersion=${{release_version}}'
1390           settings: '{mvn-settings}'
1391           settings-type: cfp
1392           global-settings: 'global-settings'
1393           global-settings-type: cfp
1394
1395       - docker-login
1396
1397       - maven-target:
1398           maven-version: '{maven-version}'
1399           goals: '{mvn-goals}'
1400           settings: '{mvn-settings}'
1401           settings-type: cfp
1402           global-settings: 'global-settings'
1403           global-settings-type: cfp
1404
1405       - shell: '{script}'
1406
1407     publishers:
1408       - infra-shiplogs:
1409           maven-version: '{maven-version}'
1410
1411 - job-template:
1412     # Job template for building & pushing docker images
1413     #
1414     # The purpose of this job template is to run:
1415     #  1. login to the docker registry
1416     #  2. inject a version.properties file and set versions
1417     #  3. run a specified shell builder
1418     #
1419     # This template supports subprojects.
1420     #
1421     # Required Variables:
1422     #     pom:       name/location of the pom.xml file relative to the workspace
1423     #     maven-properties: properties passed to maven
1424
1425     name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
1426     project-type: freestyle
1427     node: 'ubuntu1604-docker-8c-8g'
1428     disabled: '{disabled}'
1429     properties:
1430       - infra-properties:
1431           build-days-to-keep: '{build-days-to-keep}'
1432
1433     parameters:
1434       - infra-parameters:
1435           project: '{project}'
1436           branch: '{branch}'
1437           refspec: 'refs/heads/{branch}'
1438           artifacts: '{archive-artifacts}'
1439       - maven-exec:
1440           maven-version: '{maven-version}'
1441
1442     scm:
1443       - gerrit-trigger-scm:
1444           refspec: ''
1445           choosing-strategy: 'default'
1446           submodule-recursive: '{submodule-recursive}'
1447
1448     wrappers:
1449       - infra-wrappers:
1450           build-timeout: '{build-timeout}'
1451
1452     triggers:
1453       # 12 AM UTC
1454       - timed: 'H 12 * * *'
1455       - gerrit-trigger-release-manually:
1456           server: '{server-name}'
1457           project: '{project}'
1458           branch: '{branch}'
1459
1460     builders:
1461
1462       - provide-maven-settings:
1463           global-settings-file: 'global-settings'
1464           settings-file: '{mvn-settings}'
1465
1466       - inject:
1467           properties-file: version.properties
1468
1469       - maven-target:
1470           maven-version: '{maven-version}'
1471           pom: '{pom}'
1472           goals: 'versions:set versions:update-child-modules versions:commit -B'
1473           properties:
1474             - 'newVersion=${{release_version}}'
1475           settings: '{mvn-settings}'
1476           settings-type: cfp
1477           global-settings: 'global-settings'
1478           global-settings-type: cfp
1479
1480       - docker-login
1481
1482       - maven-target:
1483           maven-version: '{maven-version}'
1484           pom: '{pom}'
1485           goals: '{mvn-goals}'
1486           settings: '{mvn-settings}'
1487           settings-type: cfp
1488           global-settings: 'global-settings'
1489           global-settings-type: cfp
1490
1491       - shell: '{script}'
1492
1493     publishers:
1494       - infra-shiplogs:
1495           maven-version: '{maven-version}'
1496
1497 - job-template:
1498     # Job template for building & pushing docker images
1499     #
1500     # The purpose of this job template is to run:
1501     #  1. login to the docker registry
1502     #  2. inject a version.properties file and set versions
1503     #  3. run a docker push
1504     #
1505     # Required Variables:
1506     #     pom:       name/location of the pom.xml file relative to the workspace
1507     #     profile:   the docker profile defined in the pom
1508     #     maven-properties: properties passed to maven
1509
1510     name: '{project-name}-{stream}-docker-version-java-daily'
1511     id: '{project-name}-{stream}-docker-version-java-daily'
1512     project-type: freestyle
1513     node: 'ubuntu1604-docker-8c-8g'
1514     disabled: '{disabled}'
1515     properties:
1516       - infra-properties:
1517           build-days-to-keep: '{build-days-to-keep}'
1518
1519     parameters:
1520       - infra-parameters:
1521           project: '{project}'
1522           branch: '{branch}'
1523           refspec: 'refs/heads/{branch}'
1524           artifacts: '{archive-artifacts}'
1525       - maven-exec:
1526           maven-version: '{maven-version}'
1527       - maven-params:
1528           mvn-params: '{mvn-params}'
1529
1530     scm:
1531       - gerrit-trigger-scm:
1532           refspec: ''
1533           choosing-strategy: 'default'
1534           submodule-recursive: '{submodule-recursive}'
1535
1536     wrappers:
1537       - infra-wrappers:
1538           build-timeout: '{build-timeout}'
1539
1540     triggers:
1541       # 12 AM UTC
1542       - timed: 'H 12 * * *'
1543       - gerrit-trigger-release-manually:
1544           server: '{server-name}'
1545           project: '{project}'
1546           branch: '{branch}'
1547
1548     builders:
1549
1550       - provide-maven-settings:
1551           global-settings-file: 'global-settings'
1552           settings-file: '{mvn-settings}'
1553
1554       - inject:
1555           properties-file: version.properties
1556
1557       - maven-target:
1558           maven-version: '{maven-version}'
1559           goals: 'versions:set versions:update-child-modules versions:commit -B'
1560           properties:
1561             - 'newVersion=${{release_version}}'
1562           settings: '{mvn-settings}'
1563           settings-type: cfp
1564           global-settings: 'global-settings'
1565           global-settings-type: cfp
1566
1567       - docker-login
1568
1569       - maven-docker-push-daily:
1570           maven-version: '{maven-version}'
1571           mvn-settings: '{mvn-settings}'
1572           pom: '{docker-pom}'
1573           # use default as mvn-profile if profile is not needed
1574           mvn-profile: '{mvn-profile}'
1575           mvn-params: '{mvn-params}'
1576
1577     publishers:
1578       - infra-shiplogs:
1579           maven-version: '{maven-version}'
1580
1581 - job-template:
1582     # Job template for building & pushing docker images
1583     #
1584     # The purpose of this job template is to run:
1585     #  1. login to the docker registry
1586     #  2. inject a version.properties file and set versions
1587     #  3. run a docker push
1588     #
1589     # Required Variables:
1590     #     pom:       name/location of the pom.xml file relative to the workspace
1591     #     profile:   the docker profile defined in the pom
1592     #     maven-properties: properties passed to maven
1593
1594     name: '{project-name}-{stream}-docker-version-java-daily'
1595     id: 'docker-version-java-daily'
1596     project-type: freestyle
1597     node: '{build-node}'
1598     disabled: '{disabled}'
1599     properties:
1600       - infra-properties:
1601           build-days-to-keep: '{build-days-to-keep}'
1602
1603     parameters:
1604       - infra-parameters:
1605           project: '{project}'
1606           branch: '{branch}'
1607           refspec: 'refs/heads/{branch}'
1608           artifacts: '{archive-artifacts}'
1609       - maven-exec:
1610           maven-version: '{maven-version}'
1611       - maven-params:
1612           mvn-params: '{mvn-params}'
1613
1614     scm:
1615       - gerrit-trigger-scm:
1616           refspec: ''
1617           choosing-strategy: 'default'
1618           submodule-recursive: '{submodule-recursive}'
1619
1620     wrappers:
1621       - infra-wrappers-docker-build:
1622           build-timeout: '{build-timeout}'
1623
1624     triggers:
1625       # 12 AM UTC
1626       - timed: 'H 12 * * *'
1627       - gerrit-trigger-release-manually:
1628           server: '{server-name}'
1629           project: '{project}'
1630           branch: '{branch}'
1631
1632     builders:
1633
1634       - provide-maven-settings:
1635           global-settings-file: 'global-settings'
1636           settings-file: '{mvn-settings}'
1637
1638       - inject:
1639           properties-file: version.properties
1640
1641       - maven-target:
1642           maven-version: '{maven-version}'
1643           goals: 'versions:set versions:update-child-modules versions:commit -B'
1644           properties:
1645             - 'newVersion=${{release_version}}'
1646           settings: '{mvn-settings}'
1647           settings-type: cfp
1648           global-settings: 'global-settings'
1649           global-settings-type: cfp
1650
1651       - docker-login
1652
1653       - maven-docker-push-daily:
1654           maven-version: '{maven-version}'
1655           mvn-settings: '{mvn-settings}'
1656           pom: '{docker-pom}'
1657           # use default as mvn-profile if profile is not needed
1658           mvn-profile: '{mvn-profile}'
1659           mvn-params: '{mvn-params}'
1660
1661     publishers:
1662       - infra-shiplogs:
1663           maven-version: '{maven-version}'
1664
1665 - job-template:
1666     # Job template for building & pushing docker images
1667     #
1668     # The purpose of this job template is to run:
1669     #  1. inject a version.properties file and set versions
1670     #  2. login to the docker registry
1671     #  3. run a docker push
1672     #
1673     # This job supports subprojects.
1674     #
1675     # Required Variables:
1676     #     pom:       name/location of the pom.xml file relative to the workspace
1677     #     maven-properties: properties passed to maven
1678
1679     name: '{project-name}-{stream}-{subproject}-docker-version-java-daily'
1680     project-type: freestyle
1681     node: 'ubuntu1604-docker-8c-8g'
1682     disabled: '{disabled}'
1683     properties:
1684       - infra-properties:
1685           build-days-to-keep: '{build-days-to-keep}'
1686
1687     parameters:
1688       - infra-parameters:
1689           project: '{project}'
1690           branch: '{branch}'
1691           refspec: 'refs/heads/{branch}'
1692           artifacts: '{archive-artifacts}'
1693       - maven-exec:
1694           maven-version: '{maven-version}'
1695       - maven-params:
1696           mvn-params: '{mvn-params}'
1697
1698     scm:
1699       - gerrit-trigger-scm:
1700           refspec: ''
1701           choosing-strategy: 'default'
1702           submodule-recursive: '{submodule-recursive}'
1703
1704     wrappers:
1705       - infra-wrappers:
1706           build-timeout: '{build-timeout}'
1707
1708     triggers:
1709       # 12 AM UTC
1710       - timed: 'H 12 * * *'
1711       - gerrit-trigger-release-manually:
1712           server: '{server-name}'
1713           project: '{project}'
1714           branch: '{branch}'
1715
1716     builders:
1717
1718       - provide-maven-settings:
1719           global-settings-file: 'global-settings'
1720           settings-file: '{mvn-settings}'
1721
1722       - inject:
1723           properties-file: version.properties
1724
1725       - maven-target:
1726           maven-version: '{maven-version}'
1727           pom: '{pom}'
1728           goals: 'versions:set versions:update-child-modules versions:commit -B'
1729           properties:
1730             - 'newVersion=${{release_version}}'
1731           settings: '{mvn-settings}'
1732           settings-type: cfp
1733           global-settings: 'global-settings'
1734           global-settings-type: cfp
1735
1736       - docker-login
1737
1738       - maven-docker-push-daily:
1739           maven-version: '{maven-version}'
1740           pom: '{pom}'
1741           mvn-settings: '{mvn-settings}'
1742           pom: '{docker-pom}'
1743           # use default as mvn-profile if profile is not needed
1744           mvn-profile: '{mvn-profile}'
1745           mvn-params: '{mvn-params}'
1746
1747     publishers:
1748       - infra-shiplogs:
1749           maven-version: '{maven-version}'
1750
1751 - job-template:
1752     # Job template for building & pushing docker images for AAI specific repos
1753     #
1754     # The purpose of this job template is to run:
1755     #  1. login to the docker registry
1756     #  2. run maven goals
1757     #  3. run include-docker-push.sh
1758     #
1759     # Required Variables:
1760     #     pom:       name/location of the pom.xml file relative to the workspace
1761     #     maven-properties: properties passed to maven
1762
1763     name: '{project-name}-{stream}-aai-docker-java-daily'
1764     project-type: freestyle
1765     node: 'ubuntu1604-docker-8c-8g'
1766     docker-image-name: ''
1767     disabled: '{disabled}'
1768     properties:
1769       - infra-properties:
1770           build-days-to-keep: '{build-days-to-keep}'
1771
1772     parameters:
1773       - infra-parameters:
1774           project: '{project}'
1775           branch: '{branch}'
1776           refspec: 'refs/heads/{branch}'
1777           artifacts: '{archive-artifacts}'
1778       - maven-exec:
1779           maven-version: '{maven-version}'
1780       - docker-image-name:
1781           docker-image-name: '{docker-image-name}'
1782
1783     scm:
1784       - gerrit-trigger-scm:
1785           refspec: ''
1786           choosing-strategy: 'default'
1787           submodule-recursive: '{submodule-recursive}'
1788
1789     wrappers:
1790       - infra-wrappers:
1791           build-timeout: '{build-timeout}'
1792
1793     triggers:
1794       # 12 AM UTC
1795       - timed: 'H 12 * * *'
1796       - gerrit-trigger-release-manually:
1797           server: '{server-name}'
1798           project: '{project}'
1799           branch: '{branch}'
1800
1801     builders:
1802
1803       - provide-maven-settings:
1804           global-settings-file: 'global-settings'
1805           settings-file: '{mvn-settings}'
1806
1807       - docker-login
1808
1809       - maven-target:
1810           maven-version: '{maven-version}'
1811           pom: 'pom.xml'
1812           goals: 'clean install -DskipTests -B
1813             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
1814           settings: '{mvn-settings}'
1815           settings-type: cfp
1816           global-settings: 'global-settings'
1817           global-settings-type: cfp
1818
1819       - maven-target:
1820           maven-version: '{maven-version}'
1821           pom: '{pom}'
1822           goals: '{mvn-goals}'
1823           settings: '{mvn-settings}'
1824           settings-type: cfp
1825           global-settings: 'global-settings'
1826           global-settings-type: cfp
1827           properties:
1828             - maven.test.skip=true
1829             - docker.pull.registry=nexus3.onap.org:10001
1830             - docker.push.registry=nexus3.onap.org:10003
1831
1832       - shell: !include-raw-escape: include-docker-push.sh
1833
1834     publishers:
1835       - infra-shiplogs:
1836           maven-version: '{maven-version}'
1837
1838 - job-template:
1839     # Job template for building & pushing docker images for AAI specific repos
1840     #
1841     # The purpose of this job template is to run:
1842     #  1. login to the docker registry
1843     #  2. run maven goals
1844     #  3. run include-docker-push.sh
1845     #
1846     # This job supports subprojects
1847     #
1848     # Required Variables:
1849     #     pom:       name/location of the pom.xml file relative to the workspace
1850     #     maven-properties: properties passed to maven
1851
1852     name: '{project-name}-{stream}-{subproject}-aai-docker-java-daily'
1853     project-type: freestyle
1854     node: 'ubuntu1604-docker-8c-8g'
1855     disabled: '{disabled}'
1856     docker-image-name: ''
1857
1858     properties:
1859       - infra-properties:
1860           build-days-to-keep: '{build-days-to-keep}'
1861
1862     parameters:
1863       - infra-parameters:
1864           project: '{project}'
1865           branch: '{branch}'
1866           refspec: 'refs/heads/{branch}'
1867           artifacts: '{archive-artifacts}'
1868       - maven-exec:
1869           maven-version: '{maven-version}'
1870       - docker-image-name:
1871           docker-image-name: '{docker-image-name}'
1872
1873     scm:
1874       - gerrit-trigger-scm:
1875           refspec: ''
1876           choosing-strategy: 'default'
1877           submodule-recursive: '{submodule-recursive}'
1878
1879     wrappers:
1880       - infra-wrappers:
1881           build-timeout: '{build-timeout}'
1882
1883     triggers:
1884       # 12 AM UTC
1885       - timed: 'H 12 * * *'
1886       - gerrit-trigger-release-manually:
1887           server: '{server-name}'
1888           project: '{project}'
1889           branch: '{branch}'
1890
1891     builders:
1892
1893       - provide-maven-settings:
1894           global-settings-file: 'global-settings'
1895           settings-file: '{mvn-settings}'
1896
1897       - docker-login
1898
1899       - maven-target:
1900           maven-version: '{maven-version}'
1901           pom: 'pom.xml'
1902           goals: 'clean install -DskipTests -B
1903             -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
1904           settings: '{mvn-settings}'
1905           settings-type: cfp
1906           global-settings: 'global-settings'
1907           global-settings-type: cfp
1908
1909       - maven-target:
1910           maven-version: '{maven-version}'
1911           pom: '{pom}'
1912           goals: '{mvn-goals}'
1913           settings: '{mvn-settings}'
1914           settings-type: cfp
1915           global-settings: 'global-settings'
1916           global-settings-type: cfp
1917           properties:
1918             - maven.test.skip=true
1919             - docker.pull.registry=nexus3.onap.org:10001
1920             - docker.push.registry=nexus3.onap.org:10003
1921
1922       - shell: !include-raw-escape: include-docker-push.sh
1923
1924     publishers:
1925       - infra-shiplogs:
1926           maven-version: '{maven-version}'
1927
1928 - job-template:
1929     # Job template for Java merge jobs for SDC specific repos
1930     #
1931     # The purpose of this job template is to run:
1932     # 1. maven clean deploy
1933     #
1934     # Required Variables:
1935     #     branch:    git branch (eg. stable/lithium or master)
1936
1937     name: '{project-name}-{stream}-sdc-merge-java'
1938
1939     project-type: freestyle
1940     node: 'ubuntu1604-docker-8c-8g'
1941     build-timeout: 120
1942
1943     properties:
1944       - infra-properties:
1945           build-days-to-keep: '{build-days-to-keep}'
1946
1947     parameters:
1948       - infra-parameters:
1949           project: '{project}'
1950           branch: '{branch}'
1951           refspec: 'refs/heads/{branch}'
1952           artifacts: '{archive-artifacts}'
1953       - maven-exec:
1954           maven-version: '{maven-version}'
1955
1956     scm:
1957       - gerrit-trigger-scm:
1958           refspec: ''
1959           choosing-strategy: 'default'
1960           submodule-recursive: '{submodule-recursive}'
1961
1962     wrappers:
1963       - infra-wrappers:
1964           build-timeout: '{build-timeout}'
1965
1966     triggers:
1967       - gerrit-trigger-patch-merged:
1968           server: '{server-name}'
1969           project: '{project}'
1970           branch: '{branch}'
1971           files: '**'
1972
1973     builders:
1974       - provide-maven-settings:
1975           global-settings-file: 'global-settings'
1976           settings-file: '{mvn-settings}'
1977
1978       - docker-login
1979
1980       - maven-docker-push-daily-test:
1981           maven-version: '{maven-version}'
1982           mvn-settings: '{mvn-settings}'
1983           pom: '{docker-pom}'
1984           # use default as mvn-profile if profile is not needed
1985           mvn-profile: '{mvn-profile}'
1986
1987     publishers:
1988       - infra-shiplogs:
1989           maven-version: '{maven-version}'
1990
1991 - job-template:
1992     # Job template for building & pushing docker images for AAI specific repos
1993     #
1994     # The purpose of this job template is to run:
1995     #  1. login to the docker registry
1996     #  2. run maven clean install goals skipping tests
1997     #  3. run maven goals
1998     #
1999     # Required Variables:
2000     #     pom:       name/location of the pom.xml file relative to the workspace
2001     #     maven-properties: properties passed to maven
2002
2003     name: '{project-name}-{stream}-aai-docker-java-version-daily'
2004     project-type: freestyle
2005     node: 'ubuntu1604-docker-8c-8g'
2006     disabled: '{disabled}'
2007     properties:
2008       - infra-properties:
2009           build-days-to-keep: '{build-days-to-keep}'
2010
2011     parameters:
2012       - infra-parameters:
2013           project: '{project}'
2014           branch: '{branch}'
2015           refspec: 'refs/heads/{branch}'
2016           artifacts: '{archive-artifacts}'
2017       - maven-exec:
2018           maven-version: '{maven-version}'
2019
2020     scm:
2021       - gerrit-trigger-scm:
2022           refspec: ''
2023           choosing-strategy: 'default'
2024           submodule-recursive: '{submodule-recursive}'
2025
2026     wrappers:
2027       - infra-wrappers:
2028           build-timeout: '{build-timeout}'
2029
2030     triggers:
2031       # 12 AM UTC
2032       - timed: 'H 12 * * *'
2033       - gerrit-trigger-release-manually:
2034           server: '{server-name}'
2035           project: '{project}'
2036           branch: '{branch}'
2037
2038     builders:
2039
2040       - provide-maven-settings:
2041           global-settings-file: 'global-settings'
2042           settings-file: '{mvn-settings}'
2043
2044       - docker-login
2045
2046       - maven-target:
2047           maven-version: '{maven-version}'
2048           pom: 'pom.xml'
2049           goals: 'clean install -DskipTests -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
2050           settings: '{mvn-settings}'
2051           settings-type: cfp
2052           global-settings: 'global-settings'
2053           global-settings-type: cfp
2054
2055       - maven-target:
2056           maven-version: '{maven-version}'
2057           pom: '{pom}'
2058           goals: '{mvn-goals}'
2059           settings: '{mvn-settings}'
2060           settings-type: cfp
2061           global-settings: 'global-settings'
2062           global-settings-type: cfp
2063           properties:
2064             - maven.test.skip=true
2065             - docker.pull.registry=nexus3.onap.org:10001
2066             - docker.push.registry=nexus3.onap.org:10003
2067
2068     publishers:
2069       - infra-shiplogs:
2070           maven-version: '{maven-version}'
2071