blob: b919c1f2ae58ee355b70f3931a212745b9e1ba8d [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:
Jessica Wagantall5b0faff2019-08-30 12:45:08 -070018 mvn-opts: ''
19 java-opts: ''
Andrew Grimbergebc710a2017-01-30 12:59:38 -080020
21 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070022 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080023 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080024
25 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070026 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080027 project: '{project}'
28 branch: '{branch}'
29 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080030 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080031 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080032 maven-version: '{maven-version}'
Jessica Wagantalld25908c2018-03-28 12:06:39 -070033 - maven-params:
34 mvn-params: '{mvn-params}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080035
36 scm:
37 - gerrit-trigger-scm:
38 refspec: '$GERRIT_REFSPEC'
39 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050040 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080041
42 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070043 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080044 build-timeout: '{build-timeout}'
45
46 triggers:
47 - gerrit-trigger-patch-submitted:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080048 server: '{server-name}'
49 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080050 branch: '{branch}'
Gary Wu5918acd2018-08-06 16:42:21 -070051 files: '{obj:pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080052
53 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070054 - lf-infra-pre-build
Andrew Grimbergebc710a2017-01-30 12:59:38 -080055 - provide-maven-settings:
56 global-settings-file: 'global-settings'
57 settings-file: '{mvn-settings}'
58 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -080059 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -070060 pom: '{obj:pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -040061 goals: 'clean install -B
Jessica Wagantalld25908c2018-03-28 12:06:39 -070062 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn {mvn-params}'
Jessica Wagantall5b0faff2019-08-30 12:45:08 -070063 properties:
64 - MAVEN_OPTS='{mvn-opts}'
65 java-opts:
66 - "{java-opts}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080067 settings: '{mvn-settings}'
68 settings-type: cfp
69 global-settings: 'global-settings'
70 global-settings-type: cfp
71
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070072 publishers:
73 - infra-shiplogs:
74 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080075
76- job-template:
JulienBe77903ed2017-07-17 15:30:26 +020077 # Job template for Java verify jobs running checkstyle at the end
78 # When checkstyle will be fully incorporated, it is meant to replace
79 # '{project-name}-{stream}-verify-java-checkstyle'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080080 #
81 # The purpose of this job template is to run:
82 # 1. maven clean install
83 #
84 # This job publishes checkstyle results.
JulienBe77903ed2017-07-17 15:30:26 +020085 #
86 # Required Variables:
87 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080088
Gary Wu6c702772018-08-06 18:48:02 -070089 <<: *verify_java_defaults
JulienBe77903ed2017-07-17 15:30:26 +020090 name: '{project-name}-{stream}-verify-java-checkstyle'
JulienBe77903ed2017-07-17 15:30:26 +020091 publishers:
92 - infra-shiplogs:
93 maven-version: '{maven-version}'
94 - checkstyle-result
95
96- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080097 # Job template for Java verify jobs with POM not at the root
98 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080099 # The purpose of this job template is to run:
100 # 1. maven clean install
101 #
102 # This job supports subprojects.
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800103 #
104 # Required Variables:
105 # branch: git branch (eg. stable/lithium or master)
106 # pom: name/location of the pom.xml file relative to the workspace
107 # pattern: ant file-path pattern relative to the workspace used to
108 # trigger the job
109
Gary Wu6c702772018-08-06 18:48:02 -0700110 <<: *verify_java_defaults
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800111 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800112
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800113- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100114 # Job template for Java daily release jobs
115 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800116 # The purpose of this job template is to run:
117 # 1. maven clean deploy with Sonar scans
JulienBe2f4ee072017-02-01 21:42:32 +0100118 #
119 # Required Variables:
120 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800121
JulienBe2f4ee072017-02-01 21:42:32 +0100122 name: '{project-name}-{stream}-release-java-daily'
123
124 project-type: freestyle
125 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700126 disabled: '{disabled}'
JulienBe2f4ee072017-02-01 21:42:32 +0100127 maven-deploy-properties:
128 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700129 - infra-properties:
JulienBe2f4ee072017-02-01 21:42:32 +0100130 build-days-to-keep: '{build-days-to-keep}'
131
132 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700133 - infra-parameters:
JulienBe2f4ee072017-02-01 21:42:32 +0100134 project: '{project}'
135 branch: '{branch}'
136 refspec: 'refs/heads/{branch}'
137 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800138 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800139 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100140
141 scm:
142 - gerrit-trigger-scm:
143 refspec: ''
144 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500145 submodule-recursive: '{submodule-recursive}'
JulienBe2f4ee072017-02-01 21:42:32 +0100146
147 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700148 - infra-wrappers:
JulienBe2f4ee072017-02-01 21:42:32 +0100149 build-timeout: '{build-timeout}'
150
151 triggers:
152 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700153 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800154 - gerrit-trigger-release-manually:
155 server: '{server-name}'
156 project: '{project}'
157 branch: '{branch}'
JulienBe2f4ee072017-02-01 21:42:32 +0100158
159 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700160 - lf-infra-pre-build
JulienBe2f4ee072017-02-01 21:42:32 +0100161 - provide-maven-settings:
162 global-settings-file: 'global-settings'
163 settings-file: '{mvn-settings}'
164
JulienBe5641aa02017-02-17 01:08:38 -0800165 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800166 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800167 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400168 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBe5641aa02017-02-17 01:08:38 -0800169 properties:
170 - '{maven-deploy-properties}'
Jessica Wagantall6223d1d2017-08-07 14:46:58 -0700171 java-opts:
172 - '-Xmx4096m -XX:MaxPermSize=512m'
JulienBe5641aa02017-02-17 01:08:38 -0800173 settings: '{mvn-settings}'
174 settings-type: cfp
175 global-settings: 'global-settings'
176 global-settings-type: cfp
177
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700178 publishers:
179 - infra-shiplogs:
180 maven-version: '{maven-version}'
181
JulienBe5641aa02017-02-17 01:08:38 -0800182- job-template:
JulienBe77903ed2017-07-17 15:30:26 +0200183 # Job template for Java daily release jobs running checkstyle at the end
184 # When checkstyle will be fully incorporated, it is meant to replace
185 # '{project-name}-{stream}-release-java-daily'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800186 #
187 # The purpose of this job template is to run:
188 # 1. maven clean deploy with Sonar scans
189 #
190 # This job publishes checkstyle results.
191 # This job uses a conditional regex match step to set versions.
JulienBe77903ed2017-07-17 15:30:26 +0200192 #
193 # Required Variables:
194 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800195
JulienBe77903ed2017-07-17 15:30:26 +0200196 name: '{project-name}-{stream}-release-java-daily-checkstyle'
197 project-type: freestyle
198 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700199 disabled: '{disabled}'
JulienBe77903ed2017-07-17 15:30:26 +0200200 maven-deploy-properties:
201 properties:
202 - infra-properties:
203 build-days-to-keep: '{build-days-to-keep}'
204 parameters:
205 - infra-parameters:
206 project: '{project}'
207 branch: '{branch}'
208 refspec: 'refs/heads/{branch}'
209 artifacts: '{archive-artifacts}'
210 - maven-exec:
211 maven-version: '{maven-version}'
212 scm:
213 - gerrit-trigger-scm:
214 refspec: ''
215 choosing-strategy: 'default'
216 submodule-recursive: '{submodule-recursive}'
217 wrappers:
218 - infra-wrappers:
219 build-timeout: '{build-timeout}'
220 triggers:
221 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700222 - timed: '@daily'
JulienBe77903ed2017-07-17 15:30:26 +0200223 - gerrit-trigger-release-manually:
224 server: '{server-name}'
225 project: '{project}'
226 branch: '{branch}'
227 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700228 - lf-infra-pre-build
JulienBe77903ed2017-07-17 15:30:26 +0200229 - provide-maven-settings:
230 global-settings-file: 'global-settings'
231 settings-file: '{mvn-settings}'
JulienBed91a33a2017-09-25 15:56:34 +0200232 - conditional-step:
233 condition-kind: regex-match
234 regex: DoSetVersion
235 label: '{setVersion}'
236 steps:
237 - inject:
238 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700239 - maven-set-release-version:
JulienBed91a33a2017-09-25 15:56:34 +0200240 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700241 mvn-settings: '{mvn-settings}'
242 pom:
JulienBe77903ed2017-07-17 15:30:26 +0200243 - maven-target:
244 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800245 goals: 'clean deploy -B
JulienBe77903ed2017-07-17 15:30:26 +0200246 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBec9d90e22017-08-08 10:44:10 +0200247 properties: '{obj:mvn_properties}'
JulienBe77903ed2017-07-17 15:30:26 +0200248 settings: '{mvn-settings}'
249 settings-type: cfp
250 global-settings: 'global-settings'
251 global-settings-type: cfp
252 publishers:
253 - infra-shiplogs:
254 maven-version: '{maven-version}'
255 - checkstyle-result-daily
256
257- job-template:
JulienBe5641aa02017-02-17 01:08:38 -0800258 # Job template for Java daily release jobs
259 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800260 # The purpose of this job template is to run:
261 # 1. maven set versions
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800262 # 2. maven clean deploy with Sonar scans
Pamela Dragosh55ceb8f2017-05-23 12:23:16 -0400263 #
264 # Required Variables:
265 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800266
JulienBe5641aa02017-02-17 01:08:38 -0800267 name: '{project-name}-{stream}-release-version-java-daily'
268
269 project-type: freestyle
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700270 disabled: '{disabled}'
JulienBe5641aa02017-02-17 01:08:38 -0800271 node: '{build-node}'
272 maven-deploy-properties:
273 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700274 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800275 build-days-to-keep: '{build-days-to-keep}'
276
277 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700278 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800279 project: '{project}'
280 branch: '{branch}'
281 refspec: 'refs/heads/{branch}'
282 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800283 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800284 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800285
286 scm:
287 - gerrit-trigger-scm:
288 refspec: ''
289 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500290 submodule-recursive: '{submodule-recursive}'
JulienBe5641aa02017-02-17 01:08:38 -0800291
292 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700293 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800294 build-timeout: '{build-timeout}'
295
296 triggers:
297 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700298 - timed: '@daily'
JulienBe5641aa02017-02-17 01:08:38 -0800299 - gerrit-trigger-release-manually:
300 server: '{server-name}'
301 project: '{project}'
302 branch: '{branch}'
303
304 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700305 - lf-infra-pre-build
JulienBe5641aa02017-02-17 01:08:38 -0800306 - provide-maven-settings:
307 global-settings-file: 'global-settings'
308 settings-file: '{mvn-settings}'
309
JulienBe2f4ee072017-02-01 21:42:32 +0100310 - inject:
311 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700312 - maven-set-release-version:
Andrew Grimberge2465882017-02-24 12:38:05 -0800313 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700314 mvn-settings: '{mvn-settings}'
315 pom:
JulienBe2f4ee072017-02-01 21:42:32 +0100316
317 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800318 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800319 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400320 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800321 properties:
322 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100323 settings: '{mvn-settings}'
324 settings-type: cfp
325 global-settings: 'global-settings'
326 global-settings-type: cfp
327
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700328 publishers:
329 - infra-shiplogs:
330 maven-version: '{maven-version}'
331
JulienBe2f4ee072017-02-01 21:42:32 +0100332- job-template:
JulienBe645951d2017-09-28 18:44:18 +0200333 # Job template for Java daily release jobs
334 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800335 # The purpose of this job template is to run:
336 # 1. maven set versions
337 # 2. maven clean deploy -P {mvn-profile} with Sonar scans
JulienBe645951d2017-09-28 18:44:18 +0200338 #
339 # Required Variables:
340 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800341
JulienBe645951d2017-09-28 18:44:18 +0200342 name: '{project-name}-{stream}-release-version-profile-java-daily'
343
344 project-type: freestyle
345 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700346 disabled: '{disabled}'
JulienBe645951d2017-09-28 18:44:18 +0200347 maven-deploy-properties:
348 properties:
349 - infra-properties:
350 build-days-to-keep: '{build-days-to-keep}'
351
352 parameters:
353 - infra-parameters:
354 project: '{project}'
355 branch: '{branch}'
356 refspec: 'refs/heads/{branch}'
357 artifacts: '{archive-artifacts}'
358 - maven-exec:
359 maven-version: '{maven-version}'
360
361 scm:
362 - gerrit-trigger-scm:
363 refspec: ''
364 choosing-strategy: 'default'
365 submodule-recursive: '{submodule-recursive}'
366
367 wrappers:
368 - infra-wrappers:
369 build-timeout: '{build-timeout}'
370
371 triggers:
372 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700373 - timed: '@daily'
JulienBe645951d2017-09-28 18:44:18 +0200374 - gerrit-trigger-release-manually:
375 server: '{server-name}'
376 project: '{project}'
377 branch: '{branch}'
378
379 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700380 - lf-infra-pre-build
JulienBe645951d2017-09-28 18:44:18 +0200381 - provide-maven-settings:
382 global-settings-file: 'global-settings'
383 settings-file: '{mvn-settings}'
384
385 - inject:
386 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700387 - maven-set-release-version:
JulienBe645951d2017-09-28 18:44:18 +0200388 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700389 mvn-settings: '{mvn-settings}'
390 pom:
JulienBe645951d2017-09-28 18:44:18 +0200391
392 - maven-target:
393 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800394 goals: 'clean deploy -P {mvn-profile} -B
JulienBe645951d2017-09-28 18:44:18 +0200395 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
396 properties:
397 - '{maven-deploy-properties}'
398 settings: '{mvn-settings}'
399 settings-type: cfp
400 global-settings: 'global-settings'
401 global-settings-type: cfp
402
403 publishers:
404 - infra-shiplogs:
405 maven-version: '{maven-version}'
406
407
408- job-template:
Carsten Lundda8b6972017-02-15 23:59:25 +0000409 # Job template for Java daily release jobs with POM not at the root
410 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800411 # The purpose of this job template is to run:
412 # 1. maven clean deploy with Sonar scans
413 #
414 # This job supports subprojects.
Carsten Lundda8b6972017-02-15 23:59:25 +0000415 #
416 # Required Variables:
417 # branch: git branch (eg. stable/lithium or master)
418 # pom: name/location of the pom.xml file relative to the workspace
419
Carsten Lundda8b6972017-02-15 23:59:25 +0000420 name: '{project-name}-{stream}-{subproject}-release-java-daily'
421
422 project-type: freestyle
423 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700424 disabled: '{disabled}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000425 maven-deploy-properties:
426 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700427 - infra-properties:
Carsten Lundda8b6972017-02-15 23:59:25 +0000428 build-days-to-keep: '{build-days-to-keep}'
429
430 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700431 - infra-parameters:
Carsten Lundda8b6972017-02-15 23:59:25 +0000432 project: '{project}'
433 branch: '{branch}'
434 refspec: 'refs/heads/{branch}'
435 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800436 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800437 maven-version: '{maven-version}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000438
439 scm:
440 - gerrit-trigger-scm:
441 refspec: ''
442 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500443 submodule-recursive: '{submodule-recursive}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000444
445 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700446 - infra-wrappers:
Carsten Lundda8b6972017-02-15 23:59:25 +0000447 build-timeout: '{build-timeout}'
448
449 triggers:
450 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700451 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800452 - gerrit-trigger-release-manually:
453 server: '{server-name}'
454 project: '{project}'
455 branch: '{branch}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000456
457 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700458 - lf-infra-pre-build
Carsten Lundda8b6972017-02-15 23:59:25 +0000459 - provide-maven-settings:
460 global-settings-file: 'global-settings'
461 settings-file: '{mvn-settings}'
462
Carsten Lundda8b6972017-02-15 23:59:25 +0000463 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800464 maven-version: '{maven-version}'
Carsten Lund63cd3b82017-02-18 18:19:22 +0000465 pom: '{pom}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800466 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400467 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lundda8b6972017-02-15 23:59:25 +0000468 properties:
469 - '{maven-deploy-properties}'
Jessica Wagantall30f0d782017-08-08 13:37:25 -0700470 java-opts:
471 - '-Xmx4096m -XX:MaxPermSize=512m'
Carsten Lundda8b6972017-02-15 23:59:25 +0000472 settings: '{mvn-settings}'
473 settings-type: cfp
474 global-settings: 'global-settings'
475 global-settings-type: cfp
476
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700477 publishers:
478 - infra-shiplogs:
479 maven-version: '{maven-version}'
480
Carsten Lundda8b6972017-02-15 23:59:25 +0000481- job-template:
Jessica Wagantallae897942017-09-28 10:56:55 -0700482 # Job template for Java daily release jobs with POM not at the root
483 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800484 # The purpose of this job template is to run:
485 # 1. maven set versions
486 # 2. maven clean deploy with Sonar scans
487 #
488 # This job supports subprojects.
Jessica Wagantallae897942017-09-28 10:56:55 -0700489 #
490 # Required Variables:
491 # branch: git branch (eg. stable/lithium or master)
492 # pom: name/location of the pom.xml file relative to the workspace
493
Zhaoxinga77c0412017-10-11 09:05:49 +0800494 name: '{project-name}-{stream}-{subproject}-release-version-java-daily'
495
496 project-type: freestyle
497 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700498 disabled: '{disabled}'
Jessica Wagantallae237f72019-04-04 20:30:44 -0700499 version-properties: 'version.properties'
Zhaoxinga77c0412017-10-11 09:05:49 +0800500 maven-deploy-properties:
501 properties:
502 - infra-properties:
503 build-days-to-keep: '{build-days-to-keep}'
504
505 parameters:
506 - infra-parameters:
507 project: '{project}'
508 branch: '{branch}'
509 refspec: 'refs/heads/{branch}'
510 artifacts: '{archive-artifacts}'
511 - maven-exec:
512 maven-version: '{maven-version}'
513
514 scm:
515 - gerrit-trigger-scm:
516 refspec: ''
517 choosing-strategy: 'default'
518 submodule-recursive: '{submodule-recursive}'
519
520 wrappers:
521 - infra-wrappers:
522 build-timeout: '{build-timeout}'
523
524 triggers:
525 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700526 - timed: '@daily'
Zhaoxinga77c0412017-10-11 09:05:49 +0800527 - gerrit-trigger-release-manually:
528 server: '{server-name}'
529 project: '{project}'
530 branch: '{branch}'
531
532 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700533 - lf-infra-pre-build
Zhaoxinga77c0412017-10-11 09:05:49 +0800534 - provide-maven-settings:
535 global-settings-file: 'global-settings'
536 settings-file: '{mvn-settings}'
537
538 - inject:
Jessica Wagantallae237f72019-04-04 20:30:44 -0700539 properties-file: '{version-properties}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700540 - maven-set-release-version:
Zhaoxinga77c0412017-10-11 09:05:49 +0800541 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700542 mvn-settings: '{mvn-settings}'
Zhaoxing327f9592017-10-13 13:37:17 +0800543 pom: '{pom}'
Zhaoxinga77c0412017-10-11 09:05:49 +0800544
545 - maven-target:
546 maven-version: '{maven-version}'
547 pom: '{pom}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800548 goals: 'clean deploy -B
Zhaoxinga77c0412017-10-11 09:05:49 +0800549 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
550 properties:
551 - '{maven-deploy-properties}'
552 settings: '{mvn-settings}'
553 settings-type: cfp
554 global-settings: 'global-settings'
555 global-settings-type: cfp
556
557 publishers:
558 - infra-shiplogs:
559 maven-version: '{maven-version}'
560
Jessica Wagantall91685e12018-03-20 17:13:40 -0700561
Gary Wu6c702772018-08-06 18:48:02 -0700562- job-template: &merge_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800563 # Job template for Java merge jobs
564 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800565 # The purpose of this job template is to run:
566 # 1. maven clean deploy
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800567 #
568 # Required Variables:
569 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800570
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800571 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800572
573 project-type: freestyle
574 node: '{build-node}'
Gary Wu6c702772018-08-06 18:48:02 -0700575 pattern: '**'
576 pom:
577 mvn_properties: []
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700578 mvn-params: ''
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800579
580 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700581 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800582 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800583
584 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700585 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800586 project: '{project}'
587 branch: '{branch}'
588 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800589 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800590 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800591 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800592
593 scm:
594 - gerrit-trigger-scm:
595 refspec: ''
596 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500597 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800598
599 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700600 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800601 build-timeout: '{build-timeout}'
602
603 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800604 - gerrit-trigger-patch-merged:
605 server: '{server-name}'
606 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800607 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800608 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800609
610 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700611 - lf-infra-pre-build
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800612 - provide-maven-settings:
613 global-settings-file: 'global-settings'
614 settings-file: '{mvn-settings}'
615 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800616 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -0700617 pom: '{obj:pom}'
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700618 goals: 'clean deploy -B {mvn-params}
Andrew Grimberge55b6222017-05-03 16:19:28 -0400619 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800620 settings: '{mvn-settings}'
621 settings-type: cfp
622 global-settings: 'global-settings'
623 global-settings-type: cfp
Gary Wu6c702772018-08-06 18:48:02 -0700624 properties: '{obj:mvn_properties}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800625
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700626 publishers:
627 - infra-shiplogs:
628 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100629
630- job-template:
Gary Wu6c702772018-08-06 18:48:02 -0700631 # Job template for Java merge jobs based on
632 # '{project-name}-{stream}-merge-java'
633 # The purpose of this job template is to run:
634 # 1. maven clean deploy
635 #
636 # This project supports maven properties.
637 #
638 # Required Variables:
639 # branch: git branch (eg. stable/lithium or master)
640 # maven-properties: properties passed to maven
641
642 <<: *merge_java_defaults
643 name: '{project-name}-{stream}-merge-properties-java'
644
645- job-template:
646 # Job template for Java merge jobs that takes a maven template
647 #
648 # The purpose of this job template is to run:
649 # 1. maven clean deploy -P {mvn-profile}
650 #
651 # Required Variables:
652 # branch: git branch (eg. stable/lithium or master)
653
654 <<: *merge_java_defaults
655 name: '{project-name}-{stream}-merge-profile-java'
656
657 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700658 - lf-infra-pre-build
Gary Wu6c702772018-08-06 18:48:02 -0700659 - provide-maven-settings:
660 global-settings-file: 'global-settings'
661 settings-file: '{mvn-settings}'
662
663 - docker-login
664
665 - maven-target:
666 maven-version: '{maven-version}'
667 goals: 'clean deploy -P {mvn-profile} -B
668 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
669 settings: '{mvn-settings}'
670 settings-type: cfp
671 global-settings: 'global-settings'
672 global-settings-type: cfp
673 properties:
674 - docker.pull.registry=nexus3.onap.org:10001
675 - docker.push.registry=nexus3.onap.org:10003
676
677- job-template:
678 # Job template for Java merge jobs with POM not at the root
679 #
680 # The purpose of this job template is to run:
681 # 1. maven clean deploy
682 #
683 # This job supports subprojects.
684 #
685 # Required Variables:
686 # branch: git branch (eg. stable/lithium or master)
687 # pom: name/location of the pom.xml file relative to the workspace
688 # pattern: ant file-path pattern relative to the workspace used to
689 # trigger the job
690
691 <<: *merge_java_defaults
692 name: '{project-name}-{stream}-{subproject}-merge-java'
693
Gary Wu350fbcb2018-08-07 11:13:59 -0700694- job-template: &docker_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800695 # Job template for Docker daily jobs
696 #
697 # The purpose of this job template is to run:
698 # 1. login to the docker registry
699 # 2. docker push
700 #
701 # Required Variables:
702 # branch: git branch (eg. stable/lithium or master)
703
Anaël Clossonabbafb52017-02-09 17:55:10 +0100704 name: '{project-name}-{stream}-docker-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700705 id: '{project-name}-{stream}-docker-java-daily'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100706 project-type: freestyle
Jessica Wagantall34e6d6b2018-11-08 12:43:06 -0800707 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700708 disabled: '{disabled}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100709 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700710 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100711 build-days-to-keep: '{build-days-to-keep}'
712
713 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700714 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100715 project: '{project}'
716 branch: '{branch}'
717 refspec: 'refs/heads/{branch}'
718 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800719 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800720 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700721 - maven-params:
722 mvn-params: '{mvn-params}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100723
724 scm:
725 - gerrit-trigger-scm:
726 refspec: ''
727 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500728 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100729
Anaël Clossonabbafb52017-02-09 17:55:10 +0100730 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700731 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100732 build-timeout: '{build-timeout}'
733
734 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800735 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700736 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800737 - gerrit-trigger-release-manually:
738 server: '{server-name}'
739 project: '{project}'
740 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100741
742 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700743 - lf-infra-pre-build
Anaël Clossonabbafb52017-02-09 17:55:10 +0100744 - provide-maven-settings:
745 global-settings-file: 'global-settings'
746 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100747
Anaël Closson63e090e2017-02-15 14:50:45 +0100748 - docker-login
749
Anaël Clossonabbafb52017-02-09 17:55:10 +0100750 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800751 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100752 mvn-settings: '{mvn-settings}'
753 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100754 # use default as mvn-profile if profile is not needed
755 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700756 mvn-params: '{mvn-params}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500757
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700758 publishers:
759 - infra-shiplogs:
760 maven-version: '{maven-version}'
761
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500762- job-template:
Gary Wu9e9210f2018-07-18 16:19:20 -0700763 # Job template for Docker daily jobs
764 #
765 # The purpose of this job template is to run:
766 # 1. login to the docker registry
767 # 2. docker push
768 #
769 # Required Variables:
770 # branch: git branch (eg. stable/lithium or master)
771
Gary Wu350fbcb2018-08-07 11:13:59 -0700772 <<: *docker_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700773 name: '{project-name}-{stream}-docker-java-daily'
774 id: docker-java-daily
Gary Wu9e9210f2018-07-18 16:19:20 -0700775 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700776 wrappers:
777 - infra-wrappers-docker-build:
778 build-timeout: '{build-timeout}'
779
Gary Wu9e9210f2018-07-18 16:19:20 -0700780- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +0200781 # Job template for building & pushing docker images
782 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800783 # The purpose of this job template is to run:
JulienBe91c56ec2017-06-21 23:37:39 +0200784 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800785 # 2. maven clean deploy on the specified profile
786 #
787 # This job uses a conditional regex match step to set versions.
788 # This template supports maven properties.
JulienBe91c56ec2017-06-21 23:37:39 +0200789 #
790 # Required Variables:
791 # pom: name/location of the pom.xml file relative to the workspace
792 # profile: the docker profile defined in the pom
793 # maven-properties: properties passed to maven
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800794
JulienBe91c56ec2017-06-21 23:37:39 +0200795 name: '{project-name}-{stream}-docker-java-properties-daily'
796 project-type: freestyle
Jessica Wagantallbedaaee2018-11-08 12:51:52 -0800797 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700798 disabled: '{disabled}'
JulienBe91c56ec2017-06-21 23:37:39 +0200799 properties:
800 - infra-properties:
801 build-days-to-keep: '{build-days-to-keep}'
802 parameters:
803 - infra-parameters:
804 project: '{project}'
805 branch: '{branch}'
806 refspec: 'refs/heads/{branch}'
807 artifacts: '{archive-artifacts}'
808 - maven-exec:
809 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700810 - maven-params:
811 mvn-params: '{mvn-params}'
JulienBe91c56ec2017-06-21 23:37:39 +0200812 scm:
813 - gerrit-trigger-scm:
814 refspec: ''
815 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500816 submodule-recursive: '{submodule-recursive}'
JulienBe91c56ec2017-06-21 23:37:39 +0200817 wrappers:
818 - infra-wrappers:
819 build-timeout: '{build-timeout}'
820 triggers:
821 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700822 - timed: '@daily'
JulienBe91c56ec2017-06-21 23:37:39 +0200823 - gerrit-trigger-release-manually:
824 server: '{server-name}'
825 project: '{project}'
826 branch: '{branch}'
827 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700828 - lf-infra-pre-build
JulienBe91c56ec2017-06-21 23:37:39 +0200829 - provide-maven-settings:
830 global-settings-file: 'global-settings'
831 settings-file: '{mvn-settings}'
JulienBecda17972017-10-17 13:46:51 +0200832 - conditional-step:
833 condition-kind: regex-match
834 regex: DoSetVersion
835 label: '{setVersion}'
836 steps:
837 - inject:
838 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700839 - maven-set-release-version:
JulienBecda17972017-10-17 13:46:51 +0200840 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700841 mvn-settings: '{mvn-settings}'
842 pom:
JulienBe91c56ec2017-06-21 23:37:39 +0200843 - docker-login
844 - maven-docker-push-daily:
845 maven-version: '{maven-version}'
846 mvn-settings: '{mvn-settings}'
847 pom: '{docker-pom}'
848 properties: '{maven-properties}'
849 # use default as mvn-profile if profile is not needed
850 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700851 mvn-params: '{mvn-params}'
JulienBe91c56ec2017-06-21 23:37:39 +0200852 publishers:
853 - infra-shiplogs:
854 maven-version: '{maven-version}'
855
856- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800857 # Job template for building & pushing docker images
858 #
859 # The purpose of this job template is to run:
860 # 1. login to the docker registry
861 # 2. run a specified shell builder
862 #
863 # Required Variables:
864 # pom: name/location of the pom.xml file relative to the workspace
865 # maven-properties: properties passed to maven
866
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500867 name: '{project-name}-{stream}-docker-java-shell-daily'
868 project-type: freestyle
Jessica Wagantallfe5efea2018-08-07 16:02:39 -0700869 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700870 disabled: '{disabled}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500871 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700872 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500873 build-days-to-keep: '{build-days-to-keep}'
874
875 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700876 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500877 project: '{project}'
878 branch: '{branch}'
879 refspec: 'refs/heads/{branch}'
880 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800881 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800882 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500883
884 scm:
885 - gerrit-trigger-scm:
886 refspec: ''
887 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500888 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500889
890 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700891 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500892 build-timeout: '{build-timeout}'
893
894 triggers:
895 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700896 - timed: '@daily'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500897 - gerrit-trigger-release-manually:
898 server: '{server-name}'
899 project: '{project}'
900 branch: '{branch}'
901
902 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700903 - lf-infra-pre-build
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500904 - provide-maven-settings:
905 global-settings-file: 'global-settings'
906 settings-file: '{mvn-settings}'
907
908 - docker-login
909
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500910 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800911 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500912 goals: '{mvn-goals}'
913 settings: '{mvn-settings}'
914 settings-type: cfp
915 global-settings: 'global-settings'
916 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500917
918 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000919
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700920 publishers:
921 - infra-shiplogs:
922 maven-version: '{maven-version}'
923
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000924- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800925 # Job template for building & pushing docker images
926 #
927 # The purpose of this job template is to run:
928 # 1. login to the docker registry
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700929 # 2. run a specified shell builder
930 #
931 # Required Variables:
932 # pom: name/location of the pom.xml file relative to the workspace
933 # maven-properties: properties passed to maven
934
935 name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily'
936 project-type: freestyle
937 node: '{build-node}'
938 disabled: '{disabled}'
939 properties:
940 - infra-properties:
941 build-days-to-keep: '{build-days-to-keep}'
942
943 parameters:
944 - infra-parameters:
945 project: '{project}'
946 branch: '{branch}'
947 refspec: 'refs/heads/{branch}'
948 artifacts: '{archive-artifacts}'
949 - maven-exec:
950 maven-version: '{maven-version}'
951
952 scm:
953 - gerrit-trigger-scm:
954 refspec: ''
955 choosing-strategy: 'default'
956 submodule-recursive: '{submodule-recursive}'
957
958 wrappers:
959 - infra-wrappers:
960 build-timeout: '{build-timeout}'
961
962 triggers:
963 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700964 - timed: '@daily'
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700965 - gerrit-trigger-release-manually:
966 server: '{server-name}'
967 project: '{project}'
968 branch: '{branch}'
969
970 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700971 - lf-infra-pre-build
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700972 - provide-maven-settings:
973 global-settings-file: 'global-settings'
974 settings-file: '{mvn-settings}'
975
976 - docker-login
977
978 - maven-target:
979 maven-version: '{maven-version}'
980 pom: '{pom}'
981 goals: '{mvn-goals}'
982 settings: '{mvn-settings}'
983 settings-type: cfp
984 global-settings: 'global-settings'
985 global-settings-type: cfp
986
987 - shell: '{script}'
988
989 publishers:
990 - infra-shiplogs:
991 maven-version: '{maven-version}'
992
993- job-template:
994 # Job template for building & pushing docker images
995 #
996 # The purpose of this job template is to run:
997 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800998 # 2. inject a version.properties file and set versions
999 # 3. run a specified shell builder
1000 #
1001 # Required Variables:
1002 # pom: name/location of the pom.xml file relative to the workspace
1003 # maven-properties: properties passed to maven
1004
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001005 name: '{project-name}-{stream}-docker-java-version-shell-daily'
1006 project-type: freestyle
Jessica Wagantalld50aa192018-11-08 13:03:33 -08001007 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001008 disabled: '{disabled}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001009 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001010 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001011 build-days-to-keep: '{build-days-to-keep}'
1012
1013 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001014 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001015 project: '{project}'
1016 branch: '{branch}'
1017 refspec: 'refs/heads/{branch}'
1018 artifacts: '{archive-artifacts}'
1019 - maven-exec:
1020 maven-version: '{maven-version}'
1021
1022 scm:
1023 - gerrit-trigger-scm:
1024 refspec: ''
1025 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001026 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001027
1028 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001029 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001030 build-timeout: '{build-timeout}'
1031
1032 triggers:
1033 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001034 - timed: '@daily'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001035 - gerrit-trigger-release-manually:
1036 server: '{server-name}'
1037 project: '{project}'
1038 branch: '{branch}'
1039
1040 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001041 - lf-infra-pre-build
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001042 - provide-maven-settings:
1043 global-settings-file: 'global-settings'
1044 settings-file: '{mvn-settings}'
1045
1046 - inject:
1047 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001048 - maven-set-release-version:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001049 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001050 mvn-settings: '{mvn-settings}'
1051 pom:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001052
1053 - docker-login
1054
1055 - maven-target:
1056 maven-version: '{maven-version}'
1057 goals: '{mvn-goals}'
1058 settings: '{mvn-settings}'
1059 settings-type: cfp
1060 global-settings: 'global-settings'
1061 global-settings-type: cfp
1062
1063 - shell: '{script}'
1064
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001065 publishers:
1066 - infra-shiplogs:
1067 maven-version: '{maven-version}'
1068
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001069- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001070 # Job template for building & pushing docker images
1071 #
1072 # The purpose of this job template is to run:
1073 # 1. login to the docker registry
1074 # 2. inject a version.properties file and set versions
1075 # 3. run a specified shell builder
1076 #
1077 # This template supports subprojects.
1078 #
1079 # Required Variables:
1080 # pom: name/location of the pom.xml file relative to the workspace
1081 # maven-properties: properties passed to maven
1082
Zhaoxing49773042017-10-13 17:14:35 +08001083 name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
1084 project-type: freestyle
1085 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001086 disabled: '{disabled}'
Zhaoxing49773042017-10-13 17:14:35 +08001087 properties:
1088 - infra-properties:
1089 build-days-to-keep: '{build-days-to-keep}'
1090
1091 parameters:
1092 - infra-parameters:
1093 project: '{project}'
1094 branch: '{branch}'
1095 refspec: 'refs/heads/{branch}'
1096 artifacts: '{archive-artifacts}'
1097 - maven-exec:
1098 maven-version: '{maven-version}'
1099
1100 scm:
1101 - gerrit-trigger-scm:
1102 refspec: ''
1103 choosing-strategy: 'default'
1104 submodule-recursive: '{submodule-recursive}'
1105
1106 wrappers:
1107 - infra-wrappers:
1108 build-timeout: '{build-timeout}'
1109
1110 triggers:
1111 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001112 - timed: '@daily'
Zhaoxing49773042017-10-13 17:14:35 +08001113 - gerrit-trigger-release-manually:
1114 server: '{server-name}'
1115 project: '{project}'
1116 branch: '{branch}'
1117
1118 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001119 - lf-infra-pre-build
Zhaoxing49773042017-10-13 17:14:35 +08001120 - provide-maven-settings:
1121 global-settings-file: 'global-settings'
1122 settings-file: '{mvn-settings}'
1123
1124 - inject:
1125 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001126 - maven-set-release-version:
Zhaoxing49773042017-10-13 17:14:35 +08001127 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001128 mvn-settings: '{mvn-settings}'
Zhaoxing49773042017-10-13 17:14:35 +08001129 pom: '{pom}'
Zhaoxing49773042017-10-13 17:14:35 +08001130
1131 - docker-login
1132
1133 - maven-target:
1134 maven-version: '{maven-version}'
1135 pom: '{pom}'
1136 goals: '{mvn-goals}'
1137 settings: '{mvn-settings}'
1138 settings-type: cfp
1139 global-settings: 'global-settings'
1140 global-settings-type: cfp
1141
1142 - shell: '{script}'
1143
1144 publishers:
1145 - infra-shiplogs:
1146 maven-version: '{maven-version}'
1147
Gary Wu350fbcb2018-08-07 11:13:59 -07001148- job-template: &docker_version_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001149 # Job template for building & pushing docker images
1150 #
1151 # The purpose of this job template is to run:
1152 # 1. login to the docker registry
1153 # 2. inject a version.properties file and set versions
1154 # 3. run a docker push
1155 #
1156 # Required Variables:
1157 # pom: name/location of the pom.xml file relative to the workspace
1158 # profile: the docker profile defined in the pom
1159 # maven-properties: properties passed to maven
1160
Patrick Brady39f388a2017-03-09 11:26:59 -08001161 name: '{project-name}-{stream}-docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -07001162 id: '{project-name}-{stream}-docker-version-java-daily'
Patrick Brady39f388a2017-03-09 11:26:59 -08001163 project-type: freestyle
Paul Vaduva6dd88542018-12-11 16:59:12 +01001164 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001165 disabled: '{disabled}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001166 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001167 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -08001168 build-days-to-keep: '{build-days-to-keep}'
1169
1170 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001171 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -08001172 project: '{project}'
1173 branch: '{branch}'
1174 refspec: 'refs/heads/{branch}'
1175 artifacts: '{archive-artifacts}'
1176 - maven-exec:
1177 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -07001178 - maven-params:
1179 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001180
1181 scm:
1182 - gerrit-trigger-scm:
1183 refspec: ''
1184 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001185 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001186
1187 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001188 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -08001189 build-timeout: '{build-timeout}'
1190
1191 triggers:
1192 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001193 - timed: '@daily'
Patrick Brady39f388a2017-03-09 11:26:59 -08001194 - gerrit-trigger-release-manually:
1195 server: '{server-name}'
1196 project: '{project}'
1197 branch: '{branch}'
1198
1199 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001200 - lf-infra-pre-build
Patrick Brady39f388a2017-03-09 11:26:59 -08001201 - provide-maven-settings:
1202 global-settings-file: 'global-settings'
1203 settings-file: '{mvn-settings}'
1204
1205 - inject:
1206 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001207 - maven-set-release-version:
Patrick Brady39f388a2017-03-09 11:26:59 -08001208 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001209 mvn-settings: '{mvn-settings}'
1210 pom:
Patrick Brady39f388a2017-03-09 11:26:59 -08001211
1212 - docker-login
1213
1214 - maven-docker-push-daily:
1215 maven-version: '{maven-version}'
1216 mvn-settings: '{mvn-settings}'
1217 pom: '{docker-pom}'
1218 # use default as mvn-profile if profile is not needed
1219 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -07001220 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001221
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001222 publishers:
1223 - infra-shiplogs:
1224 maven-version: '{maven-version}'
1225
Patrick Brady39f388a2017-03-09 11:26:59 -08001226- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001227 # Job template for building & pushing docker images
1228 #
1229 # The purpose of this job template is to run:
Gary Wu9e9210f2018-07-18 16:19:20 -07001230 # 1. login to the docker registry
1231 # 2. inject a version.properties file and set versions
1232 # 3. run a docker push
1233 #
1234 # Required Variables:
1235 # pom: name/location of the pom.xml file relative to the workspace
1236 # profile: the docker profile defined in the pom
1237 # maven-properties: properties passed to maven
1238
Gary Wu350fbcb2018-08-07 11:13:59 -07001239 <<: *docker_version_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -07001240 name: '{project-name}-{stream}-docker-version-java-daily'
1241 id: 'docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -07001242 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -07001243 wrappers:
1244 - infra-wrappers-docker-build:
1245 build-timeout: '{build-timeout}'
1246
Zhaoxing49773042017-10-13 17:14:35 +08001247- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001248 # Job template for building & pushing docker images for AAI specific repos
1249 #
1250 # The purpose of this job template is to run:
1251 # 1. login to the docker registry
1252 # 2. run maven goals
1253 # 3. run include-docker-push.sh
1254 #
1255 # Required Variables:
1256 # pom: name/location of the pom.xml file relative to the workspace
1257 # maven-properties: properties passed to maven
1258
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001259 name: '{project-name}-{stream}-aai-docker-java-daily'
1260 project-type: freestyle
Jessica Wagantallab30bf62018-11-08 12:20:48 -08001261 node: '{build-node}'
Gary Wudc3f2952017-08-23 16:48:59 -07001262 docker-image-name: ''
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001263 disabled: '{disabled}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001264 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001265 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001266 build-days-to-keep: '{build-days-to-keep}'
1267
1268 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001269 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001270 project: '{project}'
1271 branch: '{branch}'
1272 refspec: 'refs/heads/{branch}'
1273 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001274 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001275 maven-version: '{maven-version}'
Gary Wudc3f2952017-08-23 16:48:59 -07001276 - docker-image-name:
1277 docker-image-name: '{docker-image-name}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001278
1279 scm:
1280 - gerrit-trigger-scm:
1281 refspec: ''
1282 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001283 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001284
1285 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001286 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001287 build-timeout: '{build-timeout}'
1288
1289 triggers:
1290 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001291 - timed: '@daily'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001292 - gerrit-trigger-release-manually:
1293 server: '{server-name}'
1294 project: '{project}'
1295 branch: '{branch}'
1296
1297 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001298 - lf-infra-pre-build
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001299 - provide-maven-settings:
1300 global-settings-file: 'global-settings'
1301 settings-file: '{mvn-settings}'
1302
1303 - docker-login
1304
1305 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001306 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001307 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001308 goals: 'clean install -DskipTests -B
1309 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001310 settings: '{mvn-settings}'
1311 settings-type: cfp
1312 global-settings: 'global-settings'
1313 global-settings-type: cfp
1314
1315 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001316 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001317 pom: '{pom}'
1318 goals: '{mvn-goals}'
1319 settings: '{mvn-settings}'
1320 settings-type: cfp
1321 global-settings: 'global-settings'
1322 global-settings-type: cfp
1323 properties:
1324 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001325 - docker.pull.registry=nexus3.onap.org:10001
1326 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001327
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001328 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001329
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001330 publishers:
1331 - infra-shiplogs:
1332 maven-version: '{maven-version}'
1333
Carsten Lund2d06a692017-02-23 18:23:07 +00001334- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001335 # Job template for Java merge jobs for SDC specific repos
ig61339fdb9d22017-04-03 17:47:19 +03001336 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001337 # The purpose of this job template is to run:
1338 # 1. maven clean deploy
ig61339fdb9d22017-04-03 17:47:19 +03001339 #
1340 # Required Variables:
1341 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001342
Gary Wu6c702772018-08-06 18:48:02 -07001343 <<: *merge_java_defaults
ig61339fdb9d22017-04-03 17:47:19 +03001344 name: '{project-name}-{stream}-sdc-merge-java'
1345
Paul Vaduva3aebd312019-02-01 13:35:21 +01001346 node: '{build-node}'
Jessica Wagantall9a89de42018-04-18 11:35:17 -07001347 build-timeout: 120
ig61339fdb9d22017-04-03 17:47:19 +03001348
ig61339fdb9d22017-04-03 17:47:19 +03001349 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001350 - lf-infra-pre-build
ig61339fdb9d22017-04-03 17:47:19 +03001351 - provide-maven-settings:
1352 global-settings-file: 'global-settings'
1353 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001354
1355 - docker-login
1356
Gary Wu6c702772018-08-06 18:48:02 -07001357 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001358 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001359 mvn-settings: '{mvn-settings}'
1360 pom: '{docker-pom}'
1361 # use default as mvn-profile if profile is not needed
1362 mvn-profile: '{mvn-profile}'
Gary Wu6c702772018-08-06 18:48:02 -07001363 mvn-params: ''