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'
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
57 # - ecomp-infra-shiplogs:
58 # maven-version: 'mvn33'
61 # Job template for Java verify jobs with POM not at the root
63 # The purpose of this job template is to run "maven clean install" for
64 # projects using this template.
67 # branch: git branch (eg. stable/lithium or master)
68 # pom: name/location of the pom.xml file relative to the workspace
69 # pattern: ant file-path pattern relative to the workspace used to
72 name: '{project-name}-{stream}-{subproject}-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'
112 goals: 'clean install'
113 settings: '{mvn-settings}'
115 global-settings: 'global-settings'
116 global-settings-type: cfp
119 # - ecomp-infra-shiplogs:
120 # maven-version: 'mvn33'
123 # Job template for Java daily release jobs
125 # The purpose of this job template is to run "maven version && maven clean
126 # deploy" for projects using this template.
128 # Required Variables:
129 # branch: git branch (eg. stable/lithium or master)
130 name: '{project-name}-{stream}-release-java-daily'
132 project-type: freestyle
134 maven-deploy-properties:
136 - ecomp-infra-properties:
137 build-days-to-keep: '{build-days-to-keep}'
140 - ecomp-infra-parameters:
143 refspec: 'refs/heads/{branch}'
144 artifacts: '{archive-artifacts}'
147 - gerrit-trigger-scm:
149 choosing-strategy: 'default'
152 - ecomp-infra-wrappers:
153 build-timeout: '{build-timeout}'
157 - timed: 'H 11 * * *'
160 - provide-maven-settings:
161 global-settings-file: 'global-settings'
162 settings-file: '{mvn-settings}'
165 properties-file: version.properties
167 maven-version: 'mvn33'
168 goals: 'versions:set versions:update-child-modules versions:commit'
170 - 'newVersion=${{release_version}}'
171 settings: '{mvn-settings}'
173 global-settings: 'global-settings'
174 global-settings-type: cfp
177 maven-version: 'mvn33'
178 goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org'
180 - '{maven-deploy-properties}'
181 settings: '{mvn-settings}'
183 global-settings: 'global-settings'
184 global-settings-type: cfp
187 # Job template for Java daily release jobs with POM not at the root
189 # The purpose of this job template is to run "maven version && maven clean
190 # deploy" for projects using this template.
192 # Required Variables:
193 # branch: git branch (eg. stable/lithium or master)
194 # pom: name/location of the pom.xml file relative to the workspace
197 name: '{project-name}-{stream}-{subproject}-release-java-daily'
199 project-type: freestyle
201 maven-deploy-properties:
203 - ecomp-infra-properties:
204 build-days-to-keep: '{build-days-to-keep}'
207 - ecomp-infra-parameters:
210 refspec: 'refs/heads/{branch}'
211 artifacts: '{archive-artifacts}'
214 - gerrit-trigger-scm:
216 choosing-strategy: 'default'
219 - ecomp-infra-wrappers:
220 build-timeout: '{build-timeout}'
224 - timed: 'H 11 * * *'
227 - provide-maven-settings:
228 global-settings-file: 'global-settings'
229 settings-file: '{mvn-settings}'
232 maven-version: 'mvn33'
233 goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org'
235 - '{maven-deploy-properties}'
236 settings: '{mvn-settings}'
238 global-settings: 'global-settings'
239 global-settings-type: cfp
242 # Job template for Java merge jobs
244 # The purpose of this job template is to run "maven clean deploy" for
245 # projects using this template.
247 # Required Variables:
248 # branch: git branch (eg. stable/lithium or master)
249 name: '{project-name}-{stream}-merge-java'
251 project-type: freestyle
255 - ecomp-infra-properties:
256 build-days-to-keep: '{build-days-to-keep}'
259 - ecomp-infra-parameters:
262 refspec: 'refs/heads/{branch}'
263 artifacts: '{archive-artifacts}'
266 - gerrit-trigger-scm:
268 choosing-strategy: 'default'
271 - ecomp-infra-wrappers:
272 build-timeout: '{build-timeout}'
275 - gerrit-trigger-patch-merged:
276 server: '{server-name}'
282 - provide-maven-settings:
283 global-settings-file: 'global-settings'
284 settings-file: '{mvn-settings}'
286 maven-version: 'mvn33'
287 # yamllint disable rule:line-length
288 goals: 'clean deploy'
290 settings: '{mvn-settings}'
292 global-settings: 'global-settings'
293 global-settings-type: cfp
296 # - ecomp-infra-shiplogs:
297 # maven-version: 'mvn33'
300 # Job template for Java merge jobs with POM not at the root
302 # The purpose of this job template is to run "maven clean deploy" for
303 # projects using this template.
305 # Required Variables:
306 # branch: git branch (eg. stable/lithium or master)
307 # pom: name/location of the pom.xml file relative to the workspace
308 # pattern: ant file-path pattern relative to the workspace used to
311 name: '{project-name}-{stream}-{subproject}-merge-java'
313 project-type: freestyle
317 - ecomp-infra-properties:
318 build-days-to-keep: '{build-days-to-keep}'
321 - ecomp-infra-parameters:
324 refspec: 'refs/heads/{branch}'
325 artifacts: '{archive-artifacts}'
328 - gerrit-trigger-scm:
330 choosing-strategy: 'default'
333 - ecomp-infra-wrappers:
334 build-timeout: '{build-timeout}'
337 - gerrit-trigger-patch-merged:
338 server: '{server-name}'
344 - provide-maven-settings:
345 global-settings-file: 'global-settings'
346 settings-file: '{mvn-settings}'
348 maven-version: 'mvn33'
350 # yamllint disable rule:line-length
351 goals: 'clean deploy'
353 settings: '{mvn-settings}'
355 global-settings: 'global-settings'
356 global-settings-type: cfp
359 # - ecomp-infra-shiplogs:
360 # maven-version: 'mvn33'
363 name: '{project-name}-{stream}-docker-java-daily'
364 project-type: freestyle
365 node: 'ubuntu1604-docker-8c-8g'
368 - ecomp-infra-properties:
369 build-days-to-keep: '{build-days-to-keep}'
372 - ecomp-infra-parameters:
375 refspec: 'refs/heads/{branch}'
376 artifacts: '{archive-artifacts}'
379 - gerrit-trigger-scm:
381 choosing-strategy: 'default'
384 - ecomp-infra-wrappers:
385 build-timeout: '{build-timeout}'
389 - timed: 'H 12 * * *'
393 - provide-maven-settings:
394 global-settings-file: 'global-settings'
395 settings-file: '{mvn-settings}'
399 - maven-docker-push-daily:
400 mvn-settings: '{mvn-settings}'