blob: 27c9731090c36b9d08cdea0800f92b6d7fad6431 [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
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -050011 name: '{project-name}-{stream}-verify-java-skip-tests'
12
13 project-type: freestyle
14 concurrent: true
15 node: '{build-node}'
16
17 properties:
18 - ecomp-infra-properties:
19 build-days-to-keep: '{build-days-to-keep}'
20
21 parameters:
22 - ecomp-infra-parameters:
23 project: '{project}'
24 branch: '{branch}'
25 refspec: 'refs/heads/{branch}'
26 artifacts: '{archive-artifacts}'
27
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:
39 server: '{server-name}'
40 project: '{project}'
41 branch: '{branch}'
42 files: '**'
43
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 maven-opts:
56 - maven.test.skip=true
57
58# publishers:
59# - ecomp-infra-shiplogs:
60# maven-version: 'mvn33'
61
62
63- job-template:
64 # Job template for Java verify jobs
65 #
66 # The purpose of this job template is to run "maven clean install" for
67 # projects using this template.
68 #
69 # Required Variables:
70 # branch: git branch (eg. stable/lithium or master)
71
Andrew Grimbergce2286c2017-01-31 05:50:39 -080072 name: '{project-name}-{stream}-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:
99 - gerrit-trigger-patch-submitted:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800100 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: '**'
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 goals: 'clean install'
112 settings: '{mvn-settings}'
113 settings-type: cfp
114 global-settings: 'global-settings'
115 global-settings-type: cfp
116
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800117# publishers:
118# - ecomp-infra-shiplogs:
119# maven-version: 'mvn33'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800120
121- job-template:
122 # Job template for Java verify jobs with POM not at the root
123 #
124 # The purpose of this job template is to run "maven clean install" for
125 # projects using this template.
126 #
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
131 # trigger the job
132
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800133 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800134
135 project-type: freestyle
136 concurrent: true
137 node: '{build-node}'
138
139 properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800140 - ecomp-infra-properties:
141 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800142
143 parameters:
144 - ecomp-infra-parameters:
145 project: '{project}'
146 branch: '{branch}'
147 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800148 artifacts: '{archive-artifacts}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800149
150 scm:
151 - gerrit-trigger-scm:
152 refspec: '$GERRIT_REFSPEC'
153 choosing-strategy: 'gerrit'
154
155 wrappers:
156 - ecomp-infra-wrappers:
157 build-timeout: '{build-timeout}'
158
159 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800160 - gerrit-trigger-patch-submitted:
161 server: '{server-name}'
162 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800163 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800164 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800165
166 builders:
167 - provide-maven-settings:
168 global-settings-file: 'global-settings'
169 settings-file: '{mvn-settings}'
170 - maven-target:
171 maven-version: 'mvn33'
172 pom: '{pom}'
173 goals: 'clean install'
174 settings: '{mvn-settings}'
175 settings-type: cfp
176 global-settings: 'global-settings'
177 global-settings-type: cfp
178
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800179# publishers:
180# - ecomp-infra-shiplogs:
181# maven-version: 'mvn33'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800182
183- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100184 # Job template for Java daily release jobs
185 #
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800186 # The purpose of this job template is to run "maven version && maven clean
187 # deploy" for projects using this template.
JulienBe2f4ee072017-02-01 21:42:32 +0100188 #
189 # Required Variables:
190 # branch: git branch (eg. stable/lithium or master)
191 name: '{project-name}-{stream}-release-java-daily'
192
193 project-type: freestyle
194 node: '{build-node}'
195 maven-deploy-properties:
196 properties:
197 - ecomp-infra-properties:
198 build-days-to-keep: '{build-days-to-keep}'
199
200 parameters:
201 - ecomp-infra-parameters:
202 project: '{project}'
203 branch: '{branch}'
204 refspec: 'refs/heads/{branch}'
205 artifacts: '{archive-artifacts}'
206
207 scm:
208 - gerrit-trigger-scm:
209 refspec: ''
210 choosing-strategy: 'default'
211
212 wrappers:
213 - ecomp-infra-wrappers:
214 build-timeout: '{build-timeout}'
215
216 triggers:
217 # 11 AM UTC
218 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800219 - gerrit-trigger-release-manually:
220 server: '{server-name}'
221 project: '{project}'
222 branch: '{branch}'
JulienBe2f4ee072017-02-01 21:42:32 +0100223
224 builders:
225 - provide-maven-settings:
226 global-settings-file: 'global-settings'
227 settings-file: '{mvn-settings}'
228
JulienBe5641aa02017-02-17 01:08:38 -0800229 - maven-target:
230 maven-version: 'mvn33'
231 goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org'
232 properties:
233 - '{maven-deploy-properties}'
234 settings: '{mvn-settings}'
235 settings-type: cfp
236 global-settings: 'global-settings'
237 global-settings-type: cfp
238
239- job-template:
240 # Job template for Java daily release jobs
241 #
242 # The purpose of this job template is to run "maven version && maven clean
243 # deploy" for projects using this template.
244 #
245 # Required Variables:
246 # branch: git branch (eg. stable/lithium or master)
247 name: '{project-name}-{stream}-release-version-java-daily'
248
249 project-type: freestyle
250 node: '{build-node}'
251 maven-deploy-properties:
252 properties:
253 - ecomp-infra-properties:
254 build-days-to-keep: '{build-days-to-keep}'
255
256 parameters:
257 - ecomp-infra-parameters:
258 project: '{project}'
259 branch: '{branch}'
260 refspec: 'refs/heads/{branch}'
261 artifacts: '{archive-artifacts}'
262
263 scm:
264 - gerrit-trigger-scm:
265 refspec: ''
266 choosing-strategy: 'default'
267
268 wrappers:
269 - ecomp-infra-wrappers:
270 build-timeout: '{build-timeout}'
271
272 triggers:
273 # 11 AM UTC
274 - timed: 'H 11 * * *'
275 - gerrit-trigger-release-manually:
276 server: '{server-name}'
277 project: '{project}'
278 branch: '{branch}'
279
280 builders:
281 - provide-maven-settings:
282 global-settings-file: 'global-settings'
283 settings-file: '{mvn-settings}'
284
JulienBe2f4ee072017-02-01 21:42:32 +0100285 - inject:
286 properties-file: version.properties
287 - maven-target:
288 maven-version: 'mvn33'
289 goals: 'versions:set versions:update-child-modules versions:commit'
290 properties:
291 - 'newVersion=${{release_version}}'
292 settings: '{mvn-settings}'
293 settings-type: cfp
294 global-settings: 'global-settings'
295 global-settings-type: cfp
296
297 - maven-target:
298 maven-version: 'mvn33'
JulienBe360dc8c2017-02-07 02:53:25 -0800299 goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800300 properties:
301 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100302 settings: '{mvn-settings}'
303 settings-type: cfp
304 global-settings: 'global-settings'
305 global-settings-type: cfp
306
307- job-template:
Carsten Lundda8b6972017-02-15 23:59:25 +0000308 # Job template for Java daily release jobs with POM not at the root
309 #
310 # The purpose of this job template is to run "maven version && maven clean
311 # deploy" for projects using this template.
312 #
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
316
317
318 name: '{project-name}-{stream}-{subproject}-release-java-daily'
319
320 project-type: freestyle
321 node: '{build-node}'
322 maven-deploy-properties:
323 properties:
324 - ecomp-infra-properties:
325 build-days-to-keep: '{build-days-to-keep}'
326
327 parameters:
328 - ecomp-infra-parameters:
329 project: '{project}'
330 branch: '{branch}'
331 refspec: 'refs/heads/{branch}'
332 artifacts: '{archive-artifacts}'
333
334 scm:
335 - gerrit-trigger-scm:
336 refspec: ''
337 choosing-strategy: 'default'
338
339 wrappers:
340 - ecomp-infra-wrappers:
341 build-timeout: '{build-timeout}'
342
343 triggers:
344 # 11 AM UTC
345 - timed: 'H 11 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800346 - gerrit-trigger-release-manually:
347 server: '{server-name}'
348 project: '{project}'
349 branch: '{branch}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000350
351 builders:
352 - provide-maven-settings:
353 global-settings-file: 'global-settings'
354 settings-file: '{mvn-settings}'
355
Carsten Lundda8b6972017-02-15 23:59:25 +0000356 - maven-target:
357 maven-version: 'mvn33'
358 goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org'
359 properties:
360 - '{maven-deploy-properties}'
361 settings: '{mvn-settings}'
362 settings-type: cfp
363 global-settings: 'global-settings'
364 global-settings-type: cfp
365
366- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800367 # Job template for Java merge jobs
368 #
369 # The purpose of this job template is to run "maven clean deploy" for
370 # projects using this template.
371 #
372 # Required Variables:
373 # branch: git branch (eg. stable/lithium or master)
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800374 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800375
376 project-type: freestyle
377 node: '{build-node}'
378
379 properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800380 - ecomp-infra-properties:
381 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800382
383 parameters:
384 - ecomp-infra-parameters:
385 project: '{project}'
386 branch: '{branch}'
387 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800388 artifacts: '{archive-artifacts}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800389
390 scm:
391 - gerrit-trigger-scm:
392 refspec: ''
393 choosing-strategy: 'default'
394
395 wrappers:
396 - ecomp-infra-wrappers:
397 build-timeout: '{build-timeout}'
398
399 triggers:
400 - gerrit-trigger-patch-merged:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800401 server: '{server-name}'
402 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800403 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800404 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800405
406 builders:
407 - provide-maven-settings:
408 global-settings-file: 'global-settings'
409 settings-file: '{mvn-settings}'
410 - maven-target:
411 maven-version: 'mvn33'
412 # yamllint disable rule:line-length
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800413 goals: 'clean deploy'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800414 # yamllint enable
415 settings: '{mvn-settings}'
416 settings-type: cfp
417 global-settings: 'global-settings'
418 global-settings-type: cfp
419
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800420# publishers:
421# - ecomp-infra-shiplogs:
422# maven-version: 'mvn33'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800423
424- job-template:
Andrew Grimbergdd853c52017-02-16 14:14:26 -0800425 # Job template for Java merge jobs that should also be triggered by upstream
426 # merges
427 #
428 # Required Variables:
429 # stream: release stream
430 # branch: git branch
431 # dependencies: fully qualified upstream job name to trigger on
432 # this may be ''
433 name: '{project-name}-{stream}-downstream-merge-java'
434
435 project-type: freestyle
436 node: '{build-node}'
437
438 properties:
439 - ecomp-infra-properties:
440 build-days-to-keep: '{build-days-to-keep}'
441
442 parameters:
443 - ecomp-infra-parameters:
444 project: '{project}'
445 branch: '{branch}'
446 refspec: 'refs/heads/{branch}'
447 artifacts: '{archive-artifacts}'
448
449 scm:
450 - gerrit-trigger-scm:
451 refspec: ''
452 choosing-strategy: 'default'
453
454 wrappers:
455 - ecomp-infra-wrappers:
456 build-timeout: '{build-timeout}'
457
458 triggers:
459 - reverse:
460 jobs: '{dependencies}'
461 result: 'success'
462 - gerrit-trigger-patch-merged:
463 server: '{server-name}'
464 project: '{project}'
465 branch: '{branch}'
466 files: '**'
467
468 builders:
469 - provide-maven-settings:
470 global-settings-file: 'global-settings'
471 settings-file: '{mvn-settings}'
472 - maven-target:
473 maven-version: 'mvn33'
474 # yamllint disable rule:line-length
475 goals: 'clean deploy'
476 # yamllint enable
477 settings: '{mvn-settings}'
478 settings-type: cfp
479 global-settings: 'global-settings'
480 global-settings-type: cfp
481
482# publishers:
483# - ecomp-infra-shiplogs:
484# maven-version: 'mvn33'
485
486- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800487 # Job template for Java merge jobs with POM not at the root
488 #
489 # The purpose of this job template is to run "maven clean deploy" for
490 # projects using this template.
491 #
492 # Required Variables:
493 # branch: git branch (eg. stable/lithium or master)
494 # pom: name/location of the pom.xml file relative to the workspace
495 # pattern: ant file-path pattern relative to the workspace used to
496 # trigger the job
497
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800498 name: '{project-name}-{stream}-{subproject}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800499
500 project-type: freestyle
501 node: '{build-node}'
502
503 properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800504 - ecomp-infra-properties:
505 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800506
507 parameters:
508 - ecomp-infra-parameters:
509 project: '{project}'
510 branch: '{branch}'
511 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800512 artifacts: '{archive-artifacts}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800513
514 scm:
515 - gerrit-trigger-scm:
516 refspec: ''
517 choosing-strategy: 'default'
518
519 wrappers:
520 - ecomp-infra-wrappers:
521 build-timeout: '{build-timeout}'
522
523 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800524 - gerrit-trigger-patch-merged:
525 server: '{server-name}'
526 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800527 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800528 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800529
530 builders:
531 - provide-maven-settings:
532 global-settings-file: 'global-settings'
533 settings-file: '{mvn-settings}'
534 - maven-target:
535 maven-version: 'mvn33'
536 pom: '{pom}'
537 # yamllint disable rule:line-length
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800538 goals: 'clean deploy'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800539 # yamllint enable
540 settings: '{mvn-settings}'
541 settings-type: cfp
542 global-settings: 'global-settings'
543 global-settings-type: cfp
544
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800545# publishers:
546# - ecomp-infra-shiplogs:
547# maven-version: 'mvn33'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100548
549- job-template:
550 name: '{project-name}-{stream}-docker-java-daily'
551 project-type: freestyle
Andrew Grimberg2137b1d2017-02-15 07:24:53 -0800552 node: 'ubuntu1604-docker-8c-8g'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100553
554 properties:
555 - ecomp-infra-properties:
556 build-days-to-keep: '{build-days-to-keep}'
557
558 parameters:
559 - ecomp-infra-parameters:
560 project: '{project}'
561 branch: '{branch}'
562 refspec: 'refs/heads/{branch}'
563 artifacts: '{archive-artifacts}'
564
565 scm:
566 - gerrit-trigger-scm:
567 refspec: ''
568 choosing-strategy: 'default'
569
Anaël Clossonabbafb52017-02-09 17:55:10 +0100570 wrappers:
571 - ecomp-infra-wrappers:
572 build-timeout: '{build-timeout}'
573
574 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800575 # 12 AM UTC
Anaël Clossonabbafb52017-02-09 17:55:10 +0100576 - timed: 'H 12 * * *'
JulienBe0d8c2c32017-02-16 11:50:48 -0800577 - gerrit-trigger-release-manually:
578 server: '{server-name}'
579 project: '{project}'
580 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100581
582 builders:
Anaël Closson63e090e2017-02-15 14:50:45 +0100583
Anaël Clossonabbafb52017-02-09 17:55:10 +0100584 - provide-maven-settings:
585 global-settings-file: 'global-settings'
586 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100587
Anaël Closson63e090e2017-02-15 14:50:45 +0100588 - docker-login
589
Anaël Clossonabbafb52017-02-09 17:55:10 +0100590 - maven-docker-push-daily:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100591 mvn-settings: '{mvn-settings}'
592 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100593 # use default as mvn-profile if profile is not needed
594 mvn-profile: '{mvn-profile}'