3 # Job template for Java verify jobs
5 # The purpose of this job template is to run "maven clean install" for
6 # projects using this template.
9 # branch: git branch (eg. stable/lithium or master)
11 name: '{project-name}-{stream}-verify-java-skip-tests'
13 project-type: freestyle
18 - ecomp-infra-properties:
19 build-days-to-keep: '{build-days-to-keep}'
22 - ecomp-infra-parameters:
25 refspec: 'refs/heads/{branch}'
26 artifacts: '{archive-artifacts}'
30 refspec: '$GERRIT_REFSPEC'
31 choosing-strategy: 'gerrit'
34 - ecomp-infra-wrappers:
35 build-timeout: '{build-timeout}'
38 - gerrit-trigger-patch-submitted:
39 server: '{server-name}'
45 - provide-maven-settings:
46 global-settings-file: 'global-settings'
47 settings-file: '{mvn-settings}'
49 maven-version: 'mvn33'
50 goals: 'clean install -DskipTests=true'
51 settings: '{mvn-settings}'
53 global-settings: 'global-settings'
54 global-settings-type: cfp
56 - maven.test.skip=true
59 # - ecomp-infra-shiplogs:
60 # maven-version: 'mvn33'
64 # Job template for Java verify jobs
66 # The purpose of this job template is to run "maven clean install" for
67 # projects using this template.
70 # branch: git branch (eg. stable/lithium or master)
72 name: '{project-name}-{stream}-verify-java'
74 project-type: freestyle
79 - ecomp-infra-properties:
80 build-days-to-keep: '{build-days-to-keep}'
83 - ecomp-infra-parameters:
86 refspec: 'refs/heads/{branch}'
87 artifacts: '{archive-artifacts}'
91 refspec: '$GERRIT_REFSPEC'
92 choosing-strategy: 'gerrit'
95 - ecomp-infra-wrappers:
96 build-timeout: '{build-timeout}'
99 - gerrit-trigger-patch-submitted:
100 server: '{server-name}'
106 - provide-maven-settings:
107 global-settings-file: 'global-settings'
108 settings-file: '{mvn-settings}'
110 maven-version: 'mvn33'
111 goals: 'clean install'
112 settings: '{mvn-settings}'
114 global-settings: 'global-settings'
115 global-settings-type: cfp
118 # - ecomp-infra-shiplogs:
119 # maven-version: 'mvn33'
122 # Job template for Java verify jobs with POM not at the root
124 # The purpose of this job template is to run "maven clean install" for
125 # projects using this template.
127 # Required Variables:
128 # branch: git branch (eg. stable/lithium or master)
129 # pom: name/location of the pom.xml file relative to the workspace
130 # pattern: ant file-path pattern relative to the workspace used to
133 name: '{project-name}-{stream}-{subproject}-verify-java'
135 project-type: freestyle
140 - ecomp-infra-properties:
141 build-days-to-keep: '{build-days-to-keep}'
144 - ecomp-infra-parameters:
147 refspec: 'refs/heads/{branch}'
148 artifacts: '{archive-artifacts}'
151 - gerrit-trigger-scm:
152 refspec: '$GERRIT_REFSPEC'
153 choosing-strategy: 'gerrit'
156 - ecomp-infra-wrappers:
157 build-timeout: '{build-timeout}'
160 - gerrit-trigger-patch-submitted:
161 server: '{server-name}'
167 - provide-maven-settings:
168 global-settings-file: 'global-settings'
169 settings-file: '{mvn-settings}'
171 maven-version: 'mvn33'
173 goals: 'clean install'
174 settings: '{mvn-settings}'
176 global-settings: 'global-settings'
177 global-settings-type: cfp
180 # - ecomp-infra-shiplogs:
181 # maven-version: 'mvn33'
184 # Job template for Java daily release jobs
186 # The purpose of this job template is to run "maven version && maven clean
187 # deploy" for projects using this template.
189 # Required Variables:
190 # branch: git branch (eg. stable/lithium or master)
191 name: '{project-name}-{stream}-release-java-daily'
193 project-type: freestyle
195 maven-deploy-properties:
197 - ecomp-infra-properties:
198 build-days-to-keep: '{build-days-to-keep}'
201 - ecomp-infra-parameters:
204 refspec: 'refs/heads/{branch}'
205 artifacts: '{archive-artifacts}'
208 - gerrit-trigger-scm:
210 choosing-strategy: 'default'
213 - ecomp-infra-wrappers:
214 build-timeout: '{build-timeout}'
218 - timed: 'H 11 * * *'
219 - gerrit-trigger-release-manually:
220 server: '{server-name}'
225 - provide-maven-settings:
226 global-settings-file: 'global-settings'
227 settings-file: '{mvn-settings}'
230 maven-version: 'mvn33'
231 goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org'
233 - '{maven-deploy-properties}'
234 settings: '{mvn-settings}'
236 global-settings: 'global-settings'
237 global-settings-type: cfp
240 # Job template for Java daily release jobs
242 # The purpose of this job template is to run "maven version && maven clean
243 # deploy" for projects using this template.
245 # Required Variables:
246 # branch: git branch (eg. stable/lithium or master)
247 name: '{project-name}-{stream}-release-version-java-daily'
249 project-type: freestyle
251 maven-deploy-properties:
253 - ecomp-infra-properties:
254 build-days-to-keep: '{build-days-to-keep}'
257 - ecomp-infra-parameters:
260 refspec: 'refs/heads/{branch}'
261 artifacts: '{archive-artifacts}'
264 - gerrit-trigger-scm:
266 choosing-strategy: 'default'
269 - ecomp-infra-wrappers:
270 build-timeout: '{build-timeout}'
274 - timed: 'H 11 * * *'
275 - gerrit-trigger-release-manually:
276 server: '{server-name}'
281 - provide-maven-settings:
282 global-settings-file: 'global-settings'
283 settings-file: '{mvn-settings}'
286 properties-file: version.properties
288 maven-version: 'mvn33'
289 goals: 'versions:set versions:update-child-modules versions:commit'
291 - 'newVersion=${{release_version}}'
292 settings: '{mvn-settings}'
294 global-settings: 'global-settings'
295 global-settings-type: cfp
298 maven-version: 'mvn33'
299 goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org'
301 - '{maven-deploy-properties}'
302 settings: '{mvn-settings}'
304 global-settings: 'global-settings'
305 global-settings-type: cfp
308 # Job template for Java daily release jobs with POM not at the root
310 # The purpose of this job template is to run "maven version && maven clean
311 # deploy" for projects using this template.
313 # Required Variables:
314 # branch: git branch (eg. stable/lithium or master)
315 # pom: name/location of the pom.xml file relative to the workspace
318 name: '{project-name}-{stream}-{subproject}-release-java-daily'
320 project-type: freestyle
322 maven-deploy-properties:
324 - ecomp-infra-properties:
325 build-days-to-keep: '{build-days-to-keep}'
328 - ecomp-infra-parameters:
331 refspec: 'refs/heads/{branch}'
332 artifacts: '{archive-artifacts}'
335 - gerrit-trigger-scm:
337 choosing-strategy: 'default'
340 - ecomp-infra-wrappers:
341 build-timeout: '{build-timeout}'
345 - timed: 'H 11 * * *'
346 - gerrit-trigger-release-manually:
347 server: '{server-name}'
352 - provide-maven-settings:
353 global-settings-file: 'global-settings'
354 settings-file: '{mvn-settings}'
357 maven-version: 'mvn33'
359 goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org'
361 - '{maven-deploy-properties}'
362 settings: '{mvn-settings}'
364 global-settings: 'global-settings'
365 global-settings-type: cfp
368 # Job template for Java merge jobs
370 # The purpose of this job template is to run "maven clean deploy" for
371 # projects using this template.
373 # Required Variables:
374 # branch: git branch (eg. stable/lithium or master)
375 name: '{project-name}-{stream}-merge-java'
377 project-type: freestyle
381 - ecomp-infra-properties:
382 build-days-to-keep: '{build-days-to-keep}'
385 - ecomp-infra-parameters:
388 refspec: 'refs/heads/{branch}'
389 artifacts: '{archive-artifacts}'
392 - gerrit-trigger-scm:
394 choosing-strategy: 'default'
397 - ecomp-infra-wrappers:
398 build-timeout: '{build-timeout}'
401 - gerrit-trigger-patch-merged:
402 server: '{server-name}'
408 - provide-maven-settings:
409 global-settings-file: 'global-settings'
410 settings-file: '{mvn-settings}'
412 maven-version: 'mvn33'
413 # yamllint disable rule:line-length
414 goals: 'clean deploy'
416 settings: '{mvn-settings}'
418 global-settings: 'global-settings'
419 global-settings-type: cfp
422 # - ecomp-infra-shiplogs:
423 # maven-version: 'mvn33'
426 # Job template for Java merge jobs that should also be triggered by upstream
429 # Required Variables:
430 # stream: release stream
432 # dependencies: fully qualified upstream job name to trigger on
434 name: '{project-name}-{stream}-downstream-merge-java'
436 project-type: freestyle
440 - ecomp-infra-properties:
441 build-days-to-keep: '{build-days-to-keep}'
444 - ecomp-infra-parameters:
447 refspec: 'refs/heads/{branch}'
448 artifacts: '{archive-artifacts}'
451 - gerrit-trigger-scm:
453 choosing-strategy: 'default'
456 - ecomp-infra-wrappers:
457 build-timeout: '{build-timeout}'
461 jobs: '{dependencies}'
463 - gerrit-trigger-patch-merged:
464 server: '{server-name}'
470 - provide-maven-settings:
471 global-settings-file: 'global-settings'
472 settings-file: '{mvn-settings}'
474 maven-version: 'mvn33'
475 # yamllint disable rule:line-length
476 goals: 'clean deploy'
478 settings: '{mvn-settings}'
480 global-settings: 'global-settings'
481 global-settings-type: cfp
484 # - ecomp-infra-shiplogs:
485 # maven-version: 'mvn33'
488 # Job template for Java merge jobs with POM not at the root
490 # The purpose of this job template is to run "maven clean deploy" for
491 # projects using this template.
493 # Required Variables:
494 # branch: git branch (eg. stable/lithium or master)
495 # pom: name/location of the pom.xml file relative to the workspace
496 # pattern: ant file-path pattern relative to the workspace used to
499 name: '{project-name}-{stream}-{subproject}-merge-java'
501 project-type: freestyle
505 - ecomp-infra-properties:
506 build-days-to-keep: '{build-days-to-keep}'
509 - ecomp-infra-parameters:
512 refspec: 'refs/heads/{branch}'
513 artifacts: '{archive-artifacts}'
516 - gerrit-trigger-scm:
518 choosing-strategy: 'default'
521 - ecomp-infra-wrappers:
522 build-timeout: '{build-timeout}'
525 - gerrit-trigger-patch-merged:
526 server: '{server-name}'
532 - provide-maven-settings:
533 global-settings-file: 'global-settings'
534 settings-file: '{mvn-settings}'
536 maven-version: 'mvn33'
538 # yamllint disable rule:line-length
539 goals: 'clean deploy'
541 settings: '{mvn-settings}'
543 global-settings: 'global-settings'
544 global-settings-type: cfp
547 # - ecomp-infra-shiplogs:
548 # maven-version: 'mvn33'
551 name: '{project-name}-{stream}-docker-java-daily'
552 project-type: freestyle
553 node: 'ubuntu1604-docker-8c-8g'
556 - ecomp-infra-properties:
557 build-days-to-keep: '{build-days-to-keep}'
560 - ecomp-infra-parameters:
563 refspec: 'refs/heads/{branch}'
564 artifacts: '{archive-artifacts}'
567 - gerrit-trigger-scm:
569 choosing-strategy: 'default'
572 - ecomp-infra-wrappers:
573 build-timeout: '{build-timeout}'
577 - timed: 'H 12 * * *'
578 - gerrit-trigger-release-manually:
579 server: '{server-name}'
585 - provide-maven-settings:
586 global-settings-file: 'global-settings'
587 settings-file: '{mvn-settings}'
591 - maven-docker-push-daily:
592 mvn-settings: '{mvn-settings}'
594 # use default as mvn-profile if profile is not needed
595 mvn-profile: '{mvn-profile}'
598 name: '{project-name}-{stream}-docker-java-shell-daily'
599 project-type: freestyle
600 node: 'ubuntu1604-docker-8c-8g'
603 - ecomp-infra-properties:
604 build-days-to-keep: '{build-days-to-keep}'
607 - ecomp-infra-parameters:
610 refspec: 'refs/heads/{branch}'
611 artifacts: '{archive-artifacts}'
614 - gerrit-trigger-scm:
616 choosing-strategy: 'default'
619 - ecomp-infra-wrappers:
620 build-timeout: '{build-timeout}'
624 - timed: 'H 12 * * *'
625 - gerrit-trigger-release-manually:
626 server: '{server-name}'
632 - provide-maven-settings:
633 global-settings-file: 'global-settings'
634 settings-file: '{mvn-settings}'
639 maven-version: 'mvn33'
641 settings: '{mvn-settings}'
643 global-settings: 'global-settings'
644 global-settings-type: cfp
649 name: '{project-name}-{stream}-aai-docker-java-daily'
650 project-type: freestyle
651 node: 'ubuntu1604-docker-8c-8g'
654 - ecomp-infra-properties:
655 build-days-to-keep: '{build-days-to-keep}'
658 - ecomp-infra-parameters:
661 refspec: 'refs/heads/{branch}'
662 artifacts: '{archive-artifacts}'
665 - gerrit-trigger-scm:
667 choosing-strategy: 'default'
670 - ecomp-infra-wrappers:
671 build-timeout: '{build-timeout}'
675 - timed: 'H 12 * * *'
676 - gerrit-trigger-release-manually:
677 server: '{server-name}'
683 - provide-maven-settings:
684 global-settings-file: 'global-settings'
685 settings-file: '{mvn-settings}'
690 maven-version: 'mvn33'
692 goals: 'clean install -DskipTests'
693 settings: '{mvn-settings}'
695 global-settings: 'global-settings'
696 global-settings-type: cfp
699 maven-version: 'mvn33'
702 settings: '{mvn-settings}'
704 global-settings: 'global-settings'
705 global-settings-type: cfp
707 - maven.test.skip=true
708 - docker.pull.registry=nexus3.openecomp.org:10001
709 - docker.push.registry=nexus3.openecomp.org:10003
711 - shell: !include-raw: include-docker-push.sh