Update yaml to use the only docker node defined
[ci-management.git] / jjb / global-templates-script.yaml
1 ---
2 # vim: sw=2 ts=2 sts=2 et :
3
4
5 - job-template:
6     # Job template for verifying a submission.  triggered on
7     # gerrit-trigger-patch-submitted, does scm, mvn with passed in goals,
8     # then run script
9     #
10     # Required Variables:
11     #   branch:         git branch
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'
17
18     project-type: freestyle
19     concurrent: true
20     node: 'ubuntu1604-docker-8c-8g'
21
22     properties:
23       - ecomp-infra-properties:
24           build-days-to-keep: '{build-days-to-keep}'
25
26     parameters:
27       - ecomp-infra-parameters:
28           project: '{project}'
29           branch: '{branch}'
30           refspec: 'refs/heads/{branch}'
31           artifacts: '{archive-artifacts}'
32       - maven-exec:
33           maven-version: '{maven-version}'
34
35     scm:
36       - gerrit-trigger-scm:
37           refspec: '$GERRIT_REFSPEC'
38           choosing-strategy: 'gerrit'
39
40     wrappers:
41       - ecomp-infra-wrappers:
42           build-timeout: '{build-timeout}'
43
44     triggers:
45       - gerrit-trigger-patch-submitted:
46           server: '{server-name}'
47           project: '{project}'
48           branch: '{branch}'
49           files: '**'
50
51     builders:
52       - provide-maven-settings:
53           global-settings-file: 'global-settings'
54           settings-file: '{mvn-settings}'
55       - maven-target:
56           maven-version: '{maven-version}'
57           goals: '{mvn-goals}'
58           settings: '{mvn-settings}'
59           settings-type: cfp
60           global-settings: 'global-settings'
61           global-settings-type: cfp
62       - docker-login
63       - shell: '{script}'
64
65
66 - job-template:
67     # Job template for merging a submission.  triggered on
68     # gerrit-trigger-patch-merged, does scm, mvn with passed-in goals, then
69     # run script
70     # Required Variables:
71     #   branch:         git branch
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'
77
78     project-type: freestyle
79     node: 'ubuntu1604-docker-8c-8g'
80
81     properties:
82       - ecomp-infra-properties:
83           build-days-to-keep: '{build-days-to-keep}'
84
85     parameters:
86       - ecomp-infra-parameters:
87           project: '{project}'
88           branch: '{branch}'
89           refspec: 'refs/heads/{branch}'
90           artifacts: '{archive-artifacts}'
91       - maven-exec:
92           maven-version: '{maven-version}'
93
94     scm:
95       - gerrit-trigger-scm:
96           refspec: ''
97           choosing-strategy: 'default'
98
99     wrappers:
100       - ecomp-infra-wrappers:
101           build-timeout: '{build-timeout}'
102
103     triggers:
104       - gerrit-trigger-patch-merged:
105           server: '{server-name}'
106           project: '{project}'
107           branch: '{branch}'
108           files: '**'
109
110     builders:
111       - provide-maven-settings:
112           global-settings-file: 'global-settings'
113           settings-file: '{mvn-settings}'
114       - maven-target:
115           maven-version: '{maven-version}'
116           goals: '{mvn-goals}'
117           settings: '{mvn-settings}'
118           settings-type: cfp
119           global-settings: 'global-settings'
120           global-settings-type: cfp
121       - docker-login
122       - shell: '{script}'
123
124
125 - job-template:
126     # Job template for daily-release a submission.  triggered on timer, does
127     # scm mvn with passed-in goals, then run script
128     #
129     # Required Variables:
130     #   branch:         git branch
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'
138
139     project-type: freestyle
140     concurrent: true
141     node: 'ubuntu1604-docker-8c-8g'
142
143     properties:
144       - ecomp-infra-properties:
145           build-days-to-keep: '{build-days-to-keep}'
146
147     parameters:
148       - ecomp-infra-parameters:
149           project: '{project}'
150           branch: '{branch}'
151           refspec: 'refs/heads/{branch}'
152           artifacts: '{archive-artifacts}'
153       - maven-exec:
154           maven-version: '{maven-version}'
155
156     scm:
157       - gerrit-trigger-scm:
158           refspec: ''
159           choosing-strategy: 'default'
160
161     wrappers:
162       - ecomp-infra-wrappers:
163           build-timeout: '{build-timeout}'
164
165     triggers:
166       # 11 AM UTC
167       - timed: 'H 11 * * *'
168       - gerrit-trigger-release-manually:
169           server: '{server-name}'
170           project: '{project}'
171           branch: '{branch}'
172
173     builders:
174       - provide-maven-settings:
175           global-settings-file: 'global-settings'
176           settings-file: '{mvn-settings}'
177       - inject:
178           properties-file: version.properties
179       - maven-target:
180           maven-version: '{maven-version}'
181           goals: '{mvn-goals-versioning}'
182           properties:
183             - 'newVersion=${{release_version}}'
184           settings: '{mvn-settings}'
185           settings-type: cfp
186           global-settings: 'global-settings'
187           global-settings-type: cfp
188
189       - maven-target:
190           maven-version: '{maven-version}'
191           goals: '{mvn-goals}'
192           properties:
193             - '{maven-deploy-properties}'
194           settings: '{mvn-settings}'
195           settings-type: cfp
196           global-settings: 'global-settings'
197           global-settings-type: cfp
198       - docker-login
199       - shell: '{script}'
200
201 - job-template:
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
205     #
206     # Required Variables:
207     #   branch:         git branch
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'
212
213     project-type: freestyle
214     concurrent: true
215     node: 'ubuntu1604-docker-8c-8g'
216
217     properties:
218       - ecomp-infra-properties:
219           build-days-to-keep: '{build-days-to-keep}'
220
221     parameters:
222       - ecomp-infra-parameters:
223           project: '{project}'
224           branch: '{branch}'
225           refspec: 'refs/heads/{branch}'
226           artifacts: '{archive-artifacts}'
227       - maven-exec:
228           maven-version: '{maven-version}'
229
230     scm:
231       - gerrit-trigger-scm:
232           refspec: ''
233           choosing-strategy: 'default'
234
235     wrappers:
236       - ecomp-infra-wrappers:
237           build-timeout: '{build-timeout}'
238
239     triggers:
240       # 11 AM UTC
241       - timed: 'H 11 * * *'
242       - gerrit-trigger-release-manually:
243           server: '{server-name}'
244           project: '{project}'
245           branch: '{branch}'
246
247     builders:
248       - provide-maven-settings:
249           global-settings-file: 'global-settings'
250           settings-file: '{mvn-settings}'
251
252       - inject:
253           properties-file: version.properties
254
255       - shell: !include-raw-escape: include-update-pom-versions.sh
256
257       - maven-target:
258           maven-version: '{maven-version}'
259           goals: '{mvn-goals}'
260           properties:
261             - '{maven-deploy-properties}'
262           settings: '{mvn-settings}'
263           settings-type: cfp
264           global-settings: 'global-settings'
265           global-settings-type: cfp
266       - docker-login
267       - shell: '{script}'
268
269
270
271 - job-template:
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
275     #
276     # Required Variables:
277     #   branch:         git branch
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
285     #                     project checkout
286     #   mvn-goals:      space separated list of maven build goals (e.g.
287     #                   clean, install etc,  --version for noop)
288
289     name: '{project-name}-{stream}-verify-2scm-mvn-script'
290
291     project-type: freestyle
292     concurrent: true
293     node: 'ubuntu1604-docker-8c-8g'
294
295     properties:
296       - ecomp-infra-properties:
297           build-days-to-keep: '{build-days-to-keep}'
298
299     parameters:
300       - ecomp-infra-parameters:
301           project: '{project}'
302           branch: '{branch}'
303           refspec: 'refs/heads/{branch}'
304           artifacts: '{archive-artifacts}'
305       - maven-exec:
306           maven-version: '{maven-version}'
307
308     scm:
309       - gerrit-trigger-scm:
310           refspec: '$GERRIT_REFSPEC'
311           choosing-strategy: 'gerrit'
312       - git-extra-project:
313           project: '{extra-project}'
314           refspec: '{extra-refspec}'
315           branch: '{extra-branch}'
316           checkout-dir: '{checkout-dir}'
317
318     wrappers:
319       - ecomp-infra-wrappers:
320           build-timeout: '{build-timeout}'
321
322     triggers:
323       - gerrit-trigger-patch-submitted:
324           server: '{server-name}'
325           project: '{project}'
326           branch: '{branch}'
327           files: '**'
328
329     builders:
330       - provide-maven-settings:
331           global-settings-file: 'global-settings'
332           settings-file: '{mvn-settings}'
333       - maven-target:
334           maven-version: '{maven-version}'
335           goals: '{mvn-goals}'
336           settings: '{mvn-settings}'
337           settings-type: cfp
338           global-settings: 'global-settings'
339           global-settings-type: cfp
340       - docker-login
341       - shell: '{script}'
342
343
344 - job-template:
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
348     #
349     # Required Variables:
350     #   branch:         git branch
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
358     #                     project checkout
359     #   mvn-goals:      space separated list of maven build goals (--version
360     #                   for noop, clean deploy for mvn project)
361
362     name: '{project-name}-{stream}-merge-2scm-mvn-script'
363
364     project-type: freestyle
365     concurrent: true
366     node: 'ubuntu1604-docker-8c-8g'
367
368     properties:
369       - ecomp-infra-properties:
370           build-days-to-keep: '{build-days-to-keep}'
371
372     parameters:
373       - ecomp-infra-parameters:
374           project: '{project}'
375           branch: '{branch}'
376           refspec: 'refs/heads/{branch}'
377           artifacts: '{archive-artifacts}'
378       - maven-exec:
379           maven-version: '{maven-version}'
380
381     scm:
382       - gerrit-trigger-scm:
383           refspec: ''
384           choosing-strategy: 'default'
385       - git-extra-project:
386           project: '{extra-project}'
387           refspec: '{extra-refspec}'
388           branch: '{extra-branch}'
389           checkout-dir: '{checkout-dir}'
390
391     wrappers:
392       - ecomp-infra-wrappers:
393           build-timeout: '{build-timeout}'
394
395     triggers:
396       - gerrit-trigger-patch-merged:
397           server: '{server-name}'
398           project: '{project}'
399           branch: '{branch}'
400           files: '**'
401
402     builders:
403       - provide-maven-settings:
404           global-settings-file: 'global-settings'
405           settings-file: '{mvn-settings}'
406       - maven-target:
407           maven-version: '{maven-version}'
408           goals: '{mvn-goals}'
409           settings: '{mvn-settings}'
410           settings-type: cfp
411           global-settings: 'global-settings'
412           global-settings-type: cfp
413       - docker-login
414       - shell: '{script}'
415
416
417 - job-template:
418     # Job template for merged submission.  triggered on
419     # gerrit-trigger-patch-merged, does scm x2, mvn with passed-in goals,
420     # then run script
421     #
422     # Required Variables:
423     #   branch:         git branch
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
431     #                     project checkout
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)
436
437     name: '{project-name}-{stream}-daily-release-2scm-mvn-script'
438
439     project-type: freestyle
440     node: 'ubuntu1604-docker-8c-8g'
441
442     properties:
443       - ecomp-infra-properties:
444           build-days-to-keep: '{build-days-to-keep}'
445
446     parameters:
447       - ecomp-infra-parameters:
448           project: '{project}'
449           branch: '{branch}'
450           refspec: 'refs/heads/{branch}'
451           artifacts: '{archive-artifacts}'
452       - maven-exec:
453           maven-version: '{maven-version}'
454
455     scm:
456       - gerrit-trigger-scm:
457           refspec: ''
458           choosing-strategy: 'default'
459       - git-extra-project:
460           project: '{extra-project}'
461           refspec: '{extra-refspec}'
462           branch: '{extra-branch}'
463           checkout-dir: '{checkout-dir}'
464
465     wrappers:
466       - ecomp-infra-wrappers:
467           build-timeout: '{build-timeout}'
468
469     triggers:
470       - timed: 'H 11 * * *'
471       - gerrit-trigger-release-manually:
472           server: '{server-name}'
473           project: '{project}'
474           branch: '{branch}'
475
476     builders:
477       - provide-maven-settings:
478           global-settings-file: 'global-settings'
479           settings-file: '{mvn-settings}'
480       - inject:
481           properties-file: version.properties
482       - maven-target:
483           maven-version: '{maven-version}'
484           goals: '{mvn-goals-versioning}'
485           properties:
486             - 'newVersion=${{release_version}}'
487           settings: '{mvn-settings}'
488           settings-type: cfp
489           global-settings: 'global-settings'
490           global-settings-type: cfp
491
492       - maven-target:
493           maven-version: '{maven-version}'
494           goals: '{mvn-goals}'
495           settings: '{mvn-settings}'
496           settings-type: cfp
497           global-settings: 'global-settings'
498           global-settings-type: cfp
499       - docker-login
500       - shell: '{script}'
501
502
503 - job-template:
504     # Job template for basic scm and script trigger
505     #
506     # Required Variables:
507     #   branch:         git branch
508     #   build-node:     what build node to run on
509     #   script:         build script to execute
510
511     name: '{project-name}-{stream}-verify-script'
512
513     project-type: freestyle
514     concurrent: true
515     node: '{build-node}'
516
517     properties:
518       - ecomp-infra-properties:
519           build-days-to-keep: '{build-days-to-keep}'
520
521     parameters:
522       - ecomp-infra-parameters:
523           project: '{project}'
524           branch: '{branch}'
525           refspec: 'refs/heads/{branch}'
526           artifacts: '{archive-artifacts}'
527       - maven-exec:
528           maven-version: '{maven-version}'
529
530     scm:
531       - gerrit-trigger-scm:
532           refspec: '$GERRIT_REFSPEC'
533           choosing-strategy: 'gerrit'
534
535     wrappers:
536       - ecomp-infra-wrappers:
537           build-timeout: '{build-timeout}'
538
539     triggers:
540       - gerrit-trigger-patch-submitted:
541           server: '{server-name}'
542           project: '{project}'
543           branch: '{branch}'
544           files: '**'
545
546     builders:
547       - provide-maven-settings:
548           global-settings-file: 'global-settings'
549           settings-file: '{mvn-settings}'
550       # make sure maven gets installed / setup
551       - maven-target:
552           maven-version: '{maven-version}'
553           goals: '--version'
554           settings: '{mvn-settings}'
555           settings-type: cfp
556           global-settings: 'global-settings'
557           global-settings-type: cfp
558       - shell: '{script}'
559
560 #    publishers:
561 #      - ecomp-infra-shiplogs:
562 #          maven-version: '{maven-version}'
563
564 - job-template:
565     # Job template for 2 scm and script trigger
566     #
567     # Required Variables:
568     #   branch:         git branch
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
577     #                     project checkout
578
579     name: '{project-name}-{stream}-two-scm-verify-script'
580
581     project-type: freestyle
582     concurrent: true
583     node: '{build-node}'
584
585     properties:
586       - ecomp-infra-properties:
587           build-days-to-keep: '{build-days-to-keep}'
588
589     parameters:
590       - ecomp-infra-parameters:
591           project: '{project}'
592           branch: '{branch}'
593           refspec: 'refs/heads/{branch}'
594           artifacts: '{archive-artifacts}'
595       - maven-exec:
596           maven-version: '{maven-version}'
597
598     scm:
599       - gerrit-trigger-scm:
600           refspec: '$GERRIT_REFSPEC'
601           choosing-strategy: 'gerrit'
602       - git-extra-project:
603           project: '{extra-project}'
604           refspec: '{extra-refspec}'
605           branch: '{extra-branch}'
606           checkout-dir: '{checkout-dir}'
607
608     wrappers:
609       - ecomp-infra-wrappers:
610           build-timeout: '{build-timeout}'
611
612     triggers:
613       - gerrit-trigger-patch-submitted:
614           server: '{server-name}'
615           project: '{project}'
616           branch: '{branch}'
617           files: '**'
618
619     builders:
620       - provide-maven-settings:
621           global-settings-file: 'global-settings'
622           settings-file: '{mvn-settings}'
623       # make sure maven gets installed / setup
624       - maven-target:
625           maven-version: '{maven-version}'
626           goals: '--version'
627           settings: '{mvn-settings}'
628           settings-type: cfp
629           global-settings: 'global-settings'
630           global-settings-type: cfp
631       - shell: '{script}'
632
633 #    publishers:
634 #      - ecomp-infra-shiplogs:
635 #          maven-version: '{maven-version}'
636
637
638 - job-template:
639     # Job template for 3 scm and script trigger
640     #
641     # Required Variables:
642     #   branch:         git branch
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
651     #                     project checkout
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
658     #                     project checkout
659     name: '{project-name}-{stream}-three-scm-verify-script'
660
661     project-type: freestyle
662     concurrent: true
663     node: '{build-node}'
664
665     properties:
666       - ecomp-infra-properties:
667           build-days-to-keep: '{build-days-to-keep}'
668
669     parameters:
670       - ecomp-infra-parameters:
671           project: '{project}'
672           branch: '{branch}'
673           refspec: 'refs/heads/{branch}'
674           artifacts: '{archive-artifacts}'
675       - maven-exec:
676           maven-version: '{maven-version}'
677     scm:
678       - gerrit-trigger-scm:
679           refspec: '$GERRIT_REFSPEC'
680           choosing-strategy: 'gerrit'
681       - git-extra-project:
682           project: '{extra-project1}'
683           refspec: '{extra-refspec1}'
684           branch: '{extra-branch1}'
685           checkout-dir: '{checkout-dir1}'
686       - git-extra-project:
687           project: '{extra-project2}'
688           refspec: '{extra-refspec2}'
689           branch: '{extra-branch2}'
690           checkout-dir: '{checkout-dir2}'
691
692     wrappers:
693       - ecomp-infra-wrappers:
694           build-timeout: '{build-timeout}'
695
696     triggers:
697       - gerrit-trigger-patch-submitted:
698           server: '{server-name}'
699           project: '{project}'
700           branch: '{branch}'
701           files: '**'
702
703     builders:
704       - provide-maven-settings:
705           global-settings-file: 'global-settings'
706           settings-file: '{mvn-settings}'
707       # make sure maven gets installed / setup
708       - maven-target:
709           maven-version: '{maven-version}'
710           goals: '--version'
711           settings: '{mvn-settings}'
712           settings-type: cfp
713           global-settings: 'global-settings'
714           global-settings-type: cfp
715       - shell: '{script}'
716
717 #    publishers:
718 #      - ecomp-infra-shiplogs:
719 #          maven-version: '{maven-version}'
720
721 # vim: sw=2 ts=2 sts=2 et :
722
723 - job-template:
724     # Job template for scm and script trigger - for docker merge
725     #
726     # Required Variables:
727     #   branch:         git branch
728     #   build-node:     what build node to run on
729     #   script:         build script to execute
730
731     name: '{project-name}-{stream}-merge-docker-script'
732
733     project-type: freestyle
734     concurrent: true
735     node: '{build-node}'
736
737     properties:
738       - ecomp-infra-properties:
739           build-days-to-keep: '{build-days-to-keep}'
740
741     parameters:
742       - ecomp-infra-parameters:
743           project: '{project}'
744           branch: '{branch}'
745           refspec: 'refs/heads/{branch}'
746           artifacts: '{archive-artifacts}'
747       - maven-exec:
748           maven-version: '{maven-version}'
749
750     scm:
751       - gerrit-trigger-scm:
752           refspec: ''
753           choosing-strategy: 'default'
754       - git-extra-project:
755           project: '{extra-project1}'
756           refspec: '{extra-refspec1}'
757           branch: '{extra-branch1}'
758           checkout-dir: '{checkout-dir1}'
759       - git-extra-project:
760           project: '{extra-project2}'
761           refspec: '{extra-refspec2}'
762           branch: '{extra-branch2}'
763           checkout-dir: '{checkout-dir2}'
764
765     wrappers:
766       - ecomp-infra-wrappers:
767           build-timeout: '{build-timeout}'
768
769     triggers:
770       - gerrit-trigger-patch-merged:
771           server: '{server-name}'
772           project: '{project}'
773           branch: '{branch}'
774           files: '**'
775
776     builders:
777       - provide-maven-settings:
778           global-settings-file: 'global-settings'
779           settings-file: '{mvn-settings}'
780       - docker-login
781       # make sure maven gets installed / setup
782       - maven-target:
783           maven-version: '{maven-version}'
784           goals: '--version'
785           settings: '{mvn-settings}'
786           settings-type: cfp
787           global-settings: 'global-settings'
788           global-settings-type: cfp
789       - shell: '{script}'
790
791 #    publishers:
792 #      - ecomp-infra-shiplogs:
793 #          maven-version: '{maven-version}'
794
795 - job-template:
796     # Job template for scm and script trigger - for docker daily release
797     #
798     # Required Variables:
799     #   branch:         git branch
800     #   build-node:     what build node to run on
801     #   script:         build script to execute
802
803     name: '{project-name}-{stream}-release-docker-script-manual'
804
805     project-type: freestyle
806     concurrent: true
807     node: '{build-node}'
808
809     properties:
810       - ecomp-infra-properties:
811           build-days-to-keep: '{build-days-to-keep}'
812
813     parameters:
814       - ecomp-infra-parameters:
815           project: '{project}'
816           branch: '{branch}'
817           refspec: 'refs/heads/{branch}'
818           artifacts: '{archive-artifacts}'
819       - maven-exec:
820           maven-version: '{maven-version}'
821
822     scm:
823       - gerrit-trigger-scm:
824           refspec: ''
825           choosing-strategy: 'default'
826       - git-extra-project:
827           project: '{extra-project1}'
828           refspec: '{extra-refspec1}'
829           branch: '{extra-branch1}'
830           checkout-dir: '{checkout-dir1}'
831       - git-extra-project:
832           project: '{extra-project2}'
833           refspec: '{extra-refspec2}'
834           branch: '{extra-branch2}'
835           checkout-dir: '{checkout-dir2}'
836
837     wrappers:
838       - ecomp-infra-wrappers:
839           build-timeout: '{build-timeout}'
840
841     triggers:
842       - gerrit-trigger-release-manually:
843           server: '{server-name}'
844           project: '{project}'
845           branch: '{branch}'
846
847     builders:
848       - provide-maven-settings:
849           global-settings-file: 'global-settings'
850           settings-file: '{mvn-settings}'
851       - docker-login
852       # make sure maven gets installed / setup
853       - maven-target:
854           maven-version: '{maven-version}'
855           goals: '--version'
856           settings: '{mvn-settings}'
857           settings-type: cfp
858           global-settings: 'global-settings'
859           global-settings-type: cfp
860       - shell: '{script}'
861
862 #    publishers:
863 #      - ecomp-infra-shiplogs:
864 #          maven-version: '{maven-version}'
865
866 - job-template:
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
870
871     name: '{project-name}-docker-image-blessing'
872
873     project-type: freestyle
874     concurrent: true
875     node: 'ubuntu1604-docker-8c-8g'
876
877     parameters:
878       - string:
879           name: VERSION
880           description: "VERSION of the STAGING image to bless into this RELEASE VERSION
881             Example : 1.2.3"
882       - string:
883           name: TIMESTAMP
884           description: "TIMESTAMP of the STAGING image to pull
885             Example : 20170308T1332"
886       - string:
887           name: PROJECT
888           default: '{project}'
889
890     properties:
891       - ecomp-infra-properties:
892           build-days-to-keep: '{build-days-to-keep}'
893
894     wrappers:
895       - ecomp-infra-wrappers:
896           build-timeout: '{build-timeout}'
897
898     builders:
899       - provide-maven-settings:
900           global-settings-file: 'global-settings'
901           settings-file: '{mvn-settings}'
902       - docker-login
903       - shell: !include-raw: include-docker-blessing.sh