blob: 8499e61b37b57c1506485feff972f019793619e8 [file] [log] [blame]
Andrew Grimbergebc710a2017-01-30 12:59:38 -08001---
2- job-template:
3 # Job template for Java verify jobs
4 #
5 # The purpose of this job template is to run "maven clean install" for
6 # projects using this template.
7 #
8 # Required Variables:
9 # branch: git branch (eg. stable/lithium or master)
10
Andrew Grimbergce2286c2017-01-31 05:50:39 -080011 name: '{project-name}-{stream}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080012
13 project-type: freestyle
14 concurrent: true
15 node: '{build-node}'
16
17 properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080018 - ecomp-infra-properties:
19 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080020
21 parameters:
22 - ecomp-infra-parameters:
23 project: '{project}'
24 branch: '{branch}'
25 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080026 artifacts: '{archive-artifacts}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080027
28 scm:
29 - gerrit-trigger-scm:
30 refspec: '$GERRIT_REFSPEC'
31 choosing-strategy: 'gerrit'
32
33 wrappers:
34 - ecomp-infra-wrappers:
35 build-timeout: '{build-timeout}'
36
37 triggers:
38 - gerrit-trigger-patch-submitted:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080039 server: '{server-name}'
40 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080041 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080042 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080043
44 builders:
45 - provide-maven-settings:
46 global-settings-file: 'global-settings'
47 settings-file: '{mvn-settings}'
48 - maven-target:
49 maven-version: 'mvn33'
50 goals: 'clean install'
51 settings: '{mvn-settings}'
52 settings-type: cfp
53 global-settings: 'global-settings'
54 global-settings-type: cfp
55
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -080056# publishers:
57# - ecomp-infra-shiplogs:
58# maven-version: 'mvn33'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080059
60- job-template:
61 # Job template for Java verify jobs with POM not at the root
62 #
63 # The purpose of this job template is to run "maven clean install" for
64 # projects using this template.
65 #
66 # Required Variables:
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
70 # trigger the job
71
Andrew Grimbergce2286c2017-01-31 05:50:39 -080072 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080073
74 project-type: freestyle
75 concurrent: true
76 node: '{build-node}'
77
78 properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080079 - ecomp-infra-properties:
80 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080081
82 parameters:
83 - ecomp-infra-parameters:
84 project: '{project}'
85 branch: '{branch}'
86 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080087 artifacts: '{archive-artifacts}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080088
89 scm:
90 - gerrit-trigger-scm:
91 refspec: '$GERRIT_REFSPEC'
92 choosing-strategy: 'gerrit'
93
94 wrappers:
95 - ecomp-infra-wrappers:
96 build-timeout: '{build-timeout}'
97
98 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080099 - gerrit-trigger-patch-submitted:
100 server: '{server-name}'
101 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800102 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800103 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800104
105 builders:
106 - provide-maven-settings:
107 global-settings-file: 'global-settings'
108 settings-file: '{mvn-settings}'
109 - maven-target:
110 maven-version: 'mvn33'
111 pom: '{pom}'
112 goals: 'clean install'
113 settings: '{mvn-settings}'
114 settings-type: cfp
115 global-settings: 'global-settings'
116 global-settings-type: cfp
117
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800118# publishers:
119# - ecomp-infra-shiplogs:
120# maven-version: 'mvn33'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800121
122- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100123 # Job template for Java daily release jobs
124 #
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800125 # The purpose of this job template is to run "maven version && maven clean
126 # deploy" for projects using this template.
JulienBe2f4ee072017-02-01 21:42:32 +0100127 #
128 # Required Variables:
129 # branch: git branch (eg. stable/lithium or master)
130 name: '{project-name}-{stream}-release-java-daily'
131
132 project-type: freestyle
133 node: '{build-node}'
134 maven-deploy-properties:
135 properties:
136 - ecomp-infra-properties:
137 build-days-to-keep: '{build-days-to-keep}'
138
139 parameters:
140 - ecomp-infra-parameters:
141 project: '{project}'
142 branch: '{branch}'
143 refspec: 'refs/heads/{branch}'
144 artifacts: '{archive-artifacts}'
145
146 scm:
147 - gerrit-trigger-scm:
148 refspec: ''
149 choosing-strategy: 'default'
150
151 wrappers:
152 - ecomp-infra-wrappers:
153 build-timeout: '{build-timeout}'
154
155 triggers:
156 # 11 AM UTC
157 - timed: 'H 11 * * *'
158
159 builders:
160 - provide-maven-settings:
161 global-settings-file: 'global-settings'
162 settings-file: '{mvn-settings}'
163
164 - inject:
165 properties-file: version.properties
166 - maven-target:
167 maven-version: 'mvn33'
168 goals: 'versions:set versions:update-child-modules versions:commit'
169 properties:
170 - 'newVersion=${{release_version}}'
171 settings: '{mvn-settings}'
172 settings-type: cfp
173 global-settings: 'global-settings'
174 global-settings-type: cfp
175
176 - maven-target:
177 maven-version: 'mvn33'
JulienBe360dc8c2017-02-07 02:53:25 -0800178 goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800179 properties:
180 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100181 settings: '{mvn-settings}'
182 settings-type: cfp
183 global-settings: 'global-settings'
184 global-settings-type: cfp
185
186- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800187 # Job template for Java merge jobs
188 #
189 # The purpose of this job template is to run "maven clean deploy" for
190 # projects using this template.
191 #
192 # Required Variables:
193 # branch: git branch (eg. stable/lithium or master)
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800194 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800195
196 project-type: freestyle
197 node: '{build-node}'
198
199 properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800200 - ecomp-infra-properties:
201 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800202
203 parameters:
204 - ecomp-infra-parameters:
205 project: '{project}'
206 branch: '{branch}'
207 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800208 artifacts: '{archive-artifacts}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800209
210 scm:
211 - gerrit-trigger-scm:
212 refspec: ''
213 choosing-strategy: 'default'
214
215 wrappers:
216 - ecomp-infra-wrappers:
217 build-timeout: '{build-timeout}'
218
219 triggers:
220 - gerrit-trigger-patch-merged:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800221 server: '{server-name}'
222 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800223 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800224 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800225
226 builders:
227 - provide-maven-settings:
228 global-settings-file: 'global-settings'
229 settings-file: '{mvn-settings}'
230 - maven-target:
231 maven-version: 'mvn33'
232 # yamllint disable rule:line-length
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800233 goals: 'clean deploy'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800234 # yamllint enable
235 settings: '{mvn-settings}'
236 settings-type: cfp
237 global-settings: 'global-settings'
238 global-settings-type: cfp
239
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800240# publishers:
241# - ecomp-infra-shiplogs:
242# maven-version: 'mvn33'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800243
244- job-template:
245 # Job template for Java merge jobs with POM not at the root
246 #
247 # The purpose of this job template is to run "maven clean deploy" for
248 # projects using this template.
249 #
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
254 # trigger the job
255
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800256 name: '{project-name}-{stream}-{subproject}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800257
258 project-type: freestyle
259 node: '{build-node}'
260
261 properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800262 - ecomp-infra-properties:
263 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800264
265 parameters:
266 - ecomp-infra-parameters:
267 project: '{project}'
268 branch: '{branch}'
269 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800270 artifacts: '{archive-artifacts}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800271
272 scm:
273 - gerrit-trigger-scm:
274 refspec: ''
275 choosing-strategy: 'default'
276
277 wrappers:
278 - ecomp-infra-wrappers:
279 build-timeout: '{build-timeout}'
280
281 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800282 - gerrit-trigger-patch-merged:
283 server: '{server-name}'
284 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800285 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800286 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800287
288 builders:
289 - provide-maven-settings:
290 global-settings-file: 'global-settings'
291 settings-file: '{mvn-settings}'
292 - maven-target:
293 maven-version: 'mvn33'
294 pom: '{pom}'
295 # yamllint disable rule:line-length
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800296 goals: 'clean deploy'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800297 # yamllint enable
298 settings: '{mvn-settings}'
299 settings-type: cfp
300 global-settings: 'global-settings'
301 global-settings-type: cfp
302
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800303# publishers:
304# - ecomp-infra-shiplogs:
305# maven-version: 'mvn33'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100306
307- job-template:
308 name: '{project-name}-{stream}-docker-java-daily'
309 project-type: freestyle
310
311 properties:
312 - ecomp-infra-properties:
313 build-days-to-keep: '{build-days-to-keep}'
314
315 parameters:
316 - ecomp-infra-parameters:
317 project: '{project}'
318 branch: '{branch}'
319 refspec: 'refs/heads/{branch}'
320 artifacts: '{archive-artifacts}'
321
322 scm:
323 - gerrit-trigger-scm:
324 refspec: ''
325 choosing-strategy: 'default'
326
Anaël Clossonabbafb52017-02-09 17:55:10 +0100327 wrappers:
328 - ecomp-infra-wrappers:
329 build-timeout: '{build-timeout}'
330
331 triggers:
332 # 11 AM UTC
333 - timed: 'H 12 * * *'
334
335 builders:
336 - provide-maven-settings:
337 global-settings-file: 'global-settings'
338 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100339
Anaël Clossonabbafb52017-02-09 17:55:10 +0100340 - maven-docker-push-daily:
341 profile-name: '{profile-name}'
342 mvn-settings: '{mvn-settings}'
343 pom: '{docker-pom}'