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'
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 properties-file: version.properties
232 maven-version: 'mvn33'
233 goals: 'versions:set versions:update-child-modules versions:commit'
235 - 'newVersion=${{release_version}}'
236 settings: '{mvn-settings}'
238 global-settings: 'global-settings'
239 global-settings-type: cfp
242 maven-version: 'mvn33'
243 goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org'
245 - '{maven-deploy-properties}'
246 settings: '{mvn-settings}'
248 global-settings: 'global-settings'
249 global-settings-type: cfp
252 # Job template for Java daily release jobs with POM not at the root
254 # The purpose of this job template is to run "maven version && maven clean
255 # deploy" for projects using this template.
257 # Required Variables:
258 # branch: git branch (eg. stable/lithium or master)
259 # pom: name/location of the pom.xml file relative to the workspace
262 name: '{project-name}-{stream}-{subproject}-release-java-daily'
264 project-type: freestyle
266 maven-deploy-properties:
268 - ecomp-infra-properties:
269 build-days-to-keep: '{build-days-to-keep}'
272 - ecomp-infra-parameters:
275 refspec: 'refs/heads/{branch}'
276 artifacts: '{archive-artifacts}'
279 - gerrit-trigger-scm:
281 choosing-strategy: 'default'
284 - ecomp-infra-wrappers:
285 build-timeout: '{build-timeout}'
289 - timed: 'H 11 * * *'
290 - gerrit-trigger-release-manually:
291 server: '{server-name}'
296 - provide-maven-settings:
297 global-settings-file: 'global-settings'
298 settings-file: '{mvn-settings}'
301 maven-version: 'mvn33'
302 goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org'
304 - '{maven-deploy-properties}'
305 settings: '{mvn-settings}'
307 global-settings: 'global-settings'
308 global-settings-type: cfp
311 # Job template for Java merge jobs
313 # The purpose of this job template is to run "maven clean deploy" for
314 # projects using this template.
316 # Required Variables:
317 # branch: git branch (eg. stable/lithium or master)
318 name: '{project-name}-{stream}-merge-java'
320 project-type: freestyle
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}'
344 - gerrit-trigger-patch-merged:
345 server: '{server-name}'
351 - provide-maven-settings:
352 global-settings-file: 'global-settings'
353 settings-file: '{mvn-settings}'
355 maven-version: 'mvn33'
356 # yamllint disable rule:line-length
357 goals: 'clean deploy'
359 settings: '{mvn-settings}'
361 global-settings: 'global-settings'
362 global-settings-type: cfp
365 # - ecomp-infra-shiplogs:
366 # maven-version: 'mvn33'
369 # Job template for Java merge jobs that should also be triggered by upstream
372 # Required Variables:
373 # stream: release stream
375 # dependencies: fully qualified upstream job name to trigger on
377 name: '{project-name}-{stream}-downstream-merge-java'
379 project-type: freestyle
383 - ecomp-infra-properties:
384 build-days-to-keep: '{build-days-to-keep}'
387 - ecomp-infra-parameters:
390 refspec: 'refs/heads/{branch}'
391 artifacts: '{archive-artifacts}'
394 - gerrit-trigger-scm:
396 choosing-strategy: 'default'
399 - ecomp-infra-wrappers:
400 build-timeout: '{build-timeout}'
404 jobs: '{dependencies}'
406 - gerrit-trigger-patch-merged:
407 server: '{server-name}'
413 - provide-maven-settings:
414 global-settings-file: 'global-settings'
415 settings-file: '{mvn-settings}'
417 maven-version: 'mvn33'
418 # yamllint disable rule:line-length
419 goals: 'clean deploy'
421 settings: '{mvn-settings}'
423 global-settings: 'global-settings'
424 global-settings-type: cfp
427 # - ecomp-infra-shiplogs:
428 # maven-version: 'mvn33'
431 # Job template for Java merge jobs with POM not at the root
433 # The purpose of this job template is to run "maven clean deploy" for
434 # projects using this template.
436 # Required Variables:
437 # branch: git branch (eg. stable/lithium or master)
438 # pom: name/location of the pom.xml file relative to the workspace
439 # pattern: ant file-path pattern relative to the workspace used to
442 name: '{project-name}-{stream}-{subproject}-merge-java'
444 project-type: freestyle
448 - ecomp-infra-properties:
449 build-days-to-keep: '{build-days-to-keep}'
452 - ecomp-infra-parameters:
455 refspec: 'refs/heads/{branch}'
456 artifacts: '{archive-artifacts}'
459 - gerrit-trigger-scm:
461 choosing-strategy: 'default'
464 - ecomp-infra-wrappers:
465 build-timeout: '{build-timeout}'
468 - gerrit-trigger-patch-merged:
469 server: '{server-name}'
475 - provide-maven-settings:
476 global-settings-file: 'global-settings'
477 settings-file: '{mvn-settings}'
479 maven-version: 'mvn33'
481 # yamllint disable rule:line-length
482 goals: 'clean deploy'
484 settings: '{mvn-settings}'
486 global-settings: 'global-settings'
487 global-settings-type: cfp
490 # - ecomp-infra-shiplogs:
491 # maven-version: 'mvn33'
494 name: '{project-name}-{stream}-docker-java-daily'
495 project-type: freestyle
496 node: 'ubuntu1604-docker-8c-8g'
499 - ecomp-infra-properties:
500 build-days-to-keep: '{build-days-to-keep}'
503 - ecomp-infra-parameters:
506 refspec: 'refs/heads/{branch}'
507 artifacts: '{archive-artifacts}'
510 - gerrit-trigger-scm:
512 choosing-strategy: 'default'
515 - ecomp-infra-wrappers:
516 build-timeout: '{build-timeout}'
520 - timed: 'H 12 * * *'
521 - gerrit-trigger-release-manually:
522 server: '{server-name}'
528 - provide-maven-settings:
529 global-settings-file: 'global-settings'
530 settings-file: '{mvn-settings}'
534 - maven-docker-push-daily:
535 mvn-settings: '{mvn-settings}'
537 # use default as mvn-profile if profile is not needed
538 mvn-profile: '{mvn-profile}'
541 name: '{project-name}-{stream}-docker-java-shell-daily'
542 project-type: freestyle
543 node: 'ubuntu1604-docker-8c-8g'
546 - ecomp-infra-properties:
547 build-days-to-keep: '{build-days-to-keep}'
550 - ecomp-infra-parameters:
553 refspec: 'refs/heads/{branch}'
554 artifacts: '{archive-artifacts}'
557 - gerrit-trigger-scm:
559 choosing-strategy: 'default'
562 - ecomp-infra-wrappers:
563 build-timeout: '{build-timeout}'
567 - timed: 'H 12 * * *'
568 - gerrit-trigger-release-manually:
569 server: '{server-name}'
575 - provide-maven-settings:
576 global-settings-file: 'global-settings'
577 settings-file: '{mvn-settings}'
581 - maven-docker-push-daily:
582 mvn-settings: '{mvn-settings}'
584 # use default as mvn-profile if profile is not needed
585 mvn-profile: '{mvn-profile}'