2 # vim: sw=2 ts=2 sts=2 et :
6 # Job template for verifying a submission. triggered on
7 # gerrit-trigger-patch-submitted, does scm, mvn with passed in goals,
12 # script: build script to execute
13 # mvn-settings: settings file for this specific job
14 # mvn-goals: space separated list of maven build goals (e.g.
15 # clean, install etc, --version for noop)
16 name: '{project-name}-{stream}-verify-scm-mvn-script'
18 project-type: freestyle
20 node: 'ubuntu1604-docker-8c-8g'
23 - ecomp-infra-properties:
24 build-days-to-keep: '{build-days-to-keep}'
27 - ecomp-infra-parameters:
30 refspec: 'refs/heads/{branch}'
31 artifacts: '{archive-artifacts}'
33 maven-version: 'mvn33'
37 refspec: '$GERRIT_REFSPEC'
38 choosing-strategy: 'gerrit'
41 - ecomp-infra-wrappers:
42 build-timeout: '{build-timeout}'
45 - gerrit-trigger-patch-submitted:
46 server: '{server-name}'
52 - provide-maven-settings:
53 global-settings-file: 'global-settings'
54 settings-file: '{mvn-settings}'
56 maven-version: 'mvn33'
58 settings: '{mvn-settings}'
60 global-settings: 'global-settings'
61 global-settings-type: cfp
67 # Job template for merging a submission. triggered on
68 # gerrit-trigger-patch-merged, does scm, mvn with passed-in goals, then
72 # script: build script to execute
73 # mvn-settings: settings file for this specific job
74 # mvn-goals: space separated list of maven build goals (--version
75 # for noop, clean deploy for deploy [snapshot])
76 name: '{project-name}-{stream}-merge-scm-mvn-script'
78 project-type: freestyle
79 node: 'ubuntu1604-docker-8c-8g'
82 - ecomp-infra-properties:
83 build-days-to-keep: '{build-days-to-keep}'
86 - ecomp-infra-parameters:
89 refspec: 'refs/heads/{branch}'
90 artifacts: '{archive-artifacts}'
92 maven-version: 'mvn33'
97 choosing-strategy: 'default'
100 - ecomp-infra-wrappers:
101 build-timeout: '{build-timeout}'
104 - gerrit-trigger-patch-merged:
105 server: '{server-name}'
111 - provide-maven-settings:
112 global-settings-file: 'global-settings'
113 settings-file: '{mvn-settings}'
115 maven-version: 'mvn33'
117 settings: '{mvn-settings}'
119 global-settings: 'global-settings'
120 global-settings-type: cfp
126 # Job template for daily-release a submission. triggered on timer, does
127 # scm mvn with passed-in goals, then run script
129 # Required Variables:
131 # script: build script to execute
132 # mvn-goals-versioning: space separated list of maven build goals
133 # (--version for no op,
134 # or versions:set versions:update-child-modules versions:commit)
135 # mvn-goals: space separated list of maven build goals (--version for
136 # noop, or clean deploy)
137 name: '{project-name}-{stream}-daily-release-scm-mvn-script'
139 project-type: freestyle
141 node: 'ubuntu1604-docker-8c-8g'
144 - ecomp-infra-properties:
145 build-days-to-keep: '{build-days-to-keep}'
148 - ecomp-infra-parameters:
151 refspec: 'refs/heads/{branch}'
152 artifacts: '{archive-artifacts}'
154 maven-version: 'mvn33'
157 - gerrit-trigger-scm:
159 choosing-strategy: 'default'
162 - ecomp-infra-wrappers:
163 build-timeout: '{build-timeout}'
167 - timed: 'H 11 * * *'
170 - provide-maven-settings:
171 global-settings-file: 'global-settings'
172 settings-file: '{mvn-settings}'
174 properties-file: version.properties
176 maven-version: 'mvn33'
177 goals: '{mvn-goals-versioning}'
179 - 'newVersion=${{release_version}}'
180 settings: '{mvn-settings}'
182 global-settings: 'global-settings'
183 global-settings-type: cfp
186 maven-version: 'mvn33'
189 - '{maven-deploy-properties}'
190 settings: '{mvn-settings}'
192 global-settings: 'global-settings'
193 global-settings-type: cfp
199 # Job template for verifying a submission. triggered on
200 # gerrit-trigger-patch-submitted,
201 # does scm 2 repos, mvn with passed-in goals, then run script
203 # Required Variables:
205 # script: build script to execute
206 # extra-project: extra gerrit project to checkout
207 # extra-refspec: refspec for the extra project
208 # extra-branch: branch to checkout for the extra project
209 # checkout-dir: directory to checkout the extra project to
210 # DO NOT SET THIS TO anything that translates to
211 # $WORKSPACE as it will destroy the initial
213 # mvn-goals: space separated list of maven build goals (e.g.
214 # clean, install etc, --version for noop)
216 name: '{project-name}-{stream}-verify-2scm-mvn-script'
218 project-type: freestyle
220 node: 'ubuntu1604-docker-8c-8g'
223 - ecomp-infra-properties:
224 build-days-to-keep: '{build-days-to-keep}'
227 - ecomp-infra-parameters:
230 refspec: 'refs/heads/{branch}'
231 artifacts: '{archive-artifacts}'
233 maven-version: 'mvn33'
236 - gerrit-trigger-scm:
237 refspec: '$GERRIT_REFSPEC'
238 choosing-strategy: 'gerrit'
240 project: '{extra-project}'
241 refspec: '{extra-refspec}'
242 branch: '{extra-branch}'
243 checkout-dir: '{checkout-dir}'
246 - ecomp-infra-wrappers:
247 build-timeout: '{build-timeout}'
250 - gerrit-trigger-patch-submitted:
251 server: '{server-name}'
257 - provide-maven-settings:
258 global-settings-file: 'global-settings'
259 settings-file: '{mvn-settings}'
261 maven-version: 'mvn33'
263 settings: '{mvn-settings}'
265 global-settings: 'global-settings'
266 global-settings-type: cfp
272 # Job template for merged submission. triggered on
273 # gerrit-trigger-patch-merged,does scm of 2 repos, mvn with passed in
274 # goals, then run script
276 # Required Variables:
278 # script: build script to execute
279 # extra-project: extra gerrit project to checkout
280 # extra-refspec: refspec for the extra project
281 # extra-branch: branch to checkout for the extra project
282 # checkout-dir: directory to checkout the extra project to
283 # DO NOT SET THIS TO anything that translates to
284 # $WORKSPACE as it will destroy the initial
286 # mvn-goals: space separated list of maven build goals (--version
287 # for noop, clean deploy for mvn project)
289 name: '{project-name}-{stream}-merge-2scm-mvn-script'
291 project-type: freestyle
293 node: 'ubuntu1604-docker-8c-8g'
296 - ecomp-infra-properties:
297 build-days-to-keep: '{build-days-to-keep}'
300 - ecomp-infra-parameters:
303 refspec: 'refs/heads/{branch}'
304 artifacts: '{archive-artifacts}'
306 maven-version: 'mvn33'
309 - gerrit-trigger-scm:
311 choosing-strategy: 'default'
313 project: '{extra-project}'
314 refspec: '{extra-refspec}'
315 branch: '{extra-branch}'
316 checkout-dir: '{checkout-dir}'
319 - ecomp-infra-wrappers:
320 build-timeout: '{build-timeout}'
323 - gerrit-trigger-patch-merged:
324 server: '{server-name}'
330 - provide-maven-settings:
331 global-settings-file: 'global-settings'
332 settings-file: '{mvn-settings}'
334 maven-version: 'mvn33'
336 settings: '{mvn-settings}'
338 global-settings: 'global-settings'
339 global-settings-type: cfp
345 # Job template for merged submission. triggered on
346 # gerrit-trigger-patch-merged, does scm x2, mvn with passed-in goals,
349 # Required Variables:
351 # script: build script to execute
352 # extra-project: extra gerrit project to checkout
353 # extra-refspec: refspec for the extra project
354 # extra-branch: branch to checkout for the extra project
355 # checkout-dir: directory to checkout the extra project to
356 # DO NOT SET THIS TO anything that translates to
357 # $WORKSPACE as it will destroy the initial
359 # mvn-goals: space separated list of maven build goals (--version
360 # for noop, clean deploy for mvn project)
361 # mvn-goals-versioning: space separated list of maven build goals
362 # (--version for no op, clean deploy for mvn project)
364 name: '{project-name}-{stream}-daily-release-2scm-mvn-script'
366 project-type: freestyle
367 node: 'ubuntu1604-docker-8c-8g'
370 - ecomp-infra-properties:
371 build-days-to-keep: '{build-days-to-keep}'
374 - ecomp-infra-parameters:
377 refspec: 'refs/heads/{branch}'
378 artifacts: '{archive-artifacts}'
380 maven-version: 'mvn33'
383 - gerrit-trigger-scm:
385 choosing-strategy: 'default'
387 project: '{extra-project}'
388 refspec: '{extra-refspec}'
389 branch: '{extra-branch}'
390 checkout-dir: '{checkout-dir}'
393 - ecomp-infra-wrappers:
394 build-timeout: '{build-timeout}'
397 - timed: 'H 11 * * *'
400 - provide-maven-settings:
401 global-settings-file: 'global-settings'
402 settings-file: '{mvn-settings}'
404 properties-file: version.properties
406 maven-version: 'mvn33'
407 goals: '{mvn-goals-versioning}'
409 - 'newVersion=${{release_version}}'
410 settings: '{mvn-settings}'
412 global-settings: 'global-settings'
413 global-settings-type: cfp
416 maven-version: 'mvn33'
418 settings: '{mvn-settings}'
420 global-settings: 'global-settings'
421 global-settings-type: cfp
427 # Job template for basic scm and script trigger
429 # Required Variables:
431 # build-node: what build node to run on
432 # script: build script to execute
434 name: '{project-name}-{stream}-verify-script'
436 project-type: freestyle
441 - ecomp-infra-properties:
442 build-days-to-keep: '{build-days-to-keep}'
445 - ecomp-infra-parameters:
448 refspec: 'refs/heads/{branch}'
449 artifacts: '{archive-artifacts}'
451 maven-version: 'mvn33'
454 - gerrit-trigger-scm:
455 refspec: '$GERRIT_REFSPEC'
456 choosing-strategy: 'gerrit'
459 - ecomp-infra-wrappers:
460 build-timeout: '{build-timeout}'
463 - gerrit-trigger-patch-submitted:
464 server: '{server-name}'
470 - provide-maven-settings:
471 global-settings-file: 'global-settings'
472 settings-file: '{mvn-settings}'
473 # make sure maven gets installed / setup
475 maven-version: 'mvn33'
477 settings: '{mvn-settings}'
479 global-settings: 'global-settings'
480 global-settings-type: cfp
484 # - ecomp-infra-shiplogs:
485 # maven-version: 'mvn33'
488 # Job template for 2 scm and script trigger
490 # Required Variables:
492 # build-node: what build node to run on
493 # script: build script to execute
494 # extra-project: extra gerrit project to checkout
495 # extra-refspec: refspec for the extra project
496 # extra-branch: branch to checkout for the extra project
497 # checkout-dir: directory to checkout the extra project to
498 # DO NOT SET THIS TO anything that translates to
499 # $WORKSPACE as it will destroy the initial
502 name: '{project-name}-{stream}-two-scm-verify-script'
504 project-type: freestyle
509 - ecomp-infra-properties:
510 build-days-to-keep: '{build-days-to-keep}'
513 - ecomp-infra-parameters:
516 refspec: 'refs/heads/{branch}'
517 artifacts: '{archive-artifacts}'
519 maven-version: 'mvn33'
522 - gerrit-trigger-scm:
523 refspec: '$GERRIT_REFSPEC'
524 choosing-strategy: 'gerrit'
526 project: '{extra-project}'
527 refspec: '{extra-refspec}'
528 branch: '{extra-branch}'
529 checkout-dir: '{checkout-dir}'
532 - ecomp-infra-wrappers:
533 build-timeout: '{build-timeout}'
536 - gerrit-trigger-patch-submitted:
537 server: '{server-name}'
543 - provide-maven-settings:
544 global-settings-file: 'global-settings'
545 settings-file: '{mvn-settings}'
546 # make sure maven gets installed / setup
548 maven-version: 'mvn33'
550 settings: '{mvn-settings}'
552 global-settings: 'global-settings'
553 global-settings-type: cfp
557 # - ecomp-infra-shiplogs:
558 # maven-version: 'mvn33'
562 # Job template for 3 scm and script trigger
564 # Required Variables:
566 # build-node: what build node to run on
567 # script: build script to execute
568 # extra-project1: extra gerrit project to checkout
569 # extra-refspec1: refspec for the extra project
570 # extra-branch1: branch to checkout for the extra project
571 # checkout-dir1: directory to checkout the extra project to
572 # DO NOT SET THIS TO anything that translates to
573 # $WORKSPACE as it will destroy the initial
575 # extra-project2: extra gerrit project to checkout
576 # extra-refspec2: refspec for the extra project
577 # extra-branch2: branch to checkout for the extra project
578 # checkout-dir2: directory to checkout the extra project to
579 # DO NOT SET THIS TO anything that translates to
580 # $WORKSPACE as it will destroy the initial
582 name: '{project-name}-{stream}-three-scm-verify-script'
584 project-type: freestyle
589 - ecomp-infra-properties:
590 build-days-to-keep: '{build-days-to-keep}'
593 - ecomp-infra-parameters:
596 refspec: 'refs/heads/{branch}'
597 artifacts: '{archive-artifacts}'
599 maven-version: 'mvn33'
601 - gerrit-trigger-scm:
602 refspec: '$GERRIT_REFSPEC'
603 choosing-strategy: 'gerrit'
605 project: '{extra-project1}'
606 refspec: '{extra-refspec1}'
607 branch: '{extra-branch1}'
608 checkout-dir: '{checkout-dir1}'
610 project: '{extra-project2}'
611 refspec: '{extra-refspec2}'
612 branch: '{extra-branch2}'
613 checkout-dir: '{checkout-dir2}'
616 - ecomp-infra-wrappers:
617 build-timeout: '{build-timeout}'
620 - gerrit-trigger-patch-submitted:
621 server: '{server-name}'
627 - provide-maven-settings:
628 global-settings-file: 'global-settings'
629 settings-file: '{mvn-settings}'
630 # make sure maven gets installed / setup
632 maven-version: 'mvn33'
634 settings: '{mvn-settings}'
636 global-settings: 'global-settings'
637 global-settings-type: cfp
641 # - ecomp-infra-shiplogs:
642 # maven-version: 'mvn33'
644 # vim: sw=2 ts=2 sts=2 et :
647 # Job template for scm and script trigger - for docker merge
649 # Required Variables:
651 # build-node: what build node to run on
652 # script: build script to execute
654 name: '{project-name}-{stream}-merge-docker-script'
656 project-type: freestyle
661 - ecomp-infra-properties:
662 build-days-to-keep: '{build-days-to-keep}'
665 - ecomp-infra-parameters:
668 refspec: 'refs/heads/{branch}'
669 artifacts: '{archive-artifacts}'
671 maven-version: 'mvn33'
674 - gerrit-trigger-scm:
676 choosing-strategy: 'default'
678 project: '{extra-project1}'
679 refspec: '{extra-refspec1}'
680 branch: '{extra-branch1}'
681 checkout-dir: '{checkout-dir1}'
683 project: '{extra-project2}'
684 refspec: '{extra-refspec2}'
685 branch: '{extra-branch2}'
686 checkout-dir: '{checkout-dir2}'
689 - ecomp-infra-wrappers:
690 build-timeout: '{build-timeout}'
693 - gerrit-trigger-patch-merged:
694 server: '{server-name}'
700 - provide-maven-settings:
701 global-settings-file: 'global-settings'
702 settings-file: '{mvn-settings}'
704 # make sure maven gets installed / setup
706 maven-version: 'mvn33'
708 settings: '{mvn-settings}'
710 global-settings: 'global-settings'
711 global-settings-type: cfp
715 # - ecomp-infra-shiplogs:
716 # maven-version: 'mvn33'
719 # Job template for scm and script trigger - for docker daily release
721 # Required Variables:
723 # build-node: what build node to run on
724 # script: build script to execute
726 name: '{project-name}-{stream}-release-docker-script-daily'
728 project-type: freestyle
733 - ecomp-infra-properties:
734 build-days-to-keep: '{build-days-to-keep}'
737 - ecomp-infra-parameters:
740 refspec: 'refs/heads/{branch}'
741 artifacts: '{archive-artifacts}'
743 maven-version: 'mvn33'
746 - gerrit-trigger-scm:
748 choosing-strategy: 'default'
750 project: '{extra-project1}'
751 refspec: '{extra-refspec1}'
752 branch: '{extra-branch1}'
753 checkout-dir: '{checkout-dir1}'
755 project: '{extra-project2}'
756 refspec: '{extra-refspec2}'
757 branch: '{extra-branch2}'
758 checkout-dir: '{checkout-dir2}'
761 - ecomp-infra-wrappers:
762 build-timeout: '{build-timeout}'
766 - timed: 'H 12 * * *'
767 - gerrit-trigger-release-manually:
768 server: '{server-name}'
773 - provide-maven-settings:
774 global-settings-file: 'global-settings'
775 settings-file: '{mvn-settings}'
777 # make sure maven gets installed / setup
779 maven-version: 'mvn33'
781 settings: '{mvn-settings}'
783 global-settings: 'global-settings'
784 global-settings-type: cfp
788 # - ecomp-infra-shiplogs:
789 # maven-version: 'mvn33'