blob: 1d8b9a9b91125ec09e5659c6038e5a4ba4eef87e [file] [log] [blame]
Andrew Grimbergebc710a2017-01-30 12:59:38 -08001---
2- job-template:
3 # Job template for Java verify jobs
4 #
5 # The purpose of this job template is to run "maven clean install" for
6 # projects using this template.
7 #
8 # Required Variables:
9 # branch: git branch (eg. stable/lithium or master)
10
Andrew Grimbergce2286c2017-01-31 05:50:39 -080011 name: '{project-name}-{stream}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080012
13 project-type: freestyle
14 concurrent: true
15 node: '{build-node}'
16
17 properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080018 - ecomp-infra-properties:
19 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080020
21 parameters:
22 - ecomp-infra-parameters:
23 project: '{project}'
24 branch: '{branch}'
25 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080026 artifacts: '{archive-artifacts}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080027
28 scm:
29 - gerrit-trigger-scm:
30 refspec: '$GERRIT_REFSPEC'
31 choosing-strategy: 'gerrit'
32
33 wrappers:
34 - ecomp-infra-wrappers:
35 build-timeout: '{build-timeout}'
36
37 triggers:
38 - gerrit-trigger-patch-submitted:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080039 server: '{server-name}'
40 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080041 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080042 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080043
44 builders:
45 - provide-maven-settings:
46 global-settings-file: 'global-settings'
47 settings-file: '{mvn-settings}'
48 - maven-target:
49 maven-version: 'mvn33'
50 goals: 'clean install'
51 settings: '{mvn-settings}'
52 settings-type: cfp
53 global-settings: 'global-settings'
54 global-settings-type: cfp
55
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -080056# publishers:
57# - ecomp-infra-shiplogs:
58# maven-version: 'mvn33'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080059
60- job-template:
61 # Job template for Java verify jobs with POM not at the root
62 #
63 # The purpose of this job template is to run "maven clean install" for
64 # projects using this template.
65 #
66 # Required Variables:
67 # branch: git branch (eg. stable/lithium or master)
68 # pom: name/location of the pom.xml file relative to the workspace
69 # pattern: ant file-path pattern relative to the workspace used to
70 # trigger the job
71
Andrew Grimbergce2286c2017-01-31 05:50:39 -080072 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080073
74 project-type: freestyle
75 concurrent: true
76 node: '{build-node}'
77
78 properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080079 - ecomp-infra-properties:
80 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080081
82 parameters:
83 - ecomp-infra-parameters:
84 project: '{project}'
85 branch: '{branch}'
86 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080087 artifacts: '{archive-artifacts}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080088
89 scm:
90 - gerrit-trigger-scm:
91 refspec: '$GERRIT_REFSPEC'
92 choosing-strategy: 'gerrit'
93
94 wrappers:
95 - ecomp-infra-wrappers:
96 build-timeout: '{build-timeout}'
97
98 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080099 - gerrit-trigger-patch-submitted:
100 server: '{server-name}'
101 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800102 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800103 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800104
105 builders:
106 - provide-maven-settings:
107 global-settings-file: 'global-settings'
108 settings-file: '{mvn-settings}'
109 - maven-target:
110 maven-version: 'mvn33'
111 pom: '{pom}'
112 goals: 'clean install'
113 settings: '{mvn-settings}'
114 settings-type: cfp
115 global-settings: 'global-settings'
116 global-settings-type: cfp
117
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800118# publishers:
119# - ecomp-infra-shiplogs:
120# maven-version: 'mvn33'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800121
122- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100123 # Job template for Java daily release jobs
124 #
125 # The purpose of this job template is to run "maven version && maven clean deploy" for
126 # projects using this template.
127 #
128 # Required Variables:
129 # branch: git branch (eg. stable/lithium or master)
130 name: '{project-name}-{stream}-release-java-daily'
131
132 project-type: freestyle
133 node: '{build-node}'
134 maven-deploy-properties:
135 properties:
136 - ecomp-infra-properties:
137 build-days-to-keep: '{build-days-to-keep}'
138
139 parameters:
140 - ecomp-infra-parameters:
141 project: '{project}'
142 branch: '{branch}'
143 refspec: 'refs/heads/{branch}'
144 artifacts: '{archive-artifacts}'
145
146 scm:
147 - gerrit-trigger-scm:
148 refspec: ''
149 choosing-strategy: 'default'
150
151 wrappers:
152 - ecomp-infra-wrappers:
153 build-timeout: '{build-timeout}'
154
155 triggers:
156 # 11 AM UTC
157 - timed: 'H 11 * * *'
158
159 builders:
160 - provide-maven-settings:
161 global-settings-file: 'global-settings'
162 settings-file: '{mvn-settings}'
163
164 - inject:
165 properties-file: version.properties
166 - maven-target:
167 maven-version: 'mvn33'
168 goals: 'versions:set versions:update-child-modules versions:commit'
169 properties:
170 - 'newVersion=${{release_version}}'
171 settings: '{mvn-settings}'
172 settings-type: cfp
173 global-settings: 'global-settings'
174 global-settings-type: cfp
175
176 - maven-target:
177 maven-version: 'mvn33'
178 goals: 'clean deploy'
179 properties: '{maven-deploy-properties}'
180 settings: '{mvn-settings}'
181 settings-type: cfp
182 global-settings: 'global-settings'
183 global-settings-type: cfp
184
185- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800186 # Job template for Java merge jobs
187 #
188 # The purpose of this job template is to run "maven clean deploy" for
189 # projects using this template.
190 #
191 # Required Variables:
192 # branch: git branch (eg. stable/lithium or master)
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800193 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800194
195 project-type: freestyle
196 node: '{build-node}'
197
198 properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800199 - ecomp-infra-properties:
200 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800201
202 parameters:
203 - ecomp-infra-parameters:
204 project: '{project}'
205 branch: '{branch}'
206 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800207 artifacts: '{archive-artifacts}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800208
209 scm:
210 - gerrit-trigger-scm:
211 refspec: ''
212 choosing-strategy: 'default'
213
214 wrappers:
215 - ecomp-infra-wrappers:
216 build-timeout: '{build-timeout}'
217
218 triggers:
219 - gerrit-trigger-patch-merged:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800220 server: '{server-name}'
221 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800222 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800223 files: '**'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800224
225 builders:
226 - provide-maven-settings:
227 global-settings-file: 'global-settings'
228 settings-file: '{mvn-settings}'
229 - maven-target:
230 maven-version: 'mvn33'
231 # yamllint disable rule:line-length
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800232 goals: 'clean deploy'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800233 # yamllint enable
234 settings: '{mvn-settings}'
235 settings-type: cfp
236 global-settings: 'global-settings'
237 global-settings-type: cfp
238
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800239# publishers:
240# - ecomp-infra-shiplogs:
241# maven-version: 'mvn33'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800242
243- job-template:
244 # Job template for Java merge jobs with POM not at the root
245 #
246 # The purpose of this job template is to run "maven clean deploy" for
247 # projects using this template.
248 #
249 # Required Variables:
250 # branch: git branch (eg. stable/lithium or master)
251 # pom: name/location of the pom.xml file relative to the workspace
252 # pattern: ant file-path pattern relative to the workspace used to
253 # trigger the job
254
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800255 name: '{project-name}-{stream}-{subproject}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800256
257 project-type: freestyle
258 node: '{build-node}'
259
260 properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800261 - ecomp-infra-properties:
262 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800263
264 parameters:
265 - ecomp-infra-parameters:
266 project: '{project}'
267 branch: '{branch}'
268 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800269 artifacts: '{archive-artifacts}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800270
271 scm:
272 - gerrit-trigger-scm:
273 refspec: ''
274 choosing-strategy: 'default'
275
276 wrappers:
277 - ecomp-infra-wrappers:
278 build-timeout: '{build-timeout}'
279
280 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800281 - gerrit-trigger-patch-merged:
282 server: '{server-name}'
283 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800284 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800285 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800286
287 builders:
288 - provide-maven-settings:
289 global-settings-file: 'global-settings'
290 settings-file: '{mvn-settings}'
291 - maven-target:
292 maven-version: 'mvn33'
293 pom: '{pom}'
294 # yamllint disable rule:line-length
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800295 goals: 'clean deploy'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800296 # yamllint enable
297 settings: '{mvn-settings}'
298 settings-type: cfp
299 global-settings: 'global-settings'
300 global-settings-type: cfp
301
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -0800302# publishers:
303# - ecomp-infra-shiplogs:
304# maven-version: 'mvn33'