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: '{maven-version}'
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: '{maven-version}'
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: '{maven-version}'
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: '{maven-version}'
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: '{maven-version}'
157 - gerrit-trigger-scm:
159 choosing-strategy: 'default'
162 - ecomp-infra-wrappers:
163 build-timeout: '{build-timeout}'
167 - timed: 'H 11 * * *'
168 - gerrit-trigger-release-manually:
169 server: '{server-name}'
174 - provide-maven-settings:
175 global-settings-file: 'global-settings'
176 settings-file: '{mvn-settings}'
178 properties-file: version.properties
180 maven-version: '{maven-version}'
181 goals: '{mvn-goals-versioning}'
183 - 'newVersion=${{release_version}}'
184 settings: '{mvn-settings}'
186 global-settings: 'global-settings'
187 global-settings-type: cfp
190 maven-version: '{maven-version}'
193 - '{maven-deploy-properties}'
194 settings: '{mvn-settings}'
196 global-settings: 'global-settings'
197 global-settings-type: cfp
202 # Job template for daily-release a submission. triggered on timer, does
203 # scm mvn with passed-in goals, then run script.
204 # Version changed using include-update-pom-versions.sh script
206 # Required Variables:
208 # script: build script to execute
209 # mvn-goals: space separated list of maven build goals (--version for
210 # noop, or clean deploy)
211 name: '{project-name}-{stream}-daily-release-version2-scm-mvn-script'
213 project-type: freestyle
215 node: 'ubuntu1604-docker-8c-8g'
218 - ecomp-infra-properties:
219 build-days-to-keep: '{build-days-to-keep}'
222 - ecomp-infra-parameters:
225 refspec: 'refs/heads/{branch}'
226 artifacts: '{archive-artifacts}'
228 maven-version: '{maven-version}'
231 - gerrit-trigger-scm:
233 choosing-strategy: 'default'
236 - ecomp-infra-wrappers:
237 build-timeout: '{build-timeout}'
241 - timed: 'H 11 * * *'
242 - gerrit-trigger-release-manually:
243 server: '{server-name}'
248 - provide-maven-settings:
249 global-settings-file: 'global-settings'
250 settings-file: '{mvn-settings}'
253 properties-file: version.properties
255 - shell: !include-raw-escape: include-update-pom-versions.sh
258 maven-version: '{maven-version}'
261 - '{maven-deploy-properties}'
262 settings: '{mvn-settings}'
264 global-settings: 'global-settings'
265 global-settings-type: cfp
272 # Job template for verifying a submission. triggered on
273 # gerrit-trigger-patch-submitted,
274 # does scm 2 repos, mvn with passed-in 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 (e.g.
287 # clean, install etc, --version for noop)
289 name: '{project-name}-{stream}-verify-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: '{maven-version}'
309 - gerrit-trigger-scm:
310 refspec: '$GERRIT_REFSPEC'
311 choosing-strategy: 'gerrit'
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-submitted:
324 server: '{server-name}'
330 - provide-maven-settings:
331 global-settings-file: 'global-settings'
332 settings-file: '{mvn-settings}'
334 maven-version: '{maven-version}'
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 of 2 repos, mvn with passed in
347 # goals, then run script
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)
362 name: '{project-name}-{stream}-merge-2scm-mvn-script'
364 project-type: freestyle
366 node: 'ubuntu1604-docker-8c-8g'
369 - ecomp-infra-properties:
370 build-days-to-keep: '{build-days-to-keep}'
373 - ecomp-infra-parameters:
376 refspec: 'refs/heads/{branch}'
377 artifacts: '{archive-artifacts}'
379 maven-version: '{maven-version}'
382 - gerrit-trigger-scm:
384 choosing-strategy: 'default'
386 project: '{extra-project}'
387 refspec: '{extra-refspec}'
388 branch: '{extra-branch}'
389 checkout-dir: '{checkout-dir}'
392 - ecomp-infra-wrappers:
393 build-timeout: '{build-timeout}'
396 - gerrit-trigger-patch-merged:
397 server: '{server-name}'
403 - provide-maven-settings:
404 global-settings-file: 'global-settings'
405 settings-file: '{mvn-settings}'
407 maven-version: '{maven-version}'
409 settings: '{mvn-settings}'
411 global-settings: 'global-settings'
412 global-settings-type: cfp
418 # Job template for merged submission. triggered on
419 # gerrit-trigger-patch-merged, does scm x2, mvn with passed-in goals,
422 # Required Variables:
424 # script: build script to execute
425 # extra-project: extra gerrit project to checkout
426 # extra-refspec: refspec for the extra project
427 # extra-branch: branch to checkout for the extra project
428 # checkout-dir: directory to checkout the extra project to
429 # DO NOT SET THIS TO anything that translates to
430 # $WORKSPACE as it will destroy the initial
432 # mvn-goals: space separated list of maven build goals (--version
433 # for noop, clean deploy for mvn project)
434 # mvn-goals-versioning: space separated list of maven build goals
435 # (--version for no op, clean deploy for mvn project)
437 name: '{project-name}-{stream}-daily-release-2scm-mvn-script'
439 project-type: freestyle
440 node: 'ubuntu1604-docker-8c-8g'
443 - ecomp-infra-properties:
444 build-days-to-keep: '{build-days-to-keep}'
447 - ecomp-infra-parameters:
450 refspec: 'refs/heads/{branch}'
451 artifacts: '{archive-artifacts}'
453 maven-version: '{maven-version}'
456 - gerrit-trigger-scm:
458 choosing-strategy: 'default'
460 project: '{extra-project}'
461 refspec: '{extra-refspec}'
462 branch: '{extra-branch}'
463 checkout-dir: '{checkout-dir}'
466 - ecomp-infra-wrappers:
467 build-timeout: '{build-timeout}'
470 - timed: 'H 11 * * *'
471 - gerrit-trigger-release-manually:
472 server: '{server-name}'
477 - provide-maven-settings:
478 global-settings-file: 'global-settings'
479 settings-file: '{mvn-settings}'
481 properties-file: version.properties
483 maven-version: '{maven-version}'
484 goals: '{mvn-goals-versioning}'
486 - 'newVersion=${{release_version}}'
487 settings: '{mvn-settings}'
489 global-settings: 'global-settings'
490 global-settings-type: cfp
493 maven-version: '{maven-version}'
495 settings: '{mvn-settings}'
497 global-settings: 'global-settings'
498 global-settings-type: cfp
504 # Job template for basic scm and script trigger
506 # Required Variables:
508 # build-node: what build node to run on
509 # script: build script to execute
511 name: '{project-name}-{stream}-verify-script'
513 project-type: freestyle
518 - ecomp-infra-properties:
519 build-days-to-keep: '{build-days-to-keep}'
522 - ecomp-infra-parameters:
525 refspec: 'refs/heads/{branch}'
526 artifacts: '{archive-artifacts}'
528 maven-version: '{maven-version}'
531 - gerrit-trigger-scm:
532 refspec: '$GERRIT_REFSPEC'
533 choosing-strategy: 'gerrit'
536 - ecomp-infra-wrappers:
537 build-timeout: '{build-timeout}'
540 - gerrit-trigger-patch-submitted:
541 server: '{server-name}'
547 - provide-maven-settings:
548 global-settings-file: 'global-settings'
549 settings-file: '{mvn-settings}'
550 # make sure maven gets installed / setup
552 maven-version: '{maven-version}'
554 settings: '{mvn-settings}'
556 global-settings: 'global-settings'
557 global-settings-type: cfp
561 # - ecomp-infra-shiplogs:
562 # maven-version: '{maven-version}'
565 # Job template for 2 scm and script trigger
567 # Required Variables:
569 # build-node: what build node to run on
570 # script: build script to execute
571 # extra-project: extra gerrit project to checkout
572 # extra-refspec: refspec for the extra project
573 # extra-branch: branch to checkout for the extra project
574 # checkout-dir: directory to checkout the extra project to
575 # DO NOT SET THIS TO anything that translates to
576 # $WORKSPACE as it will destroy the initial
579 name: '{project-name}-{stream}-two-scm-verify-script'
581 project-type: freestyle
586 - ecomp-infra-properties:
587 build-days-to-keep: '{build-days-to-keep}'
590 - ecomp-infra-parameters:
593 refspec: 'refs/heads/{branch}'
594 artifacts: '{archive-artifacts}'
596 maven-version: '{maven-version}'
599 - gerrit-trigger-scm:
600 refspec: '$GERRIT_REFSPEC'
601 choosing-strategy: 'gerrit'
603 project: '{extra-project}'
604 refspec: '{extra-refspec}'
605 branch: '{extra-branch}'
606 checkout-dir: '{checkout-dir}'
609 - ecomp-infra-wrappers:
610 build-timeout: '{build-timeout}'
613 - gerrit-trigger-patch-submitted:
614 server: '{server-name}'
620 - provide-maven-settings:
621 global-settings-file: 'global-settings'
622 settings-file: '{mvn-settings}'
623 # make sure maven gets installed / setup
625 maven-version: '{maven-version}'
627 settings: '{mvn-settings}'
629 global-settings: 'global-settings'
630 global-settings-type: cfp
634 # - ecomp-infra-shiplogs:
635 # maven-version: '{maven-version}'
639 # Job template for 3 scm and script trigger
641 # Required Variables:
643 # build-node: what build node to run on
644 # script: build script to execute
645 # extra-project1: extra gerrit project to checkout
646 # extra-refspec1: refspec for the extra project
647 # extra-branch1: branch to checkout for the extra project
648 # checkout-dir1: directory to checkout the extra project to
649 # DO NOT SET THIS TO anything that translates to
650 # $WORKSPACE as it will destroy the initial
652 # extra-project2: extra gerrit project to checkout
653 # extra-refspec2: refspec for the extra project
654 # extra-branch2: branch to checkout for the extra project
655 # checkout-dir2: directory to checkout the extra project to
656 # DO NOT SET THIS TO anything that translates to
657 # $WORKSPACE as it will destroy the initial
659 name: '{project-name}-{stream}-three-scm-verify-script'
661 project-type: freestyle
666 - ecomp-infra-properties:
667 build-days-to-keep: '{build-days-to-keep}'
670 - ecomp-infra-parameters:
673 refspec: 'refs/heads/{branch}'
674 artifacts: '{archive-artifacts}'
676 maven-version: '{maven-version}'
678 - gerrit-trigger-scm:
679 refspec: '$GERRIT_REFSPEC'
680 choosing-strategy: 'gerrit'
682 project: '{extra-project1}'
683 refspec: '{extra-refspec1}'
684 branch: '{extra-branch1}'
685 checkout-dir: '{checkout-dir1}'
687 project: '{extra-project2}'
688 refspec: '{extra-refspec2}'
689 branch: '{extra-branch2}'
690 checkout-dir: '{checkout-dir2}'
693 - ecomp-infra-wrappers:
694 build-timeout: '{build-timeout}'
697 - gerrit-trigger-patch-submitted:
698 server: '{server-name}'
704 - provide-maven-settings:
705 global-settings-file: 'global-settings'
706 settings-file: '{mvn-settings}'
707 # make sure maven gets installed / setup
709 maven-version: '{maven-version}'
711 settings: '{mvn-settings}'
713 global-settings: 'global-settings'
714 global-settings-type: cfp
718 # - ecomp-infra-shiplogs:
719 # maven-version: '{maven-version}'
721 # vim: sw=2 ts=2 sts=2 et :
724 # Job template for scm and script trigger - for docker merge
726 # Required Variables:
728 # build-node: what build node to run on
729 # script: build script to execute
731 name: '{project-name}-{stream}-merge-docker-script'
733 project-type: freestyle
738 - ecomp-infra-properties:
739 build-days-to-keep: '{build-days-to-keep}'
742 - ecomp-infra-parameters:
745 refspec: 'refs/heads/{branch}'
746 artifacts: '{archive-artifacts}'
748 maven-version: '{maven-version}'
751 - gerrit-trigger-scm:
753 choosing-strategy: 'default'
755 project: '{extra-project1}'
756 refspec: '{extra-refspec1}'
757 branch: '{extra-branch1}'
758 checkout-dir: '{checkout-dir1}'
760 project: '{extra-project2}'
761 refspec: '{extra-refspec2}'
762 branch: '{extra-branch2}'
763 checkout-dir: '{checkout-dir2}'
766 - ecomp-infra-wrappers:
767 build-timeout: '{build-timeout}'
770 - gerrit-trigger-patch-merged:
771 server: '{server-name}'
777 - provide-maven-settings:
778 global-settings-file: 'global-settings'
779 settings-file: '{mvn-settings}'
781 # make sure maven gets installed / setup
783 maven-version: '{maven-version}'
785 settings: '{mvn-settings}'
787 global-settings: 'global-settings'
788 global-settings-type: cfp
792 # - ecomp-infra-shiplogs:
793 # maven-version: '{maven-version}'
796 # Job template for scm and script trigger - for docker daily release
798 # Required Variables:
800 # build-node: what build node to run on
801 # script: build script to execute
803 name: '{project-name}-{stream}-release-docker-script-manual'
805 project-type: freestyle
810 - ecomp-infra-properties:
811 build-days-to-keep: '{build-days-to-keep}'
814 - ecomp-infra-parameters:
817 refspec: 'refs/heads/{branch}'
818 artifacts: '{archive-artifacts}'
820 maven-version: '{maven-version}'
823 - gerrit-trigger-scm:
825 choosing-strategy: 'default'
827 project: '{extra-project1}'
828 refspec: '{extra-refspec1}'
829 branch: '{extra-branch1}'
830 checkout-dir: '{checkout-dir1}'
832 project: '{extra-project2}'
833 refspec: '{extra-refspec2}'
834 branch: '{extra-branch2}'
835 checkout-dir: '{checkout-dir2}'
838 - ecomp-infra-wrappers:
839 build-timeout: '{build-timeout}'
842 - gerrit-trigger-release-manually:
843 server: '{server-name}'
848 - provide-maven-settings:
849 global-settings-file: 'global-settings'
850 settings-file: '{mvn-settings}'
852 # make sure maven gets installed / setup
854 maven-version: '{maven-version}'
856 settings: '{mvn-settings}'
858 global-settings: 'global-settings'
859 global-settings-type: cfp
863 # - ecomp-infra-shiplogs:
864 # maven-version: '{maven-version}'
867 # 1. PULL the desired image
868 # 2. TAG it to the desired release name
869 # 3. PUSH the newly tagged image on release repo
871 name: '{project-name}-docker-image-blessing'
873 project-type: freestyle
875 node: 'ubuntu1604-docker-8c-8g'
880 description: "VERSION of the STAGING image to bless into this RELEASE VERSION
884 description: "TIMESTAMP of the STAGING image to pull
885 Example : 20170308T1332"
891 - ecomp-infra-properties:
892 build-days-to-keep: '{build-days-to-keep}'
895 - ecomp-infra-wrappers:
896 build-timeout: '{build-timeout}'
899 - provide-maven-settings:
900 global-settings-file: 'global-settings'
901 settings-file: '{mvn-settings}'
903 - shell: !include-raw: include-docker-blessing.sh