Add jjb files for CDAP cluster build.
[ci-management.git] / jjb / global-templates-script.yaml
1 ---
2 # vim: sw=2 ts=2 sts=2 et :
3
4 - job-template:
5     # Job template for basic scm and script trigger
6     #
7     # Required Variables:
8     #   branch:         git branch
9     #   build-node:     what build node to run on
10     #   script:         build script to execute
11
12     name: '{project-name}-{stream}-verify-script'
13
14     project-type: freestyle
15     concurrent: true
16     node: '{build-node}'
17
18     properties:
19       - ecomp-infra-properties:
20           build-days-to-keep: '{build-days-to-keep}'
21
22     parameters:
23       - ecomp-infra-parameters:
24           project: '{project}'
25           branch: '{branch}'
26           refspec: 'refs/heads/{branch}'
27           artifacts: '{archive-artifacts}'
28
29     scm:
30       - gerrit-trigger-scm:
31           refspec: '$GERRIT_REFSPEC'
32           choosing-strategy: 'gerrit'
33
34     wrappers:
35       - ecomp-infra-wrappers:
36           build-timeout: '{build-timeout}'
37
38     triggers:
39       - gerrit-trigger-patch-submitted:
40           server: '{server-name}'
41           project: '{project}'
42           branch: '{branch}'
43           files: '**'
44
45     builders:
46       - provide-maven-settings:
47           global-settings-file: 'global-settings'
48           settings-file: '{mvn-settings}'
49       # make sure maven gets installed / setup
50       - maven-target:
51           maven-version: 'mvn33'
52           goals: '--version'
53           settings: '{mvn-settings}'
54           settings-type: cfp
55           global-settings: 'global-settings'
56           global-settings-type: cfp
57       - shell: '{script}'
58
59 #    publishers:
60 #      - ecomp-infra-shiplogs:
61 #          maven-version: 'mvn33'
62
63 - job-template:
64     # Job template for 2 scm and script trigger
65     #
66     # Required Variables:
67     #   branch:         git branch
68     #   build-node:     what build node to run on
69     #   script:         build script to execute
70     #   extra-project:  extra gerrit project to checkout
71     #   extra-refspec:  refspec for the extra project
72     #   extra-branch:   branch to checkout for the extra project
73     #   checkout-dir:   directory to checkout the extra project to
74     #                     DO NOT SET THIS TO anything that translates to
75     #                     $WORKSPACE as it will destroy the initial
76     #                     project checkout
77
78     name: '{project-name}-{stream}-two-scm-verify-script'
79
80     project-type: freestyle
81     concurrent: true
82     node: '{build-node}'
83
84     properties:
85       - ecomp-infra-properties:
86           build-days-to-keep: '{build-days-to-keep}'
87
88     parameters:
89       - ecomp-infra-parameters:
90           project: '{project}'
91           branch: '{branch}'
92           refspec: 'refs/heads/{branch}'
93           artifacts: '{archive-artifacts}'
94
95     scm:
96       - gerrit-trigger-scm:
97           refspec: '$GERRIT_REFSPEC'
98           choosing-strategy: 'gerrit'
99       - git-extra-project:
100           project: '{extra-project}'
101           refspec: '{extra-refspec}'
102           branch: '{extra-branch}'
103           checkout-dir: '{checkout-dir}'
104
105     wrappers:
106       - ecomp-infra-wrappers:
107           build-timeout: '{build-timeout}'
108
109     triggers:
110       - gerrit-trigger-patch-submitted:
111           server: '{server-name}'
112           project: '{project}'
113           branch: '{branch}'
114           files: '**'
115
116     builders:
117       - provide-maven-settings:
118           global-settings-file: 'global-settings'
119           settings-file: '{mvn-settings}'
120       # make sure maven gets installed / setup
121       - maven-target:
122           maven-version: 'mvn33'
123           goals: '--version'
124           settings: '{mvn-settings}'
125           settings-type: cfp
126           global-settings: 'global-settings'
127           global-settings-type: cfp
128       - shell: '{script}'
129
130 #    publishers:
131 #      - ecomp-infra-shiplogs:
132 #          maven-version: 'mvn33'
133
134
135 - job-template:
136     # Job template for 3 scm and script trigger
137     #
138     # Required Variables:
139     #   branch:         git branch
140     #   build-node:     what build node to run on
141     #   script:         build script to execute
142     #   extra-project1:  extra gerrit project to checkout
143     #   extra-refspec1:  refspec for the extra project
144     #   extra-branch1:   branch to checkout for the extra project
145     #   checkout-dir1:   directory to checkout the extra project to
146     #                     DO NOT SET THIS TO anything that translates to
147     #                     $WORKSPACE as it will destroy the initial
148     #                     project checkout
149     #   extra-project2:  extra gerrit project to checkout
150     #   extra-refspec2:  refspec for the extra project
151     #   extra-branch2:   branch to checkout for the extra project
152     #   checkout-dir2:   directory to checkout the extra project to
153     #                     DO NOT SET THIS TO anything that translates to
154     #                     $WORKSPACE as it will destroy the initial
155     #                     project checkout
156     name: '{project-name}-{stream}-three-scm-verify-script'
157
158     project-type: freestyle
159     concurrent: true
160     node: '{build-node}'
161
162     properties:
163       - ecomp-infra-properties:
164           build-days-to-keep: '{build-days-to-keep}'
165
166     parameters:
167       - ecomp-infra-parameters:
168           project: '{project}'
169           branch: '{branch}'
170           refspec: 'refs/heads/{branch}'
171           artifacts: '{archive-artifacts}'
172
173     scm:
174       - gerrit-trigger-scm:
175           refspec: '$GERRIT_REFSPEC'
176           choosing-strategy: 'gerrit'
177       - git-extra-project:
178           project: '{extra-project1}'
179           refspec: '{extra-refspec1}'
180           branch: '{extra-branch1}'
181           checkout-dir: '{checkout-dir1}'
182       - git-extra-project:
183           project: '{extra-project2}'
184           refspec: '{extra-refspec2}'
185           branch: '{extra-branch2}'
186           checkout-dir: '{checkout-dir2}'
187
188     wrappers:
189       - ecomp-infra-wrappers:
190           build-timeout: '{build-timeout}'
191
192     triggers:
193       - gerrit-trigger-patch-submitted:
194           server: '{server-name}'
195           project: '{project}'
196           branch: '{branch}'
197           files: '**'
198
199     builders:
200       - provide-maven-settings:
201           global-settings-file: 'global-settings'
202           settings-file: '{mvn-settings}'
203       # make sure maven gets installed / setup
204       - maven-target:
205           maven-version: 'mvn33'
206           goals: '--version'
207           settings: '{mvn-settings}'
208           settings-type: cfp
209           global-settings: 'global-settings'
210           global-settings-type: cfp
211       - shell: '{script}'
212
213 #    publishers:
214 #      - ecomp-infra-shiplogs:
215 #          maven-version: 'mvn33'