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'
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 maven-version: '{maven-version}'
70 # Job template for merging a submission. triggered on
71 # gerrit-trigger-patch-merged, does scm, mvn with passed-in goals, then
75 # script: build script to execute
76 # mvn-settings: settings file for this specific job
77 # mvn-goals: space separated list of maven build goals (--version
78 # for noop, clean deploy for deploy [snapshot])
79 name: '{project-name}-{stream}-merge-scm-mvn-script'
81 project-type: freestyle
82 node: 'ubuntu1604-docker-8c-8g'
86 build-days-to-keep: '{build-days-to-keep}'
92 refspec: 'refs/heads/{branch}'
93 artifacts: '{archive-artifacts}'
95 maven-version: '{maven-version}'
100 choosing-strategy: 'default'
104 build-timeout: '{build-timeout}'
107 - gerrit-trigger-patch-merged:
108 server: '{server-name}'
114 - provide-maven-settings:
115 global-settings-file: 'global-settings'
116 settings-file: '{mvn-settings}'
118 maven-version: '{maven-version}'
120 settings: '{mvn-settings}'
122 global-settings: 'global-settings'
123 global-settings-type: cfp
129 maven-version: '{maven-version}'
132 # Job template for daily-release a submission. triggered on timer, does
133 # scm mvn with passed-in goals, then run script
135 # Required Variables:
137 # script: build script to execute
138 # mvn-goals-versioning: space separated list of maven build goals
139 # (--version for no op,
140 # or versions:set versions:update-child-modules versions:commit)
141 # mvn-goals: space separated list of maven build goals (--version for
142 # noop, or clean deploy)
143 name: '{project-name}-{stream}-daily-release-scm-mvn-script'
145 project-type: freestyle
147 node: 'ubuntu1604-docker-8c-8g'
151 build-days-to-keep: '{build-days-to-keep}'
157 refspec: 'refs/heads/{branch}'
158 artifacts: '{archive-artifacts}'
160 maven-version: '{maven-version}'
163 - gerrit-trigger-scm:
165 choosing-strategy: 'default'
169 build-timeout: '{build-timeout}'
173 - timed: 'H 11 * * *'
174 - gerrit-trigger-release-manually:
175 server: '{server-name}'
180 - provide-maven-settings:
181 global-settings-file: 'global-settings'
182 settings-file: '{mvn-settings}'
184 properties-file: version.properties
186 maven-version: '{maven-version}'
187 goals: '{mvn-goals-versioning}'
189 - 'newVersion=${{release_version}}'
190 settings: '{mvn-settings}'
192 global-settings: 'global-settings'
193 global-settings-type: cfp
196 maven-version: '{maven-version}'
199 - '{maven-deploy-properties}'
200 settings: '{mvn-settings}'
202 global-settings: 'global-settings'
203 global-settings-type: cfp
209 maven-version: '{maven-version}'
212 # Job template for daily-release a submission. triggered on timer, does
213 # scm mvn with passed-in goals, then run script.
214 # Version changed using include-update-pom-versions.sh script
216 # Required Variables:
218 # script: build script to execute
219 # mvn-goals: space separated list of maven build goals (--version for
220 # noop, or clean deploy)
221 name: '{project-name}-{stream}-daily-release-version2-scm-mvn-script'
223 project-type: freestyle
225 node: 'ubuntu1604-docker-8c-8g'
229 build-days-to-keep: '{build-days-to-keep}'
235 refspec: 'refs/heads/{branch}'
236 artifacts: '{archive-artifacts}'
238 maven-version: '{maven-version}'
241 - gerrit-trigger-scm:
243 choosing-strategy: 'default'
247 build-timeout: '{build-timeout}'
251 - timed: 'H 11 * * *'
252 - gerrit-trigger-release-manually:
253 server: '{server-name}'
258 - provide-maven-settings:
259 global-settings-file: 'global-settings'
260 settings-file: '{mvn-settings}'
263 properties-file: version.properties
265 - shell: !include-raw-escape: include-update-pom-versions.sh
268 maven-version: '{maven-version}'
271 - '{maven-deploy-properties}'
272 settings: '{mvn-settings}'
274 global-settings: 'global-settings'
275 global-settings-type: cfp
281 maven-version: '{maven-version}'
284 # Job template for verifying a submission. triggered on
285 # gerrit-trigger-patch-submitted,
286 # does scm 2 repos, mvn with passed-in goals, then run script
288 # Required Variables:
290 # script: build script to execute
291 # extra-project: extra gerrit project to checkout
292 # extra-refspec: refspec for the extra project
293 # extra-branch: branch to checkout for the extra project
294 # checkout-dir: directory to checkout the extra project to
295 # DO NOT SET THIS TO anything that translates to
296 # $WORKSPACE as it will destroy the initial
298 # mvn-goals: space separated list of maven build goals (e.g.
299 # clean, install etc, --version for noop)
301 name: '{project-name}-{stream}-verify-2scm-mvn-script'
303 project-type: freestyle
305 node: 'ubuntu1604-docker-8c-8g'
309 build-days-to-keep: '{build-days-to-keep}'
315 refspec: 'refs/heads/{branch}'
316 artifacts: '{archive-artifacts}'
318 maven-version: '{maven-version}'
321 - gerrit-trigger-scm:
322 refspec: '$GERRIT_REFSPEC'
323 choosing-strategy: 'gerrit'
325 project: '{extra-project}'
326 refspec: '{extra-refspec}'
327 branch: '{extra-branch}'
328 checkout-dir: '{checkout-dir}'
332 build-timeout: '{build-timeout}'
335 - gerrit-trigger-patch-submitted:
336 server: '{server-name}'
342 - provide-maven-settings:
343 global-settings-file: 'global-settings'
344 settings-file: '{mvn-settings}'
346 maven-version: '{maven-version}'
348 settings: '{mvn-settings}'
350 global-settings: 'global-settings'
351 global-settings-type: cfp
357 maven-version: '{maven-version}'
360 # Job template for merged submission. triggered on
361 # gerrit-trigger-patch-merged,does scm of 2 repos, mvn with passed in
362 # goals, then run script
364 # Required Variables:
366 # script: build script to execute
367 # extra-project: extra gerrit project to checkout
368 # extra-refspec: refspec for the extra project
369 # extra-branch: branch to checkout for the extra project
370 # checkout-dir: directory to checkout the extra project to
371 # DO NOT SET THIS TO anything that translates to
372 # $WORKSPACE as it will destroy the initial
374 # mvn-goals: space separated list of maven build goals (--version
375 # for noop, clean deploy for mvn project)
377 name: '{project-name}-{stream}-merge-2scm-mvn-script'
379 project-type: freestyle
381 node: 'ubuntu1604-docker-8c-8g'
385 build-days-to-keep: '{build-days-to-keep}'
391 refspec: 'refs/heads/{branch}'
392 artifacts: '{archive-artifacts}'
394 maven-version: '{maven-version}'
397 - gerrit-trigger-scm:
399 choosing-strategy: 'default'
401 project: '{extra-project}'
402 refspec: '{extra-refspec}'
403 branch: '{extra-branch}'
404 checkout-dir: '{checkout-dir}'
408 build-timeout: '{build-timeout}'
411 - gerrit-trigger-patch-merged:
412 server: '{server-name}'
418 - provide-maven-settings:
419 global-settings-file: 'global-settings'
420 settings-file: '{mvn-settings}'
422 maven-version: '{maven-version}'
424 settings: '{mvn-settings}'
426 global-settings: 'global-settings'
427 global-settings-type: cfp
433 maven-version: '{maven-version}'
436 # Job template for merged submission. triggered on
437 # gerrit-trigger-patch-merged, does scm x2, mvn with passed-in goals,
440 # Required Variables:
442 # script: build script to execute
443 # extra-project: extra gerrit project to checkout
444 # extra-refspec: refspec for the extra project
445 # extra-branch: branch to checkout for the extra project
446 # checkout-dir: directory to checkout the extra project to
447 # DO NOT SET THIS TO anything that translates to
448 # $WORKSPACE as it will destroy the initial
450 # mvn-goals: space separated list of maven build goals (--version
451 # for noop, clean deploy for mvn project)
452 # mvn-goals-versioning: space separated list of maven build goals
453 # (--version for no op, clean deploy for mvn project)
455 name: '{project-name}-{stream}-daily-release-2scm-mvn-script'
457 project-type: freestyle
458 node: 'ubuntu1604-docker-8c-8g'
462 build-days-to-keep: '{build-days-to-keep}'
468 refspec: 'refs/heads/{branch}'
469 artifacts: '{archive-artifacts}'
471 maven-version: '{maven-version}'
474 - gerrit-trigger-scm:
476 choosing-strategy: 'default'
478 project: '{extra-project}'
479 refspec: '{extra-refspec}'
480 branch: '{extra-branch}'
481 checkout-dir: '{checkout-dir}'
485 build-timeout: '{build-timeout}'
488 - timed: 'H 11 * * *'
489 - gerrit-trigger-release-manually:
490 server: '{server-name}'
495 - provide-maven-settings:
496 global-settings-file: 'global-settings'
497 settings-file: '{mvn-settings}'
499 properties-file: version.properties
501 maven-version: '{maven-version}'
502 goals: '{mvn-goals-versioning}'
504 - 'newVersion=${{release_version}}'
505 settings: '{mvn-settings}'
507 global-settings: 'global-settings'
508 global-settings-type: cfp
511 maven-version: '{maven-version}'
513 settings: '{mvn-settings}'
515 global-settings: 'global-settings'
516 global-settings-type: cfp
522 maven-version: '{maven-version}'
525 # Job template for basic scm and script trigger
527 # Required Variables:
529 # build-node: what build node to run on
530 # script: build script to execute
532 name: '{project-name}-{stream}-verify-script'
534 project-type: freestyle
540 build-days-to-keep: '{build-days-to-keep}'
546 refspec: 'refs/heads/{branch}'
547 artifacts: '{archive-artifacts}'
549 maven-version: '{maven-version}'
552 - gerrit-trigger-scm:
553 refspec: '$GERRIT_REFSPEC'
554 choosing-strategy: 'gerrit'
558 build-timeout: '{build-timeout}'
561 - gerrit-trigger-patch-submitted:
562 server: '{server-name}'
568 - provide-maven-settings:
569 global-settings-file: 'global-settings'
570 settings-file: '{mvn-settings}'
571 # make sure maven gets installed / setup
573 maven-version: '{maven-version}'
575 settings: '{mvn-settings}'
577 global-settings: 'global-settings'
578 global-settings-type: cfp
583 maven-version: '{maven-version}'
586 # Job template for 2 scm and script trigger
588 # Required Variables:
590 # build-node: what build node to run on
591 # script: build script to execute
592 # extra-project: extra gerrit project to checkout
593 # extra-refspec: refspec for the extra project
594 # extra-branch: branch to checkout for the extra project
595 # checkout-dir: directory to checkout the extra project to
596 # DO NOT SET THIS TO anything that translates to
597 # $WORKSPACE as it will destroy the initial
600 name: '{project-name}-{stream}-two-scm-verify-script'
602 project-type: freestyle
608 build-days-to-keep: '{build-days-to-keep}'
614 refspec: 'refs/heads/{branch}'
615 artifacts: '{archive-artifacts}'
617 maven-version: '{maven-version}'
620 - gerrit-trigger-scm:
621 refspec: '$GERRIT_REFSPEC'
622 choosing-strategy: 'gerrit'
624 project: '{extra-project}'
625 refspec: '{extra-refspec}'
626 branch: '{extra-branch}'
627 checkout-dir: '{checkout-dir}'
631 build-timeout: '{build-timeout}'
634 - gerrit-trigger-patch-submitted:
635 server: '{server-name}'
641 - provide-maven-settings:
642 global-settings-file: 'global-settings'
643 settings-file: '{mvn-settings}'
644 # make sure maven gets installed / setup
646 maven-version: '{maven-version}'
648 settings: '{mvn-settings}'
650 global-settings: 'global-settings'
651 global-settings-type: cfp
656 maven-version: '{maven-version}'
660 # Job template for 3 scm and script trigger
662 # Required Variables:
664 # build-node: what build node to run on
665 # script: build script to execute
666 # extra-project1: extra gerrit project to checkout
667 # extra-refspec1: refspec for the extra project
668 # extra-branch1: branch to checkout for the extra project
669 # checkout-dir1: directory to checkout the extra project to
670 # DO NOT SET THIS TO anything that translates to
671 # $WORKSPACE as it will destroy the initial
673 # extra-project2: extra gerrit project to checkout
674 # extra-refspec2: refspec for the extra project
675 # extra-branch2: branch to checkout for the extra project
676 # checkout-dir2: directory to checkout the extra project to
677 # DO NOT SET THIS TO anything that translates to
678 # $WORKSPACE as it will destroy the initial
680 name: '{project-name}-{stream}-three-scm-verify-script'
682 project-type: freestyle
688 build-days-to-keep: '{build-days-to-keep}'
694 refspec: 'refs/heads/{branch}'
695 artifacts: '{archive-artifacts}'
697 maven-version: '{maven-version}'
699 - gerrit-trigger-scm:
700 refspec: '$GERRIT_REFSPEC'
701 choosing-strategy: 'gerrit'
703 project: '{extra-project1}'
704 refspec: '{extra-refspec1}'
705 branch: '{extra-branch1}'
706 checkout-dir: '{checkout-dir1}'
708 project: '{extra-project2}'
709 refspec: '{extra-refspec2}'
710 branch: '{extra-branch2}'
711 checkout-dir: '{checkout-dir2}'
715 build-timeout: '{build-timeout}'
718 - gerrit-trigger-patch-submitted:
719 server: '{server-name}'
725 - provide-maven-settings:
726 global-settings-file: 'global-settings'
727 settings-file: '{mvn-settings}'
728 # make sure maven gets installed / setup
730 maven-version: '{maven-version}'
732 settings: '{mvn-settings}'
734 global-settings: 'global-settings'
735 global-settings-type: cfp
740 maven-version: '{maven-version}'
742 # vim: sw=2 ts=2 sts=2 et :
745 # Job template for scm and script trigger - for docker merge
747 # Required Variables:
749 # build-node: what build node to run on
750 # script: build script to execute
752 name: '{project-name}-{stream}-merge-docker-script'
754 project-type: freestyle
760 build-days-to-keep: '{build-days-to-keep}'
766 refspec: 'refs/heads/{branch}'
767 artifacts: '{archive-artifacts}'
769 maven-version: '{maven-version}'
772 - gerrit-trigger-scm:
774 choosing-strategy: 'default'
776 project: '{extra-project1}'
777 refspec: '{extra-refspec1}'
778 branch: '{extra-branch1}'
779 checkout-dir: '{checkout-dir1}'
781 project: '{extra-project2}'
782 refspec: '{extra-refspec2}'
783 branch: '{extra-branch2}'
784 checkout-dir: '{checkout-dir2}'
788 build-timeout: '{build-timeout}'
791 - gerrit-trigger-patch-merged:
792 server: '{server-name}'
798 - provide-maven-settings:
799 global-settings-file: 'global-settings'
800 settings-file: '{mvn-settings}'
802 # make sure maven gets installed / setup
804 maven-version: '{maven-version}'
806 settings: '{mvn-settings}'
808 global-settings: 'global-settings'
809 global-settings-type: cfp
814 maven-version: '{maven-version}'
817 # Job template for scm and script trigger - for docker daily release
819 # Required Variables:
821 # build-node: what build node to run on
822 # script: build script to execute
824 name: '{project-name}-{stream}-release-docker-script-manual'
826 project-type: freestyle
832 build-days-to-keep: '{build-days-to-keep}'
838 refspec: 'refs/heads/{branch}'
839 artifacts: '{archive-artifacts}'
841 maven-version: '{maven-version}'
844 - gerrit-trigger-scm:
846 choosing-strategy: 'default'
848 project: '{extra-project1}'
849 refspec: '{extra-refspec1}'
850 branch: '{extra-branch1}'
851 checkout-dir: '{checkout-dir1}'
853 project: '{extra-project2}'
854 refspec: '{extra-refspec2}'
855 branch: '{extra-branch2}'
856 checkout-dir: '{checkout-dir2}'
860 build-timeout: '{build-timeout}'
863 - gerrit-trigger-release-manually:
864 server: '{server-name}'
869 - provide-maven-settings:
870 global-settings-file: 'global-settings'
871 settings-file: '{mvn-settings}'
873 # make sure maven gets installed / setup
875 maven-version: '{maven-version}'
877 settings: '{mvn-settings}'
879 global-settings: 'global-settings'
880 global-settings-type: cfp
885 maven-version: '{maven-version}'
888 # 1. PULL the desired image
889 # 2. TAG it to the desired release name
890 # 3. PUSH the newly tagged image on release repo
892 name: '{project-name}-docker-image-blessing'
894 project-type: freestyle
896 node: 'ubuntu1604-docker-8c-8g'
901 description: "x VERSION of the STAGING image to bless into this RELEASE VERSION
905 description: "y VERSION of the STAGING image to bless into this RELEASE VERSION
909 description: "z VERSION of the RELEASE VERSION
917 build-days-to-keep: '{build-days-to-keep}'
921 build-timeout: '{build-timeout}'
924 - provide-maven-settings:
925 global-settings-file: 'global-settings'
926 settings-file: '{mvn-settings}'
928 - shell: !include-raw: include-docker-blessing.sh
932 maven-version: '{maven-version}'