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'
180 - '{maven-deploy-properties}'
181 settings: '{mvn-settings}'
183 global-settings: 'global-settings'
184 global-settings-type: cfp
187 # Job template for Java merge jobs
189 # The purpose of this job template is to run "maven clean deploy" for
190 # projects using this template.
192 # Required Variables:
193 # branch: git branch (eg. stable/lithium or master)
194 name: '{project-name}-{stream}-merge-java'
196 project-type: freestyle
200 - ecomp-infra-properties:
201 build-days-to-keep: '{build-days-to-keep}'
204 - ecomp-infra-parameters:
207 refspec: 'refs/heads/{branch}'
208 artifacts: '{archive-artifacts}'
211 - gerrit-trigger-scm:
213 choosing-strategy: 'default'
216 - ecomp-infra-wrappers:
217 build-timeout: '{build-timeout}'
220 - gerrit-trigger-patch-merged:
221 server: '{server-name}'
227 - provide-maven-settings:
228 global-settings-file: 'global-settings'
229 settings-file: '{mvn-settings}'
231 maven-version: 'mvn33'
232 # yamllint disable rule:line-length
233 goals: 'clean deploy'
235 settings: '{mvn-settings}'
237 global-settings: 'global-settings'
238 global-settings-type: cfp
241 # - ecomp-infra-shiplogs:
242 # maven-version: 'mvn33'
245 # Job template for Java merge jobs with POM not at the root
247 # The purpose of this job template is to run "maven clean deploy" for
248 # projects using this template.
250 # Required Variables:
251 # branch: git branch (eg. stable/lithium or master)
252 # pom: name/location of the pom.xml file relative to the workspace
253 # pattern: ant file-path pattern relative to the workspace used to
256 name: '{project-name}-{stream}-{subproject}-merge-java'
258 project-type: freestyle
262 - ecomp-infra-properties:
263 build-days-to-keep: '{build-days-to-keep}'
266 - ecomp-infra-parameters:
269 refspec: 'refs/heads/{branch}'
270 artifacts: '{archive-artifacts}'
273 - gerrit-trigger-scm:
275 choosing-strategy: 'default'
278 - ecomp-infra-wrappers:
279 build-timeout: '{build-timeout}'
282 - gerrit-trigger-patch-merged:
283 server: '{server-name}'
289 - provide-maven-settings:
290 global-settings-file: 'global-settings'
291 settings-file: '{mvn-settings}'
293 maven-version: 'mvn33'
295 # yamllint disable rule:line-length
296 goals: 'clean deploy'
298 settings: '{mvn-settings}'
300 global-settings: 'global-settings'
301 global-settings-type: cfp
304 # - ecomp-infra-shiplogs:
305 # maven-version: 'mvn33'