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'
24 build-days-to-keep: '{build-days-to-keep}'
30 refspec: 'refs/heads/{branch}'
31 artifacts: '{archive-artifacts}'
33 maven-version: '{maven-version}'
37 refspec: '$GERRIT_REFSPEC'
38 choosing-strategy: 'gerrit'
39 submodule-recursive: '{submodule-recursive}'
43 build-timeout: '{build-timeout}'
46 - gerrit-trigger-patch-submitted:
47 server: '{server-name}'
53 - provide-maven-settings:
54 global-settings-file: 'global-settings'
55 settings-file: '{mvn-settings}'
57 maven-version: '{maven-version}'
59 settings: '{mvn-settings}'
61 global-settings: 'global-settings'
62 global-settings-type: cfp
68 maven-version: '{maven-version}'
71 # Job template for merging a submission. triggered on
72 # gerrit-trigger-patch-merged, does scm, mvn with passed-in goals, then
76 # script: build script to execute
77 # mvn-settings: settings file for this specific job
78 # mvn-goals: space separated list of maven build goals (--version
79 # for noop, clean deploy for deploy [snapshot])
80 name: '{project-name}-{stream}-merge-scm-mvn-script'
82 project-type: freestyle
83 node: 'ubuntu1604-docker-8c-8g'
87 build-days-to-keep: '{build-days-to-keep}'
93 refspec: 'refs/heads/{branch}'
94 artifacts: '{archive-artifacts}'
96 maven-version: '{maven-version}'
101 choosing-strategy: 'default'
102 submodule-recursive: '{submodule-recursive}'
106 build-timeout: '{build-timeout}'
109 - gerrit-trigger-patch-merged:
110 server: '{server-name}'
116 - provide-maven-settings:
117 global-settings-file: 'global-settings'
118 settings-file: '{mvn-settings}'
120 maven-version: '{maven-version}'
122 settings: '{mvn-settings}'
124 global-settings: 'global-settings'
125 global-settings-type: cfp
131 maven-version: '{maven-version}'
134 # Job template for daily-release a submission. triggered on timer, does
135 # scm mvn with passed-in goals, then run script
137 # Required Variables:
139 # script: build script to execute
140 # mvn-goals-versioning: space separated list of maven build goals
141 # (--version for no op,
142 # or versions:set versions:update-child-modules versions:commit)
143 # mvn-goals: space separated list of maven build goals (--version for
144 # noop, or clean deploy)
145 name: '{project-name}-{stream}-daily-release-scm-mvn-script'
147 project-type: freestyle
149 node: 'ubuntu1604-docker-8c-8g'
153 build-days-to-keep: '{build-days-to-keep}'
159 refspec: 'refs/heads/{branch}'
160 artifacts: '{archive-artifacts}'
162 maven-version: '{maven-version}'
165 - gerrit-trigger-scm:
167 choosing-strategy: 'default'
168 submodule-recursive: '{submodule-recursive}'
172 build-timeout: '{build-timeout}'
176 - timed: 'H 11 * * *'
177 - gerrit-trigger-release-manually:
178 server: '{server-name}'
183 - provide-maven-settings:
184 global-settings-file: 'global-settings'
185 settings-file: '{mvn-settings}'
187 properties-file: version.properties
189 maven-version: '{maven-version}'
190 goals: '{mvn-goals-versioning}'
192 - 'newVersion=${{release_version}}'
193 settings: '{mvn-settings}'
195 global-settings: 'global-settings'
196 global-settings-type: cfp
199 maven-version: '{maven-version}'
202 - '{maven-deploy-properties}'
203 settings: '{mvn-settings}'
205 global-settings: 'global-settings'
206 global-settings-type: cfp
212 maven-version: '{maven-version}'
215 # Job template for daily-release a submission. triggered on timer, does
216 # scm mvn with passed-in goals, then run script.
217 # Version changed using include-update-pom-versions.sh script
219 # Required Variables:
221 # script: build script to execute
222 # mvn-goals: space separated list of maven build goals (--version for
223 # noop, or clean deploy)
224 name: '{project-name}-{stream}-daily-release-version2-scm-mvn-script'
226 project-type: freestyle
228 node: 'ubuntu1604-docker-8c-8g'
232 build-days-to-keep: '{build-days-to-keep}'
238 refspec: 'refs/heads/{branch}'
239 artifacts: '{archive-artifacts}'
241 maven-version: '{maven-version}'
244 - gerrit-trigger-scm:
246 choosing-strategy: 'default'
247 submodule-recursive: '{submodule-recursive}'
251 build-timeout: '{build-timeout}'
255 - timed: 'H 11 * * *'
256 - gerrit-trigger-release-manually:
257 server: '{server-name}'
262 - provide-maven-settings:
263 global-settings-file: 'global-settings'
264 settings-file: '{mvn-settings}'
267 properties-file: version.properties
269 - shell: !include-raw-escape: include-update-pom-versions.sh
272 maven-version: '{maven-version}'
275 - '{maven-deploy-properties}'
276 settings: '{mvn-settings}'
278 global-settings: 'global-settings'
279 global-settings-type: cfp
285 maven-version: '{maven-version}'
288 # Job template for verifying a submission. triggered on
289 # gerrit-trigger-patch-submitted,
290 # does scm 2 repos, mvn with passed-in goals, then run script
292 # Required Variables:
294 # script: build script to execute
295 # extra-project: extra gerrit project to checkout
296 # extra-refspec: refspec for the extra project
297 # extra-branch: branch to checkout for the extra project
298 # checkout-dir: directory to checkout the extra project to
299 # DO NOT SET THIS TO anything that translates to
300 # $WORKSPACE as it will destroy the initial
302 # mvn-goals: space separated list of maven build goals (e.g.
303 # clean, install etc, --version for noop)
305 name: '{project-name}-{stream}-verify-2scm-mvn-script'
307 project-type: freestyle
309 node: 'ubuntu1604-docker-8c-8g'
313 build-days-to-keep: '{build-days-to-keep}'
319 refspec: 'refs/heads/{branch}'
320 artifacts: '{archive-artifacts}'
322 maven-version: '{maven-version}'
325 - gerrit-trigger-scm:
326 refspec: '$GERRIT_REFSPEC'
327 choosing-strategy: 'gerrit'
328 submodule-recursive: '{submodule-recursive}'
330 project: '{extra-project}'
331 refspec: '{extra-refspec}'
332 branch: '{extra-branch}'
333 checkout-dir: '{checkout-dir}'
337 build-timeout: '{build-timeout}'
340 - gerrit-trigger-patch-submitted:
341 server: '{server-name}'
347 - provide-maven-settings:
348 global-settings-file: 'global-settings'
349 settings-file: '{mvn-settings}'
351 maven-version: '{maven-version}'
353 settings: '{mvn-settings}'
355 global-settings: 'global-settings'
356 global-settings-type: cfp
362 maven-version: '{maven-version}'
365 # Job template for merged submission. triggered on
366 # gerrit-trigger-patch-merged,does scm of 2 repos, mvn with passed in
367 # goals, then run script
369 # Required Variables:
371 # script: build script to execute
372 # extra-project: extra gerrit project to checkout
373 # extra-refspec: refspec for the extra project
374 # extra-branch: branch to checkout for the extra project
375 # checkout-dir: directory to checkout the extra project to
376 # DO NOT SET THIS TO anything that translates to
377 # $WORKSPACE as it will destroy the initial
379 # mvn-goals: space separated list of maven build goals (--version
380 # for noop, clean deploy for mvn project)
382 name: '{project-name}-{stream}-merge-2scm-mvn-script'
384 project-type: freestyle
386 node: 'ubuntu1604-docker-8c-8g'
390 build-days-to-keep: '{build-days-to-keep}'
396 refspec: 'refs/heads/{branch}'
397 artifacts: '{archive-artifacts}'
399 maven-version: '{maven-version}'
402 - gerrit-trigger-scm:
404 choosing-strategy: 'default'
405 submodule-recursive: '{submodule-recursive}'
407 project: '{extra-project}'
408 refspec: '{extra-refspec}'
409 branch: '{extra-branch}'
410 checkout-dir: '{checkout-dir}'
414 build-timeout: '{build-timeout}'
417 - gerrit-trigger-patch-merged:
418 server: '{server-name}'
424 - provide-maven-settings:
425 global-settings-file: 'global-settings'
426 settings-file: '{mvn-settings}'
428 maven-version: '{maven-version}'
430 settings: '{mvn-settings}'
432 global-settings: 'global-settings'
433 global-settings-type: cfp
439 maven-version: '{maven-version}'
442 # Job template for merged submission. triggered on
443 # gerrit-trigger-patch-merged, does scm x2, mvn with passed-in goals,
446 # Required Variables:
448 # script: build script to execute
449 # extra-project: extra gerrit project to checkout
450 # extra-refspec: refspec for the extra project
451 # extra-branch: branch to checkout for the extra project
452 # checkout-dir: directory to checkout the extra project to
453 # DO NOT SET THIS TO anything that translates to
454 # $WORKSPACE as it will destroy the initial
456 # mvn-goals: space separated list of maven build goals (--version
457 # for noop, clean deploy for mvn project)
458 # mvn-goals-versioning: space separated list of maven build goals
459 # (--version for no op, clean deploy for mvn project)
461 name: '{project-name}-{stream}-daily-release-2scm-mvn-script'
463 project-type: freestyle
464 node: 'ubuntu1604-docker-8c-8g'
468 build-days-to-keep: '{build-days-to-keep}'
474 refspec: 'refs/heads/{branch}'
475 artifacts: '{archive-artifacts}'
477 maven-version: '{maven-version}'
480 - gerrit-trigger-scm:
482 choosing-strategy: 'default'
483 submodule-recursive: '{submodule-recursive}'
485 project: '{extra-project}'
486 refspec: '{extra-refspec}'
487 branch: '{extra-branch}'
488 checkout-dir: '{checkout-dir}'
492 build-timeout: '{build-timeout}'
495 - timed: 'H 11 * * *'
496 - gerrit-trigger-release-manually:
497 server: '{server-name}'
502 - provide-maven-settings:
503 global-settings-file: 'global-settings'
504 settings-file: '{mvn-settings}'
506 properties-file: version.properties
508 maven-version: '{maven-version}'
509 goals: '{mvn-goals-versioning}'
511 - 'newVersion=${{release_version}}'
512 settings: '{mvn-settings}'
514 global-settings: 'global-settings'
515 global-settings-type: cfp
518 maven-version: '{maven-version}'
520 settings: '{mvn-settings}'
522 global-settings: 'global-settings'
523 global-settings-type: cfp
529 maven-version: '{maven-version}'
532 # Job template for basic scm and script trigger
534 # Required Variables:
536 # build-node: what build node to run on
537 # script: build script to execute
539 name: '{project-name}-{stream}-verify-script'
541 project-type: freestyle
547 build-days-to-keep: '{build-days-to-keep}'
553 refspec: 'refs/heads/{branch}'
554 artifacts: '{archive-artifacts}'
556 maven-version: '{maven-version}'
559 - gerrit-trigger-scm:
560 refspec: '$GERRIT_REFSPEC'
561 choosing-strategy: 'gerrit'
562 submodule-recursive: '{submodule-recursive}'
566 build-timeout: '{build-timeout}'
569 - gerrit-trigger-patch-submitted:
570 server: '{server-name}'
576 - provide-maven-settings:
577 global-settings-file: 'global-settings'
578 settings-file: '{mvn-settings}'
579 # make sure maven gets installed / setup
581 maven-version: '{maven-version}'
583 settings: '{mvn-settings}'
585 global-settings: 'global-settings'
586 global-settings-type: cfp
591 maven-version: '{maven-version}'
594 # Job template for 2 scm and script trigger
596 # Required Variables:
598 # build-node: what build node to run on
599 # script: build script to execute
600 # extra-project: extra gerrit project to checkout
601 # extra-refspec: refspec for the extra project
602 # extra-branch: branch to checkout for the extra project
603 # checkout-dir: directory to checkout the extra project to
604 # DO NOT SET THIS TO anything that translates to
605 # $WORKSPACE as it will destroy the initial
608 name: '{project-name}-{stream}-two-scm-verify-script'
610 project-type: freestyle
616 build-days-to-keep: '{build-days-to-keep}'
622 refspec: 'refs/heads/{branch}'
623 artifacts: '{archive-artifacts}'
625 maven-version: '{maven-version}'
628 - gerrit-trigger-scm:
629 refspec: '$GERRIT_REFSPEC'
630 choosing-strategy: 'gerrit'
631 submodule-recursive: '{submodule-recursive}'
633 project: '{extra-project}'
634 refspec: '{extra-refspec}'
635 branch: '{extra-branch}'
636 checkout-dir: '{checkout-dir}'
640 build-timeout: '{build-timeout}'
643 - gerrit-trigger-patch-submitted:
644 server: '{server-name}'
650 - provide-maven-settings:
651 global-settings-file: 'global-settings'
652 settings-file: '{mvn-settings}'
653 # make sure maven gets installed / setup
655 maven-version: '{maven-version}'
657 settings: '{mvn-settings}'
659 global-settings: 'global-settings'
660 global-settings-type: cfp
665 maven-version: '{maven-version}'
669 # Job template for 3 scm and script trigger
671 # Required Variables:
673 # build-node: what build node to run on
674 # script: build script to execute
675 # extra-project1: extra gerrit project to checkout
676 # extra-refspec1: refspec for the extra project
677 # extra-branch1: branch to checkout for the extra project
678 # checkout-dir1: directory to checkout the extra project to
679 # DO NOT SET THIS TO anything that translates to
680 # $WORKSPACE as it will destroy the initial
682 # extra-project2: extra gerrit project to checkout
683 # extra-refspec2: refspec for the extra project
684 # extra-branch2: branch to checkout for the extra project
685 # checkout-dir2: directory to checkout the extra project to
686 # DO NOT SET THIS TO anything that translates to
687 # $WORKSPACE as it will destroy the initial
689 name: '{project-name}-{stream}-three-scm-verify-script'
691 project-type: freestyle
697 build-days-to-keep: '{build-days-to-keep}'
703 refspec: 'refs/heads/{branch}'
704 artifacts: '{archive-artifacts}'
706 maven-version: '{maven-version}'
708 - gerrit-trigger-scm:
709 refspec: '$GERRIT_REFSPEC'
710 choosing-strategy: 'gerrit'
711 submodule-recursive: '{submodule-recursive}'
713 project: '{extra-project1}'
714 refspec: '{extra-refspec1}'
715 branch: '{extra-branch1}'
716 checkout-dir: '{checkout-dir1}'
718 project: '{extra-project2}'
719 refspec: '{extra-refspec2}'
720 branch: '{extra-branch2}'
721 checkout-dir: '{checkout-dir2}'
725 build-timeout: '{build-timeout}'
728 - gerrit-trigger-patch-submitted:
729 server: '{server-name}'
735 - provide-maven-settings:
736 global-settings-file: 'global-settings'
737 settings-file: '{mvn-settings}'
738 # make sure maven gets installed / setup
740 maven-version: '{maven-version}'
742 settings: '{mvn-settings}'
744 global-settings: 'global-settings'
745 global-settings-type: cfp
750 maven-version: '{maven-version}'
752 # vim: sw=2 ts=2 sts=2 et :
755 # Job template for two scm and script trigger - for docker merge
757 # Required Variables:
759 # build-node: what build node to run on
760 # script: build script to execute
762 name: '{project-name}-{stream}-two-scm-merge-docker-script'
764 project-type: freestyle
770 build-days-to-keep: '{build-days-to-keep}'
776 refspec: 'refs/heads/{branch}'
777 artifacts: '{archive-artifacts}'
779 maven-version: '{maven-version}'
782 - gerrit-trigger-scm:
784 choosing-strategy: 'default'
785 submodule-recursive: '{submodule-recursive}'
787 project: '{extra-project}'
788 refspec: '{extra-refspec}'
789 branch: '{extra-branch}'
790 checkout-dir: '{checkout-dir}'
794 build-timeout: '{build-timeout}'
797 - gerrit-trigger-patch-merged:
798 server: '{server-name}'
804 - provide-maven-settings:
805 global-settings-file: 'global-settings'
806 settings-file: '{mvn-settings}'
808 # make sure maven gets installed / setup
810 maven-version: '{maven-version}'
812 settings: '{mvn-settings}'
814 global-settings: 'global-settings'
815 global-settings-type: cfp
820 maven-version: '{maven-version}'
823 # Job template for two scm and script trigger - for docker daily release
825 # Required Variables:
827 # build-node: what build node to run on
828 # script: build script to execute
830 name: '{project-name}-{stream}-two-scm-release-docker-script-manual'
832 project-type: freestyle
838 build-days-to-keep: '{build-days-to-keep}'
844 refspec: 'refs/heads/{branch}'
845 artifacts: '{archive-artifacts}'
847 maven-version: '{maven-version}'
850 - gerrit-trigger-scm:
852 choosing-strategy: 'default'
853 submodule-recursive: '{submodule-recursive}'
855 project: '{extra-project}'
856 refspec: '{extra-refspec}'
857 branch: '{extra-branch}'
858 checkout-dir: '{checkout-dir}'
862 build-timeout: '{build-timeout}'
865 - gerrit-trigger-release-manually:
866 server: '{server-name}'
871 - provide-maven-settings:
872 global-settings-file: 'global-settings'
873 settings-file: '{mvn-settings}'
875 # make sure maven gets installed / setup
877 maven-version: '{maven-version}'
879 settings: '{mvn-settings}'
881 global-settings: 'global-settings'
882 global-settings-type: cfp
887 maven-version: '{maven-version}'
890 # 1. PULL the desired image
891 # 2. TAG it to the desired release name
892 # 3. PUSH the newly tagged image on release repo
894 name: '{project-name}-docker-image-blessing'
896 project-type: freestyle
898 node: 'ubuntu1604-docker-8c-8g'
903 description: "x VERSION of the STAGING image to bless into this RELEASE VERSION
907 description: "y VERSION of the STAGING image to bless into this RELEASE VERSION
911 description: "z VERSION of the RELEASE VERSION
919 build-days-to-keep: '{build-days-to-keep}'
923 build-timeout: '{build-timeout}'
926 - provide-maven-settings:
927 global-settings-file: 'global-settings'
928 settings-file: '{mvn-settings}'
930 - shell: !include-raw: include-docker-blessing.sh
934 maven-version: '{maven-version}'