blob: 8f17a257fb71e14cbfac55212f9b03dec8385c54 [file] [log] [blame]
Andrew Grimbergebc710a2017-01-30 12:59:38 -08001---
Gary Wu6c702772018-08-06 18:48:02 -07002- job-template: &verify_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -08003 # Job template for Java verify jobs
4 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08005 # The purpose of this job template is to run:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08006 # 1. maven clean install
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -05007 #
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}'
Gary Wu5918acd2018-08-06 16:42:21 -070016 pattern: '**'
Gary Wu6c702772018-08-06 18:48:02 -070017 pom:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080018
19 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070020 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080021 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080022
23 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070024 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080025 project: '{project}'
26 branch: '{branch}'
27 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080028 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080029 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080030 maven-version: '{maven-version}'
Jessica Wagantalld25908c2018-03-28 12:06:39 -070031 - maven-params:
32 mvn-params: '{mvn-params}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080033
34 scm:
35 - gerrit-trigger-scm:
36 refspec: '$GERRIT_REFSPEC'
37 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050038 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080039
40 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070041 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080042 build-timeout: '{build-timeout}'
43
44 triggers:
45 - gerrit-trigger-patch-submitted:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080046 server: '{server-name}'
47 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080048 branch: '{branch}'
Gary Wu5918acd2018-08-06 16:42:21 -070049 files: '{obj:pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080050
51 builders:
52 - provide-maven-settings:
53 global-settings-file: 'global-settings'
54 settings-file: '{mvn-settings}'
55 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -080056 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -070057 pom: '{obj:pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -040058 goals: 'clean install -B
Jessica Wagantalld25908c2018-03-28 12:06:39 -070059 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn {mvn-params}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080060 settings: '{mvn-settings}'
61 settings-type: cfp
62 global-settings: 'global-settings'
63 global-settings-type: cfp
64
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070065 publishers:
66 - infra-shiplogs:
67 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080068
69- job-template:
JulienBe77903ed2017-07-17 15:30:26 +020070 # Job template for Java verify jobs running checkstyle at the end
71 # When checkstyle will be fully incorporated, it is meant to replace
72 # '{project-name}-{stream}-verify-java-checkstyle'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080073 #
74 # The purpose of this job template is to run:
75 # 1. maven clean install
76 #
77 # This job publishes checkstyle results.
JulienBe77903ed2017-07-17 15:30:26 +020078 #
79 # Required Variables:
80 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080081
Gary Wu6c702772018-08-06 18:48:02 -070082 <<: *verify_java_defaults
JulienBe77903ed2017-07-17 15:30:26 +020083 name: '{project-name}-{stream}-verify-java-checkstyle'
JulienBe77903ed2017-07-17 15:30:26 +020084 publishers:
85 - infra-shiplogs:
86 maven-version: '{maven-version}'
87 - checkstyle-result
88
89- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080090 # Job template for Java verify jobs with POM not at the root
91 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080092 # The purpose of this job template is to run:
93 # 1. maven clean install
94 #
95 # This job supports subprojects.
Andrew Grimbergebc710a2017-01-30 12:59:38 -080096 #
97 # Required Variables:
98 # branch: git branch (eg. stable/lithium or master)
99 # pom: name/location of the pom.xml file relative to the workspace
100 # pattern: ant file-path pattern relative to the workspace used to
101 # trigger the job
102
Gary Wu6c702772018-08-06 18:48:02 -0700103 <<: *verify_java_defaults
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800104 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800105
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800106- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100107 # Job template for Java daily release jobs
108 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800109 # The purpose of this job template is to run:
110 # 1. maven clean deploy with Sonar scans
JulienBe2f4ee072017-02-01 21:42:32 +0100111 #
112 # Required Variables:
113 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800114
JulienBe2f4ee072017-02-01 21:42:32 +0100115 name: '{project-name}-{stream}-release-java-daily'
116
117 project-type: freestyle
118 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700119 disabled: '{disabled}'
JulienBe2f4ee072017-02-01 21:42:32 +0100120 maven-deploy-properties:
121 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700122 - infra-properties:
JulienBe2f4ee072017-02-01 21:42:32 +0100123 build-days-to-keep: '{build-days-to-keep}'
124
125 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700126 - infra-parameters:
JulienBe2f4ee072017-02-01 21:42:32 +0100127 project: '{project}'
128 branch: '{branch}'
129 refspec: 'refs/heads/{branch}'
130 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800131 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800132 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100133
134 scm:
135 - gerrit-trigger-scm:
136 refspec: ''
137 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500138 submodule-recursive: '{submodule-recursive}'
JulienBe2f4ee072017-02-01 21:42:32 +0100139
140 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700141 - infra-wrappers:
JulienBe2f4ee072017-02-01 21:42:32 +0100142 build-timeout: '{build-timeout}'
143
144 triggers:
145 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700146 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800147 - gerrit-trigger-release-manually:
148 server: '{server-name}'
149 project: '{project}'
150 branch: '{branch}'
JulienBe2f4ee072017-02-01 21:42:32 +0100151
152 builders:
153 - provide-maven-settings:
154 global-settings-file: 'global-settings'
155 settings-file: '{mvn-settings}'
156
JulienBe5641aa02017-02-17 01:08:38 -0800157 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800158 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800159 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400160 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBe5641aa02017-02-17 01:08:38 -0800161 properties:
162 - '{maven-deploy-properties}'
Jessica Wagantall6223d1d2017-08-07 14:46:58 -0700163 java-opts:
164 - '-Xmx4096m -XX:MaxPermSize=512m'
JulienBe5641aa02017-02-17 01:08:38 -0800165 settings: '{mvn-settings}'
166 settings-type: cfp
167 global-settings: 'global-settings'
168 global-settings-type: cfp
169
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700170 publishers:
171 - infra-shiplogs:
172 maven-version: '{maven-version}'
173
JulienBe5641aa02017-02-17 01:08:38 -0800174- job-template:
JulienBe77903ed2017-07-17 15:30:26 +0200175 # Job template for Java daily release jobs running checkstyle at the end
176 # When checkstyle will be fully incorporated, it is meant to replace
177 # '{project-name}-{stream}-release-java-daily'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800178 #
179 # The purpose of this job template is to run:
180 # 1. maven clean deploy with Sonar scans
181 #
182 # This job publishes checkstyle results.
183 # This job uses a conditional regex match step to set versions.
JulienBe77903ed2017-07-17 15:30:26 +0200184 #
185 # Required Variables:
186 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800187
JulienBe77903ed2017-07-17 15:30:26 +0200188 name: '{project-name}-{stream}-release-java-daily-checkstyle'
189 project-type: freestyle
190 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700191 disabled: '{disabled}'
JulienBe77903ed2017-07-17 15:30:26 +0200192 maven-deploy-properties:
193 properties:
194 - infra-properties:
195 build-days-to-keep: '{build-days-to-keep}'
196 parameters:
197 - infra-parameters:
198 project: '{project}'
199 branch: '{branch}'
200 refspec: 'refs/heads/{branch}'
201 artifacts: '{archive-artifacts}'
202 - maven-exec:
203 maven-version: '{maven-version}'
204 scm:
205 - gerrit-trigger-scm:
206 refspec: ''
207 choosing-strategy: 'default'
208 submodule-recursive: '{submodule-recursive}'
209 wrappers:
210 - infra-wrappers:
211 build-timeout: '{build-timeout}'
212 triggers:
213 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700214 - timed: '@daily'
JulienBe77903ed2017-07-17 15:30:26 +0200215 - gerrit-trigger-release-manually:
216 server: '{server-name}'
217 project: '{project}'
218 branch: '{branch}'
219 builders:
220 - provide-maven-settings:
221 global-settings-file: 'global-settings'
222 settings-file: '{mvn-settings}'
JulienBed91a33a2017-09-25 15:56:34 +0200223 - conditional-step:
224 condition-kind: regex-match
225 regex: DoSetVersion
226 label: '{setVersion}'
227 steps:
228 - inject:
229 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700230 - maven-set-release-version:
JulienBed91a33a2017-09-25 15:56:34 +0200231 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700232 mvn-settings: '{mvn-settings}'
233 pom:
JulienBe77903ed2017-07-17 15:30:26 +0200234 - maven-target:
235 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800236 goals: 'clean deploy -B
JulienBe77903ed2017-07-17 15:30:26 +0200237 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBec9d90e22017-08-08 10:44:10 +0200238 properties: '{obj:mvn_properties}'
JulienBe77903ed2017-07-17 15:30:26 +0200239 settings: '{mvn-settings}'
240 settings-type: cfp
241 global-settings: 'global-settings'
242 global-settings-type: cfp
243 publishers:
244 - infra-shiplogs:
245 maven-version: '{maven-version}'
246 - checkstyle-result-daily
247
248- job-template:
JulienBe5641aa02017-02-17 01:08:38 -0800249 # Job template for Java daily release jobs
250 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800251 # The purpose of this job template is to run:
252 # 1. maven set versions
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800253 # 2. maven clean deploy with Sonar scans
Pamela Dragosh55ceb8f2017-05-23 12:23:16 -0400254 #
255 # Required Variables:
256 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800257
JulienBe5641aa02017-02-17 01:08:38 -0800258 name: '{project-name}-{stream}-release-version-java-daily'
259
260 project-type: freestyle
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700261 disabled: '{disabled}'
JulienBe5641aa02017-02-17 01:08:38 -0800262 node: '{build-node}'
263 maven-deploy-properties:
264 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700265 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800266 build-days-to-keep: '{build-days-to-keep}'
267
268 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700269 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800270 project: '{project}'
271 branch: '{branch}'
272 refspec: 'refs/heads/{branch}'
273 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800274 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800275 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800276
277 scm:
278 - gerrit-trigger-scm:
279 refspec: ''
280 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500281 submodule-recursive: '{submodule-recursive}'
JulienBe5641aa02017-02-17 01:08:38 -0800282
283 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700284 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800285 build-timeout: '{build-timeout}'
286
287 triggers:
288 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700289 - timed: '@daily'
JulienBe5641aa02017-02-17 01:08:38 -0800290 - gerrit-trigger-release-manually:
291 server: '{server-name}'
292 project: '{project}'
293 branch: '{branch}'
294
295 builders:
296 - provide-maven-settings:
297 global-settings-file: 'global-settings'
298 settings-file: '{mvn-settings}'
299
JulienBe2f4ee072017-02-01 21:42:32 +0100300 - inject:
301 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700302 - maven-set-release-version:
Andrew Grimberge2465882017-02-24 12:38:05 -0800303 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700304 mvn-settings: '{mvn-settings}'
305 pom:
JulienBe2f4ee072017-02-01 21:42:32 +0100306
307 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800308 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800309 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400310 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800311 properties:
312 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100313 settings: '{mvn-settings}'
314 settings-type: cfp
315 global-settings: 'global-settings'
316 global-settings-type: cfp
317
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700318 publishers:
319 - infra-shiplogs:
320 maven-version: '{maven-version}'
321
JulienBe2f4ee072017-02-01 21:42:32 +0100322- job-template:
JulienBe645951d2017-09-28 18:44:18 +0200323 # Job template for Java daily release jobs
324 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800325 # The purpose of this job template is to run:
326 # 1. maven set versions
327 # 2. maven clean deploy -P {mvn-profile} with Sonar scans
JulienBe645951d2017-09-28 18:44:18 +0200328 #
329 # Required Variables:
330 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800331
JulienBe645951d2017-09-28 18:44:18 +0200332 name: '{project-name}-{stream}-release-version-profile-java-daily'
333
334 project-type: freestyle
335 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700336 disabled: '{disabled}'
JulienBe645951d2017-09-28 18:44:18 +0200337 maven-deploy-properties:
338 properties:
339 - infra-properties:
340 build-days-to-keep: '{build-days-to-keep}'
341
342 parameters:
343 - infra-parameters:
344 project: '{project}'
345 branch: '{branch}'
346 refspec: 'refs/heads/{branch}'
347 artifacts: '{archive-artifacts}'
348 - maven-exec:
349 maven-version: '{maven-version}'
350
351 scm:
352 - gerrit-trigger-scm:
353 refspec: ''
354 choosing-strategy: 'default'
355 submodule-recursive: '{submodule-recursive}'
356
357 wrappers:
358 - infra-wrappers:
359 build-timeout: '{build-timeout}'
360
361 triggers:
362 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700363 - timed: '@daily'
JulienBe645951d2017-09-28 18:44:18 +0200364 - gerrit-trigger-release-manually:
365 server: '{server-name}'
366 project: '{project}'
367 branch: '{branch}'
368
369 builders:
370 - provide-maven-settings:
371 global-settings-file: 'global-settings'
372 settings-file: '{mvn-settings}'
373
374 - inject:
375 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700376 - maven-set-release-version:
JulienBe645951d2017-09-28 18:44:18 +0200377 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700378 mvn-settings: '{mvn-settings}'
379 pom:
JulienBe645951d2017-09-28 18:44:18 +0200380
381 - maven-target:
382 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800383 goals: 'clean deploy -P {mvn-profile} -B
JulienBe645951d2017-09-28 18:44:18 +0200384 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
385 properties:
386 - '{maven-deploy-properties}'
387 settings: '{mvn-settings}'
388 settings-type: cfp
389 global-settings: 'global-settings'
390 global-settings-type: cfp
391
392 publishers:
393 - infra-shiplogs:
394 maven-version: '{maven-version}'
395
396
397- job-template:
Carsten Lundda8b6972017-02-15 23:59:25 +0000398 # Job template for Java daily release jobs with POM not at the root
399 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800400 # The purpose of this job template is to run:
401 # 1. maven clean deploy with Sonar scans
402 #
403 # This job supports subprojects.
Carsten Lundda8b6972017-02-15 23:59:25 +0000404 #
405 # Required Variables:
406 # branch: git branch (eg. stable/lithium or master)
407 # pom: name/location of the pom.xml file relative to the workspace
408
Carsten Lundda8b6972017-02-15 23:59:25 +0000409 name: '{project-name}-{stream}-{subproject}-release-java-daily'
410
411 project-type: freestyle
412 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700413 disabled: '{disabled}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000414 maven-deploy-properties:
415 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700416 - infra-properties:
Carsten Lundda8b6972017-02-15 23:59:25 +0000417 build-days-to-keep: '{build-days-to-keep}'
418
419 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700420 - infra-parameters:
Carsten Lundda8b6972017-02-15 23:59:25 +0000421 project: '{project}'
422 branch: '{branch}'
423 refspec: 'refs/heads/{branch}'
424 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800425 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800426 maven-version: '{maven-version}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000427
428 scm:
429 - gerrit-trigger-scm:
430 refspec: ''
431 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500432 submodule-recursive: '{submodule-recursive}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000433
434 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700435 - infra-wrappers:
Carsten Lundda8b6972017-02-15 23:59:25 +0000436 build-timeout: '{build-timeout}'
437
438 triggers:
439 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700440 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800441 - gerrit-trigger-release-manually:
442 server: '{server-name}'
443 project: '{project}'
444 branch: '{branch}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000445
446 builders:
447 - provide-maven-settings:
448 global-settings-file: 'global-settings'
449 settings-file: '{mvn-settings}'
450
Carsten Lundda8b6972017-02-15 23:59:25 +0000451 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800452 maven-version: '{maven-version}'
Carsten Lund63cd3b82017-02-18 18:19:22 +0000453 pom: '{pom}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800454 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400455 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lundda8b6972017-02-15 23:59:25 +0000456 properties:
457 - '{maven-deploy-properties}'
Jessica Wagantall30f0d782017-08-08 13:37:25 -0700458 java-opts:
459 - '-Xmx4096m -XX:MaxPermSize=512m'
Carsten Lundda8b6972017-02-15 23:59:25 +0000460 settings: '{mvn-settings}'
461 settings-type: cfp
462 global-settings: 'global-settings'
463 global-settings-type: cfp
464
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700465 publishers:
466 - infra-shiplogs:
467 maven-version: '{maven-version}'
468
Carsten Lundda8b6972017-02-15 23:59:25 +0000469- job-template:
Jessica Wagantallae897942017-09-28 10:56:55 -0700470 # Job template for Java daily release jobs with POM not at the root
471 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800472 # The purpose of this job template is to run:
473 # 1. maven set versions
474 # 2. maven clean deploy with Sonar scans
475 #
476 # This job supports subprojects.
Jessica Wagantallae897942017-09-28 10:56:55 -0700477 #
478 # Required Variables:
479 # branch: git branch (eg. stable/lithium or master)
480 # pom: name/location of the pom.xml file relative to the workspace
481
Zhaoxinga77c0412017-10-11 09:05:49 +0800482 name: '{project-name}-{stream}-{subproject}-release-version-java-daily'
483
484 project-type: freestyle
485 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700486 disabled: '{disabled}'
Zhaoxinga77c0412017-10-11 09:05:49 +0800487 maven-deploy-properties:
488 properties:
489 - infra-properties:
490 build-days-to-keep: '{build-days-to-keep}'
491
492 parameters:
493 - infra-parameters:
494 project: '{project}'
495 branch: '{branch}'
496 refspec: 'refs/heads/{branch}'
497 artifacts: '{archive-artifacts}'
498 - maven-exec:
499 maven-version: '{maven-version}'
500
501 scm:
502 - gerrit-trigger-scm:
503 refspec: ''
504 choosing-strategy: 'default'
505 submodule-recursive: '{submodule-recursive}'
506
507 wrappers:
508 - infra-wrappers:
509 build-timeout: '{build-timeout}'
510
511 triggers:
512 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700513 - timed: '@daily'
Zhaoxinga77c0412017-10-11 09:05:49 +0800514 - gerrit-trigger-release-manually:
515 server: '{server-name}'
516 project: '{project}'
517 branch: '{branch}'
518
519 builders:
520 - provide-maven-settings:
521 global-settings-file: 'global-settings'
522 settings-file: '{mvn-settings}'
523
524 - inject:
525 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700526 - maven-set-release-version:
Zhaoxinga77c0412017-10-11 09:05:49 +0800527 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700528 mvn-settings: '{mvn-settings}'
Zhaoxing327f9592017-10-13 13:37:17 +0800529 pom: '{pom}'
Zhaoxinga77c0412017-10-11 09:05:49 +0800530
531 - maven-target:
532 maven-version: '{maven-version}'
533 pom: '{pom}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800534 goals: 'clean deploy -B
Zhaoxinga77c0412017-10-11 09:05:49 +0800535 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
536 properties:
537 - '{maven-deploy-properties}'
538 settings: '{mvn-settings}'
539 settings-type: cfp
540 global-settings: 'global-settings'
541 global-settings-type: cfp
542
543 publishers:
544 - infra-shiplogs:
545 maven-version: '{maven-version}'
546
Jessica Wagantall91685e12018-03-20 17:13:40 -0700547
Gary Wu6c702772018-08-06 18:48:02 -0700548- job-template: &merge_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800549 # Job template for Java merge jobs
550 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800551 # The purpose of this job template is to run:
552 # 1. maven clean deploy
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800553 #
554 # Required Variables:
555 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800556
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800557 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800558
559 project-type: freestyle
560 node: '{build-node}'
Gary Wu6c702772018-08-06 18:48:02 -0700561 pattern: '**'
562 pom:
563 mvn_properties: []
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700564 mvn-params: ''
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800565
566 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700567 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800568 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800569
570 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700571 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800572 project: '{project}'
573 branch: '{branch}'
574 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800575 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800576 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800577 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800578
579 scm:
580 - gerrit-trigger-scm:
581 refspec: ''
582 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500583 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800584
585 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700586 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800587 build-timeout: '{build-timeout}'
588
589 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800590 - gerrit-trigger-patch-merged:
591 server: '{server-name}'
592 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800593 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800594 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800595
596 builders:
597 - provide-maven-settings:
598 global-settings-file: 'global-settings'
599 settings-file: '{mvn-settings}'
600 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800601 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -0700602 pom: '{obj:pom}'
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700603 goals: 'clean deploy -B {mvn-params}
Andrew Grimberge55b6222017-05-03 16:19:28 -0400604 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800605 settings: '{mvn-settings}'
606 settings-type: cfp
607 global-settings: 'global-settings'
608 global-settings-type: cfp
Gary Wu6c702772018-08-06 18:48:02 -0700609 properties: '{obj:mvn_properties}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800610
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700611 publishers:
612 - infra-shiplogs:
613 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100614
615- job-template:
Gary Wu6c702772018-08-06 18:48:02 -0700616 # Job template for Java merge jobs based on
617 # '{project-name}-{stream}-merge-java'
618 # The purpose of this job template is to run:
619 # 1. maven clean deploy
620 #
621 # This project supports maven properties.
622 #
623 # Required Variables:
624 # branch: git branch (eg. stable/lithium or master)
625 # maven-properties: properties passed to maven
626
627 <<: *merge_java_defaults
628 name: '{project-name}-{stream}-merge-properties-java'
629
630- job-template:
631 # Job template for Java merge jobs that takes a maven template
632 #
633 # The purpose of this job template is to run:
634 # 1. maven clean deploy -P {mvn-profile}
635 #
636 # Required Variables:
637 # branch: git branch (eg. stable/lithium or master)
638
639 <<: *merge_java_defaults
640 name: '{project-name}-{stream}-merge-profile-java'
641
642 builders:
643 - provide-maven-settings:
644 global-settings-file: 'global-settings'
645 settings-file: '{mvn-settings}'
646
647 - docker-login
648
649 - maven-target:
650 maven-version: '{maven-version}'
651 goals: 'clean deploy -P {mvn-profile} -B
652 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
653 settings: '{mvn-settings}'
654 settings-type: cfp
655 global-settings: 'global-settings'
656 global-settings-type: cfp
657 properties:
658 - docker.pull.registry=nexus3.onap.org:10001
659 - docker.push.registry=nexus3.onap.org:10003
660
661- job-template:
662 # Job template for Java merge jobs with POM not at the root
663 #
664 # The purpose of this job template is to run:
665 # 1. maven clean deploy
666 #
667 # This job supports subprojects.
668 #
669 # Required Variables:
670 # branch: git branch (eg. stable/lithium or master)
671 # pom: name/location of the pom.xml file relative to the workspace
672 # pattern: ant file-path pattern relative to the workspace used to
673 # trigger the job
674
675 <<: *merge_java_defaults
676 name: '{project-name}-{stream}-{subproject}-merge-java'
677
Gary Wu350fbcb2018-08-07 11:13:59 -0700678- job-template: &docker_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800679 # Job template for Docker daily jobs
680 #
681 # The purpose of this job template is to run:
682 # 1. login to the docker registry
683 # 2. docker push
684 #
685 # Required Variables:
686 # branch: git branch (eg. stable/lithium or master)
687
Anaël Clossonabbafb52017-02-09 17:55:10 +0100688 name: '{project-name}-{stream}-docker-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700689 id: '{project-name}-{stream}-docker-java-daily'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100690 project-type: freestyle
Andrew Grimberg2137b1d2017-02-15 07:24:53 -0800691 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700692 disabled: '{disabled}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100693 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700694 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100695 build-days-to-keep: '{build-days-to-keep}'
696
697 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700698 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100699 project: '{project}'
700 branch: '{branch}'
701 refspec: 'refs/heads/{branch}'
702 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800703 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800704 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700705 - maven-params:
706 mvn-params: '{mvn-params}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100707
708 scm:
709 - gerrit-trigger-scm:
710 refspec: ''
711 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500712 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100713
Anaël Clossonabbafb52017-02-09 17:55:10 +0100714 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700715 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100716 build-timeout: '{build-timeout}'
717
718 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800719 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700720 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800721 - gerrit-trigger-release-manually:
722 server: '{server-name}'
723 project: '{project}'
724 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100725
726 builders:
Anaël Closson63e090e2017-02-15 14:50:45 +0100727
Anaël Clossonabbafb52017-02-09 17:55:10 +0100728 - provide-maven-settings:
729 global-settings-file: 'global-settings'
730 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100731
Anaël Closson63e090e2017-02-15 14:50:45 +0100732 - docker-login
733
Anaël Clossonabbafb52017-02-09 17:55:10 +0100734 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800735 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100736 mvn-settings: '{mvn-settings}'
737 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100738 # use default as mvn-profile if profile is not needed
739 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700740 mvn-params: '{mvn-params}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500741
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700742 publishers:
743 - infra-shiplogs:
744 maven-version: '{maven-version}'
745
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500746- job-template:
Gary Wu9e9210f2018-07-18 16:19:20 -0700747 # Job template for Docker daily jobs
748 #
749 # The purpose of this job template is to run:
750 # 1. login to the docker registry
751 # 2. docker push
752 #
753 # Required Variables:
754 # branch: git branch (eg. stable/lithium or master)
755
Gary Wu350fbcb2018-08-07 11:13:59 -0700756 <<: *docker_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700757 name: '{project-name}-{stream}-docker-java-daily'
758 id: docker-java-daily
Gary Wu9e9210f2018-07-18 16:19:20 -0700759 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700760 wrappers:
761 - infra-wrappers-docker-build:
762 build-timeout: '{build-timeout}'
763
Gary Wu9e9210f2018-07-18 16:19:20 -0700764- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +0200765 # Job template for building & pushing docker images
766 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800767 # The purpose of this job template is to run:
JulienBe91c56ec2017-06-21 23:37:39 +0200768 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800769 # 2. maven clean deploy on the specified profile
770 #
771 # This job uses a conditional regex match step to set versions.
772 # This template supports maven properties.
JulienBe91c56ec2017-06-21 23:37:39 +0200773 #
774 # Required Variables:
775 # pom: name/location of the pom.xml file relative to the workspace
776 # profile: the docker profile defined in the pom
777 # maven-properties: properties passed to maven
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800778
JulienBe91c56ec2017-06-21 23:37:39 +0200779 name: '{project-name}-{stream}-docker-java-properties-daily'
780 project-type: freestyle
781 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700782 disabled: '{disabled}'
JulienBe91c56ec2017-06-21 23:37:39 +0200783 properties:
784 - infra-properties:
785 build-days-to-keep: '{build-days-to-keep}'
786 parameters:
787 - infra-parameters:
788 project: '{project}'
789 branch: '{branch}'
790 refspec: 'refs/heads/{branch}'
791 artifacts: '{archive-artifacts}'
792 - maven-exec:
793 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700794 - maven-params:
795 mvn-params: '{mvn-params}'
JulienBe91c56ec2017-06-21 23:37:39 +0200796 scm:
797 - gerrit-trigger-scm:
798 refspec: ''
799 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500800 submodule-recursive: '{submodule-recursive}'
JulienBe91c56ec2017-06-21 23:37:39 +0200801 wrappers:
802 - infra-wrappers:
803 build-timeout: '{build-timeout}'
804 triggers:
805 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700806 - timed: '@daily'
JulienBe91c56ec2017-06-21 23:37:39 +0200807 - gerrit-trigger-release-manually:
808 server: '{server-name}'
809 project: '{project}'
810 branch: '{branch}'
811 builders:
812 - provide-maven-settings:
813 global-settings-file: 'global-settings'
814 settings-file: '{mvn-settings}'
JulienBecda17972017-10-17 13:46:51 +0200815 - conditional-step:
816 condition-kind: regex-match
817 regex: DoSetVersion
818 label: '{setVersion}'
819 steps:
820 - inject:
821 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700822 - maven-set-release-version:
JulienBecda17972017-10-17 13:46:51 +0200823 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700824 mvn-settings: '{mvn-settings}'
825 pom:
JulienBe91c56ec2017-06-21 23:37:39 +0200826 - docker-login
827 - maven-docker-push-daily:
828 maven-version: '{maven-version}'
829 mvn-settings: '{mvn-settings}'
830 pom: '{docker-pom}'
831 properties: '{maven-properties}'
832 # use default as mvn-profile if profile is not needed
833 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700834 mvn-params: '{mvn-params}'
JulienBe91c56ec2017-06-21 23:37:39 +0200835 publishers:
836 - infra-shiplogs:
837 maven-version: '{maven-version}'
838
839- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800840 # Job template for building & pushing docker images
841 #
842 # The purpose of this job template is to run:
843 # 1. login to the docker registry
844 # 2. run a specified shell builder
845 #
846 # Required Variables:
847 # pom: name/location of the pom.xml file relative to the workspace
848 # maven-properties: properties passed to maven
849
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500850 name: '{project-name}-{stream}-docker-java-shell-daily'
851 project-type: freestyle
Jessica Wagantallfe5efea2018-08-07 16:02:39 -0700852 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700853 disabled: '{disabled}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500854 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700855 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500856 build-days-to-keep: '{build-days-to-keep}'
857
858 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700859 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500860 project: '{project}'
861 branch: '{branch}'
862 refspec: 'refs/heads/{branch}'
863 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800864 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800865 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500866
867 scm:
868 - gerrit-trigger-scm:
869 refspec: ''
870 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500871 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500872
873 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700874 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500875 build-timeout: '{build-timeout}'
876
877 triggers:
878 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700879 - timed: '@daily'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500880 - gerrit-trigger-release-manually:
881 server: '{server-name}'
882 project: '{project}'
883 branch: '{branch}'
884
885 builders:
886
887 - provide-maven-settings:
888 global-settings-file: 'global-settings'
889 settings-file: '{mvn-settings}'
890
891 - docker-login
892
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500893 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800894 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500895 goals: '{mvn-goals}'
896 settings: '{mvn-settings}'
897 settings-type: cfp
898 global-settings: 'global-settings'
899 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500900
901 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000902
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700903 publishers:
904 - infra-shiplogs:
905 maven-version: '{maven-version}'
906
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000907- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800908 # Job template for building & pushing docker images
909 #
910 # The purpose of this job template is to run:
911 # 1. login to the docker registry
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700912 # 2. run a specified shell builder
913 #
914 # Required Variables:
915 # pom: name/location of the pom.xml file relative to the workspace
916 # maven-properties: properties passed to maven
917
918 name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily'
919 project-type: freestyle
920 node: '{build-node}'
921 disabled: '{disabled}'
922 properties:
923 - infra-properties:
924 build-days-to-keep: '{build-days-to-keep}'
925
926 parameters:
927 - infra-parameters:
928 project: '{project}'
929 branch: '{branch}'
930 refspec: 'refs/heads/{branch}'
931 artifacts: '{archive-artifacts}'
932 - maven-exec:
933 maven-version: '{maven-version}'
934
935 scm:
936 - gerrit-trigger-scm:
937 refspec: ''
938 choosing-strategy: 'default'
939 submodule-recursive: '{submodule-recursive}'
940
941 wrappers:
942 - infra-wrappers:
943 build-timeout: '{build-timeout}'
944
945 triggers:
946 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700947 - timed: '@daily'
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700948 - gerrit-trigger-release-manually:
949 server: '{server-name}'
950 project: '{project}'
951 branch: '{branch}'
952
953 builders:
954
955 - provide-maven-settings:
956 global-settings-file: 'global-settings'
957 settings-file: '{mvn-settings}'
958
959 - docker-login
960
961 - maven-target:
962 maven-version: '{maven-version}'
963 pom: '{pom}'
964 goals: '{mvn-goals}'
965 settings: '{mvn-settings}'
966 settings-type: cfp
967 global-settings: 'global-settings'
968 global-settings-type: cfp
969
970 - shell: '{script}'
971
972 publishers:
973 - infra-shiplogs:
974 maven-version: '{maven-version}'
975
976- job-template:
977 # Job template for building & pushing docker images
978 #
979 # The purpose of this job template is to run:
980 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800981 # 2. inject a version.properties file and set versions
982 # 3. run a specified shell builder
983 #
984 # Required Variables:
985 # pom: name/location of the pom.xml file relative to the workspace
986 # maven-properties: properties passed to maven
987
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400988 name: '{project-name}-{stream}-docker-java-version-shell-daily'
989 project-type: freestyle
990 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700991 disabled: '{disabled}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400992 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700993 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400994 build-days-to-keep: '{build-days-to-keep}'
995
996 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700997 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400998 project: '{project}'
999 branch: '{branch}'
1000 refspec: 'refs/heads/{branch}'
1001 artifacts: '{archive-artifacts}'
1002 - maven-exec:
1003 maven-version: '{maven-version}'
1004
1005 scm:
1006 - gerrit-trigger-scm:
1007 refspec: ''
1008 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001009 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001010
1011 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001012 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001013 build-timeout: '{build-timeout}'
1014
1015 triggers:
1016 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001017 - timed: '@daily'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001018 - gerrit-trigger-release-manually:
1019 server: '{server-name}'
1020 project: '{project}'
1021 branch: '{branch}'
1022
1023 builders:
1024
1025 - provide-maven-settings:
1026 global-settings-file: 'global-settings'
1027 settings-file: '{mvn-settings}'
1028
1029 - inject:
1030 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001031 - maven-set-release-version:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001032 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001033 mvn-settings: '{mvn-settings}'
1034 pom:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001035
1036 - docker-login
1037
1038 - maven-target:
1039 maven-version: '{maven-version}'
1040 goals: '{mvn-goals}'
1041 settings: '{mvn-settings}'
1042 settings-type: cfp
1043 global-settings: 'global-settings'
1044 global-settings-type: cfp
1045
1046 - shell: '{script}'
1047
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001048 publishers:
1049 - infra-shiplogs:
1050 maven-version: '{maven-version}'
1051
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001052- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001053 # Job template for building & pushing docker images
1054 #
1055 # The purpose of this job template is to run:
1056 # 1. login to the docker registry
1057 # 2. inject a version.properties file and set versions
1058 # 3. run a specified shell builder
1059 #
1060 # This template supports subprojects.
1061 #
1062 # Required Variables:
1063 # pom: name/location of the pom.xml file relative to the workspace
1064 # maven-properties: properties passed to maven
1065
Zhaoxing49773042017-10-13 17:14:35 +08001066 name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
1067 project-type: freestyle
1068 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001069 disabled: '{disabled}'
Zhaoxing49773042017-10-13 17:14:35 +08001070 properties:
1071 - infra-properties:
1072 build-days-to-keep: '{build-days-to-keep}'
1073
1074 parameters:
1075 - infra-parameters:
1076 project: '{project}'
1077 branch: '{branch}'
1078 refspec: 'refs/heads/{branch}'
1079 artifacts: '{archive-artifacts}'
1080 - maven-exec:
1081 maven-version: '{maven-version}'
1082
1083 scm:
1084 - gerrit-trigger-scm:
1085 refspec: ''
1086 choosing-strategy: 'default'
1087 submodule-recursive: '{submodule-recursive}'
1088
1089 wrappers:
1090 - infra-wrappers:
1091 build-timeout: '{build-timeout}'
1092
1093 triggers:
1094 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001095 - timed: '@daily'
Zhaoxing49773042017-10-13 17:14:35 +08001096 - gerrit-trigger-release-manually:
1097 server: '{server-name}'
1098 project: '{project}'
1099 branch: '{branch}'
1100
1101 builders:
1102
1103 - provide-maven-settings:
1104 global-settings-file: 'global-settings'
1105 settings-file: '{mvn-settings}'
1106
1107 - inject:
1108 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001109 - maven-set-release-version:
Zhaoxing49773042017-10-13 17:14:35 +08001110 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001111 mvn-settings: '{mvn-settings}'
Zhaoxing49773042017-10-13 17:14:35 +08001112 pom: '{pom}'
Zhaoxing49773042017-10-13 17:14:35 +08001113
1114 - docker-login
1115
1116 - maven-target:
1117 maven-version: '{maven-version}'
1118 pom: '{pom}'
1119 goals: '{mvn-goals}'
1120 settings: '{mvn-settings}'
1121 settings-type: cfp
1122 global-settings: 'global-settings'
1123 global-settings-type: cfp
1124
1125 - shell: '{script}'
1126
1127 publishers:
1128 - infra-shiplogs:
1129 maven-version: '{maven-version}'
1130
Gary Wu350fbcb2018-08-07 11:13:59 -07001131- job-template: &docker_version_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001132 # Job template for building & pushing docker images
1133 #
1134 # The purpose of this job template is to run:
1135 # 1. login to the docker registry
1136 # 2. inject a version.properties file and set versions
1137 # 3. run a docker push
1138 #
1139 # Required Variables:
1140 # pom: name/location of the pom.xml file relative to the workspace
1141 # profile: the docker profile defined in the pom
1142 # maven-properties: properties passed to maven
1143
Patrick Brady39f388a2017-03-09 11:26:59 -08001144 name: '{project-name}-{stream}-docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -07001145 id: '{project-name}-{stream}-docker-version-java-daily'
Patrick Brady39f388a2017-03-09 11:26:59 -08001146 project-type: freestyle
1147 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001148 disabled: '{disabled}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001149 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001150 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -08001151 build-days-to-keep: '{build-days-to-keep}'
1152
1153 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001154 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -08001155 project: '{project}'
1156 branch: '{branch}'
1157 refspec: 'refs/heads/{branch}'
1158 artifacts: '{archive-artifacts}'
1159 - maven-exec:
1160 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -07001161 - maven-params:
1162 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001163
1164 scm:
1165 - gerrit-trigger-scm:
1166 refspec: ''
1167 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001168 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001169
1170 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001171 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -08001172 build-timeout: '{build-timeout}'
1173
1174 triggers:
1175 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001176 - timed: '@daily'
Patrick Brady39f388a2017-03-09 11:26:59 -08001177 - gerrit-trigger-release-manually:
1178 server: '{server-name}'
1179 project: '{project}'
1180 branch: '{branch}'
1181
1182 builders:
1183
1184 - provide-maven-settings:
1185 global-settings-file: 'global-settings'
1186 settings-file: '{mvn-settings}'
1187
1188 - inject:
1189 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001190 - maven-set-release-version:
Patrick Brady39f388a2017-03-09 11:26:59 -08001191 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001192 mvn-settings: '{mvn-settings}'
1193 pom:
Patrick Brady39f388a2017-03-09 11:26:59 -08001194
1195 - docker-login
1196
1197 - maven-docker-push-daily:
1198 maven-version: '{maven-version}'
1199 mvn-settings: '{mvn-settings}'
1200 pom: '{docker-pom}'
1201 # use default as mvn-profile if profile is not needed
1202 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -07001203 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001204
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001205 publishers:
1206 - infra-shiplogs:
1207 maven-version: '{maven-version}'
1208
Patrick Brady39f388a2017-03-09 11:26:59 -08001209- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001210 # Job template for building & pushing docker images
1211 #
1212 # The purpose of this job template is to run:
Gary Wu9e9210f2018-07-18 16:19:20 -07001213 # 1. login to the docker registry
1214 # 2. inject a version.properties file and set versions
1215 # 3. run a docker push
1216 #
1217 # Required Variables:
1218 # pom: name/location of the pom.xml file relative to the workspace
1219 # profile: the docker profile defined in the pom
1220 # maven-properties: properties passed to maven
1221
Gary Wu350fbcb2018-08-07 11:13:59 -07001222 <<: *docker_version_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -07001223 name: '{project-name}-{stream}-docker-version-java-daily'
1224 id: 'docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -07001225 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -07001226 wrappers:
1227 - infra-wrappers-docker-build:
1228 build-timeout: '{build-timeout}'
1229
Zhaoxing49773042017-10-13 17:14:35 +08001230- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001231 # Job template for building & pushing docker images for AAI specific repos
1232 #
1233 # The purpose of this job template is to run:
1234 # 1. login to the docker registry
1235 # 2. run maven goals
1236 # 3. run include-docker-push.sh
1237 #
1238 # Required Variables:
1239 # pom: name/location of the pom.xml file relative to the workspace
1240 # maven-properties: properties passed to maven
1241
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001242 name: '{project-name}-{stream}-aai-docker-java-daily'
1243 project-type: freestyle
1244 node: 'ubuntu1604-docker-8c-8g'
Gary Wudc3f2952017-08-23 16:48:59 -07001245 docker-image-name: ''
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001246 disabled: '{disabled}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001247 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001248 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001249 build-days-to-keep: '{build-days-to-keep}'
1250
1251 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001252 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001253 project: '{project}'
1254 branch: '{branch}'
1255 refspec: 'refs/heads/{branch}'
1256 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001257 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001258 maven-version: '{maven-version}'
Gary Wudc3f2952017-08-23 16:48:59 -07001259 - docker-image-name:
1260 docker-image-name: '{docker-image-name}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001261
1262 scm:
1263 - gerrit-trigger-scm:
1264 refspec: ''
1265 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001266 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001267
1268 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001269 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001270 build-timeout: '{build-timeout}'
1271
1272 triggers:
1273 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001274 - timed: '@daily'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001275 - gerrit-trigger-release-manually:
1276 server: '{server-name}'
1277 project: '{project}'
1278 branch: '{branch}'
1279
1280 builders:
1281
1282 - provide-maven-settings:
1283 global-settings-file: 'global-settings'
1284 settings-file: '{mvn-settings}'
1285
1286 - docker-login
1287
1288 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001289 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001290 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001291 goals: 'clean install -DskipTests -B
1292 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001293 settings: '{mvn-settings}'
1294 settings-type: cfp
1295 global-settings: 'global-settings'
1296 global-settings-type: cfp
1297
1298 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001299 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001300 pom: '{pom}'
1301 goals: '{mvn-goals}'
1302 settings: '{mvn-settings}'
1303 settings-type: cfp
1304 global-settings: 'global-settings'
1305 global-settings-type: cfp
1306 properties:
1307 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001308 - docker.pull.registry=nexus3.onap.org:10001
1309 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001310
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001311 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001312
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001313 publishers:
1314 - infra-shiplogs:
1315 maven-version: '{maven-version}'
1316
Carsten Lund2d06a692017-02-23 18:23:07 +00001317- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001318 # Job template for Java merge jobs for SDC specific repos
ig61339fdb9d22017-04-03 17:47:19 +03001319 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001320 # The purpose of this job template is to run:
1321 # 1. maven clean deploy
ig61339fdb9d22017-04-03 17:47:19 +03001322 #
1323 # Required Variables:
1324 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001325
Gary Wu6c702772018-08-06 18:48:02 -07001326 <<: *merge_java_defaults
ig61339fdb9d22017-04-03 17:47:19 +03001327 name: '{project-name}-{stream}-sdc-merge-java'
1328
ig6133cb3f8232017-04-05 14:22:42 +03001329 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall9a89de42018-04-18 11:35:17 -07001330 build-timeout: 120
ig61339fdb9d22017-04-03 17:47:19 +03001331
ig61339fdb9d22017-04-03 17:47:19 +03001332 builders:
1333 - provide-maven-settings:
1334 global-settings-file: 'global-settings'
1335 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001336
1337 - docker-login
1338
Gary Wu6c702772018-08-06 18:48:02 -07001339 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001340 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001341 mvn-settings: '{mvn-settings}'
1342 pom: '{docker-pom}'
1343 # use default as mvn-profile if profile is not needed
1344 mvn-profile: '{mvn-profile}'
Gary Wu6c702772018-08-06 18:48:02 -07001345 mvn-params: ''