blob: 4305b71c75f8874e10b6fc64df24484e3e3caaa9 [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: ''
Houa Yangb7778e62019-09-03 13:23:05 -0500579 mvn-opts: ''
580 java-opts: ''
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800581
582 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700583 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800584 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800585
586 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700587 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800588 project: '{project}'
589 branch: '{branch}'
590 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800591 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800592 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800593 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800594
595 scm:
596 - gerrit-trigger-scm:
597 refspec: ''
598 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500599 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800600
601 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700602 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800603 build-timeout: '{build-timeout}'
604
605 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800606 - gerrit-trigger-patch-merged:
607 server: '{server-name}'
608 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800609 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800610 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800611
612 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700613 - lf-infra-pre-build
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800614 - provide-maven-settings:
615 global-settings-file: 'global-settings'
616 settings-file: '{mvn-settings}'
617 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800618 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -0700619 pom: '{obj:pom}'
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700620 goals: 'clean deploy -B {mvn-params}
Andrew Grimberge55b6222017-05-03 16:19:28 -0400621 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Houa Yangb7778e62019-09-03 13:23:05 -0500622 properties:
623 - MAVEN_OPTS='{mvn-opts}'
624 java-opts:
625 - "{java-opts}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800626 settings: '{mvn-settings}'
627 settings-type: cfp
628 global-settings: 'global-settings'
629 global-settings-type: cfp
Gary Wu6c702772018-08-06 18:48:02 -0700630 properties: '{obj:mvn_properties}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800631
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700632 publishers:
633 - infra-shiplogs:
634 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100635
636- job-template:
Gary Wu6c702772018-08-06 18:48:02 -0700637 # Job template for Java merge jobs based on
638 # '{project-name}-{stream}-merge-java'
639 # The purpose of this job template is to run:
640 # 1. maven clean deploy
641 #
642 # This project supports maven properties.
643 #
644 # Required Variables:
645 # branch: git branch (eg. stable/lithium or master)
646 # maven-properties: properties passed to maven
647
648 <<: *merge_java_defaults
649 name: '{project-name}-{stream}-merge-properties-java'
650
651- job-template:
652 # Job template for Java merge jobs that takes a maven template
653 #
654 # The purpose of this job template is to run:
655 # 1. maven clean deploy -P {mvn-profile}
656 #
657 # Required Variables:
658 # branch: git branch (eg. stable/lithium or master)
659
660 <<: *merge_java_defaults
661 name: '{project-name}-{stream}-merge-profile-java'
662
663 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700664 - lf-infra-pre-build
Gary Wu6c702772018-08-06 18:48:02 -0700665 - provide-maven-settings:
666 global-settings-file: 'global-settings'
667 settings-file: '{mvn-settings}'
668
669 - docker-login
670
671 - maven-target:
672 maven-version: '{maven-version}'
673 goals: 'clean deploy -P {mvn-profile} -B
674 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
675 settings: '{mvn-settings}'
676 settings-type: cfp
677 global-settings: 'global-settings'
678 global-settings-type: cfp
679 properties:
680 - docker.pull.registry=nexus3.onap.org:10001
681 - docker.push.registry=nexus3.onap.org:10003
682
683- job-template:
684 # Job template for Java merge jobs with POM not at the root
685 #
686 # The purpose of this job template is to run:
687 # 1. maven clean deploy
688 #
689 # This job supports subprojects.
690 #
691 # Required Variables:
692 # branch: git branch (eg. stable/lithium or master)
693 # pom: name/location of the pom.xml file relative to the workspace
694 # pattern: ant file-path pattern relative to the workspace used to
695 # trigger the job
696
697 <<: *merge_java_defaults
698 name: '{project-name}-{stream}-{subproject}-merge-java'
699
Gary Wu350fbcb2018-08-07 11:13:59 -0700700- job-template: &docker_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800701 # Job template for Docker daily jobs
702 #
703 # The purpose of this job template is to run:
704 # 1. login to the docker registry
705 # 2. docker push
706 #
707 # Required Variables:
708 # branch: git branch (eg. stable/lithium or master)
709
Anaël Clossonabbafb52017-02-09 17:55:10 +0100710 name: '{project-name}-{stream}-docker-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700711 id: '{project-name}-{stream}-docker-java-daily'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100712 project-type: freestyle
Jessica Wagantall34e6d6b2018-11-08 12:43:06 -0800713 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700714 disabled: '{disabled}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100715 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700716 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100717 build-days-to-keep: '{build-days-to-keep}'
718
719 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700720 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100721 project: '{project}'
722 branch: '{branch}'
723 refspec: 'refs/heads/{branch}'
724 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800725 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800726 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700727 - maven-params:
728 mvn-params: '{mvn-params}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100729
730 scm:
731 - gerrit-trigger-scm:
732 refspec: ''
733 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500734 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100735
Anaël Clossonabbafb52017-02-09 17:55:10 +0100736 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700737 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100738 build-timeout: '{build-timeout}'
739
740 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800741 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700742 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800743 - gerrit-trigger-release-manually:
744 server: '{server-name}'
745 project: '{project}'
746 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100747
748 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700749 - lf-infra-pre-build
Anaël Clossonabbafb52017-02-09 17:55:10 +0100750 - provide-maven-settings:
751 global-settings-file: 'global-settings'
752 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100753
Anaël Closson63e090e2017-02-15 14:50:45 +0100754 - docker-login
755
Anaël Clossonabbafb52017-02-09 17:55:10 +0100756 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800757 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100758 mvn-settings: '{mvn-settings}'
759 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100760 # use default as mvn-profile if profile is not needed
761 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700762 mvn-params: '{mvn-params}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500763
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700764 publishers:
765 - infra-shiplogs:
766 maven-version: '{maven-version}'
767
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500768- job-template:
Gary Wu9e9210f2018-07-18 16:19:20 -0700769 # Job template for Docker daily jobs
770 #
771 # The purpose of this job template is to run:
772 # 1. login to the docker registry
773 # 2. docker push
774 #
775 # Required Variables:
776 # branch: git branch (eg. stable/lithium or master)
777
Gary Wu350fbcb2018-08-07 11:13:59 -0700778 <<: *docker_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700779 name: '{project-name}-{stream}-docker-java-daily'
780 id: docker-java-daily
Gary Wu9e9210f2018-07-18 16:19:20 -0700781 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700782 wrappers:
783 - infra-wrappers-docker-build:
784 build-timeout: '{build-timeout}'
785
Gary Wu9e9210f2018-07-18 16:19:20 -0700786- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +0200787 # Job template for building & pushing docker images
788 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800789 # The purpose of this job template is to run:
JulienBe91c56ec2017-06-21 23:37:39 +0200790 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800791 # 2. maven clean deploy on the specified profile
792 #
793 # This job uses a conditional regex match step to set versions.
794 # This template supports maven properties.
JulienBe91c56ec2017-06-21 23:37:39 +0200795 #
796 # Required Variables:
797 # pom: name/location of the pom.xml file relative to the workspace
798 # profile: the docker profile defined in the pom
799 # maven-properties: properties passed to maven
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800800
JulienBe91c56ec2017-06-21 23:37:39 +0200801 name: '{project-name}-{stream}-docker-java-properties-daily'
802 project-type: freestyle
Jessica Wagantallbedaaee2018-11-08 12:51:52 -0800803 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700804 disabled: '{disabled}'
JulienBe91c56ec2017-06-21 23:37:39 +0200805 properties:
806 - infra-properties:
807 build-days-to-keep: '{build-days-to-keep}'
808 parameters:
809 - infra-parameters:
810 project: '{project}'
811 branch: '{branch}'
812 refspec: 'refs/heads/{branch}'
813 artifacts: '{archive-artifacts}'
814 - maven-exec:
815 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700816 - maven-params:
817 mvn-params: '{mvn-params}'
JulienBe91c56ec2017-06-21 23:37:39 +0200818 scm:
819 - gerrit-trigger-scm:
820 refspec: ''
821 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500822 submodule-recursive: '{submodule-recursive}'
JulienBe91c56ec2017-06-21 23:37:39 +0200823 wrappers:
824 - infra-wrappers:
825 build-timeout: '{build-timeout}'
826 triggers:
827 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700828 - timed: '@daily'
JulienBe91c56ec2017-06-21 23:37:39 +0200829 - gerrit-trigger-release-manually:
830 server: '{server-name}'
831 project: '{project}'
832 branch: '{branch}'
833 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700834 - lf-infra-pre-build
JulienBe91c56ec2017-06-21 23:37:39 +0200835 - provide-maven-settings:
836 global-settings-file: 'global-settings'
837 settings-file: '{mvn-settings}'
JulienBecda17972017-10-17 13:46:51 +0200838 - conditional-step:
839 condition-kind: regex-match
840 regex: DoSetVersion
841 label: '{setVersion}'
842 steps:
843 - inject:
844 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700845 - maven-set-release-version:
JulienBecda17972017-10-17 13:46:51 +0200846 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700847 mvn-settings: '{mvn-settings}'
848 pom:
JulienBe91c56ec2017-06-21 23:37:39 +0200849 - docker-login
850 - maven-docker-push-daily:
851 maven-version: '{maven-version}'
852 mvn-settings: '{mvn-settings}'
853 pom: '{docker-pom}'
854 properties: '{maven-properties}'
855 # use default as mvn-profile if profile is not needed
856 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700857 mvn-params: '{mvn-params}'
JulienBe91c56ec2017-06-21 23:37:39 +0200858 publishers:
859 - infra-shiplogs:
860 maven-version: '{maven-version}'
861
862- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800863 # Job template for building & pushing docker images
864 #
865 # The purpose of this job template is to run:
866 # 1. login to the docker registry
867 # 2. run a specified shell builder
868 #
869 # Required Variables:
870 # pom: name/location of the pom.xml file relative to the workspace
871 # maven-properties: properties passed to maven
872
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500873 name: '{project-name}-{stream}-docker-java-shell-daily'
874 project-type: freestyle
Jessica Wagantallfe5efea2018-08-07 16:02:39 -0700875 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700876 disabled: '{disabled}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500877 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700878 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500879 build-days-to-keep: '{build-days-to-keep}'
880
881 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700882 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500883 project: '{project}'
884 branch: '{branch}'
885 refspec: 'refs/heads/{branch}'
886 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800887 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800888 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500889
890 scm:
891 - gerrit-trigger-scm:
892 refspec: ''
893 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500894 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500895
896 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700897 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500898 build-timeout: '{build-timeout}'
899
900 triggers:
901 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700902 - timed: '@daily'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500903 - gerrit-trigger-release-manually:
904 server: '{server-name}'
905 project: '{project}'
906 branch: '{branch}'
907
908 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700909 - lf-infra-pre-build
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500910 - provide-maven-settings:
911 global-settings-file: 'global-settings'
912 settings-file: '{mvn-settings}'
913
914 - docker-login
915
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500916 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800917 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500918 goals: '{mvn-goals}'
919 settings: '{mvn-settings}'
920 settings-type: cfp
921 global-settings: 'global-settings'
922 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500923
924 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000925
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700926 publishers:
927 - infra-shiplogs:
928 maven-version: '{maven-version}'
929
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000930- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800931 # Job template for building & pushing docker images
932 #
933 # The purpose of this job template is to run:
934 # 1. login to the docker registry
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700935 # 2. run a specified shell builder
936 #
937 # Required Variables:
938 # pom: name/location of the pom.xml file relative to the workspace
939 # maven-properties: properties passed to maven
940
941 name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily'
942 project-type: freestyle
943 node: '{build-node}'
944 disabled: '{disabled}'
945 properties:
946 - infra-properties:
947 build-days-to-keep: '{build-days-to-keep}'
948
949 parameters:
950 - infra-parameters:
951 project: '{project}'
952 branch: '{branch}'
953 refspec: 'refs/heads/{branch}'
954 artifacts: '{archive-artifacts}'
955 - maven-exec:
956 maven-version: '{maven-version}'
957
958 scm:
959 - gerrit-trigger-scm:
960 refspec: ''
961 choosing-strategy: 'default'
962 submodule-recursive: '{submodule-recursive}'
963
964 wrappers:
965 - infra-wrappers:
966 build-timeout: '{build-timeout}'
967
968 triggers:
969 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700970 - timed: '@daily'
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700971 - gerrit-trigger-release-manually:
972 server: '{server-name}'
973 project: '{project}'
974 branch: '{branch}'
975
976 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700977 - lf-infra-pre-build
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700978 - provide-maven-settings:
979 global-settings-file: 'global-settings'
980 settings-file: '{mvn-settings}'
981
982 - docker-login
983
984 - maven-target:
985 maven-version: '{maven-version}'
986 pom: '{pom}'
987 goals: '{mvn-goals}'
988 settings: '{mvn-settings}'
989 settings-type: cfp
990 global-settings: 'global-settings'
991 global-settings-type: cfp
992
993 - shell: '{script}'
994
995 publishers:
996 - infra-shiplogs:
997 maven-version: '{maven-version}'
998
999- job-template:
1000 # Job template for building & pushing docker images
1001 #
1002 # The purpose of this job template is to run:
1003 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001004 # 2. inject a version.properties file and set versions
1005 # 3. run a specified shell builder
1006 #
1007 # Required Variables:
1008 # pom: name/location of the pom.xml file relative to the workspace
1009 # maven-properties: properties passed to maven
1010
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001011 name: '{project-name}-{stream}-docker-java-version-shell-daily'
1012 project-type: freestyle
Jessica Wagantalld50aa192018-11-08 13:03:33 -08001013 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001014 disabled: '{disabled}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001015 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001016 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001017 build-days-to-keep: '{build-days-to-keep}'
1018
1019 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001020 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001021 project: '{project}'
1022 branch: '{branch}'
1023 refspec: 'refs/heads/{branch}'
1024 artifacts: '{archive-artifacts}'
1025 - maven-exec:
1026 maven-version: '{maven-version}'
1027
1028 scm:
1029 - gerrit-trigger-scm:
1030 refspec: ''
1031 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001032 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001033
1034 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001035 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001036 build-timeout: '{build-timeout}'
1037
1038 triggers:
1039 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001040 - timed: '@daily'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001041 - gerrit-trigger-release-manually:
1042 server: '{server-name}'
1043 project: '{project}'
1044 branch: '{branch}'
1045
1046 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001047 - lf-infra-pre-build
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001048 - provide-maven-settings:
1049 global-settings-file: 'global-settings'
1050 settings-file: '{mvn-settings}'
1051
1052 - inject:
1053 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001054 - maven-set-release-version:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001055 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001056 mvn-settings: '{mvn-settings}'
1057 pom:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001058
1059 - docker-login
1060
1061 - maven-target:
1062 maven-version: '{maven-version}'
1063 goals: '{mvn-goals}'
1064 settings: '{mvn-settings}'
1065 settings-type: cfp
1066 global-settings: 'global-settings'
1067 global-settings-type: cfp
1068
1069 - shell: '{script}'
1070
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001071 publishers:
1072 - infra-shiplogs:
1073 maven-version: '{maven-version}'
1074
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001075- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001076 # Job template for building & pushing docker images
1077 #
1078 # The purpose of this job template is to run:
1079 # 1. login to the docker registry
1080 # 2. inject a version.properties file and set versions
1081 # 3. run a specified shell builder
1082 #
1083 # This template supports subprojects.
1084 #
1085 # Required Variables:
1086 # pom: name/location of the pom.xml file relative to the workspace
1087 # maven-properties: properties passed to maven
1088
Zhaoxing49773042017-10-13 17:14:35 +08001089 name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
1090 project-type: freestyle
1091 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001092 disabled: '{disabled}'
Zhaoxing49773042017-10-13 17:14:35 +08001093 properties:
1094 - infra-properties:
1095 build-days-to-keep: '{build-days-to-keep}'
1096
1097 parameters:
1098 - infra-parameters:
1099 project: '{project}'
1100 branch: '{branch}'
1101 refspec: 'refs/heads/{branch}'
1102 artifacts: '{archive-artifacts}'
1103 - maven-exec:
1104 maven-version: '{maven-version}'
1105
1106 scm:
1107 - gerrit-trigger-scm:
1108 refspec: ''
1109 choosing-strategy: 'default'
1110 submodule-recursive: '{submodule-recursive}'
1111
1112 wrappers:
1113 - infra-wrappers:
1114 build-timeout: '{build-timeout}'
1115
1116 triggers:
1117 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001118 - timed: '@daily'
Zhaoxing49773042017-10-13 17:14:35 +08001119 - gerrit-trigger-release-manually:
1120 server: '{server-name}'
1121 project: '{project}'
1122 branch: '{branch}'
1123
1124 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001125 - lf-infra-pre-build
Zhaoxing49773042017-10-13 17:14:35 +08001126 - provide-maven-settings:
1127 global-settings-file: 'global-settings'
1128 settings-file: '{mvn-settings}'
1129
1130 - inject:
1131 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001132 - maven-set-release-version:
Zhaoxing49773042017-10-13 17:14:35 +08001133 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001134 mvn-settings: '{mvn-settings}'
Zhaoxing49773042017-10-13 17:14:35 +08001135 pom: '{pom}'
Zhaoxing49773042017-10-13 17:14:35 +08001136
1137 - docker-login
1138
1139 - maven-target:
1140 maven-version: '{maven-version}'
1141 pom: '{pom}'
1142 goals: '{mvn-goals}'
1143 settings: '{mvn-settings}'
1144 settings-type: cfp
1145 global-settings: 'global-settings'
1146 global-settings-type: cfp
1147
1148 - shell: '{script}'
1149
1150 publishers:
1151 - infra-shiplogs:
1152 maven-version: '{maven-version}'
1153
Gary Wu350fbcb2018-08-07 11:13:59 -07001154- job-template: &docker_version_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001155 # Job template for building & pushing docker images
1156 #
1157 # The purpose of this job template is to run:
1158 # 1. login to the docker registry
1159 # 2. inject a version.properties file and set versions
1160 # 3. run a docker push
1161 #
1162 # Required Variables:
1163 # pom: name/location of the pom.xml file relative to the workspace
1164 # profile: the docker profile defined in the pom
1165 # maven-properties: properties passed to maven
1166
Patrick Brady39f388a2017-03-09 11:26:59 -08001167 name: '{project-name}-{stream}-docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -07001168 id: '{project-name}-{stream}-docker-version-java-daily'
Patrick Brady39f388a2017-03-09 11:26:59 -08001169 project-type: freestyle
Paul Vaduva6dd88542018-12-11 16:59:12 +01001170 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001171 disabled: '{disabled}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001172 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001173 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -08001174 build-days-to-keep: '{build-days-to-keep}'
1175
1176 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001177 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -08001178 project: '{project}'
1179 branch: '{branch}'
1180 refspec: 'refs/heads/{branch}'
1181 artifacts: '{archive-artifacts}'
1182 - maven-exec:
1183 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -07001184 - maven-params:
1185 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001186
1187 scm:
1188 - gerrit-trigger-scm:
1189 refspec: ''
1190 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001191 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001192
1193 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001194 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -08001195 build-timeout: '{build-timeout}'
1196
1197 triggers:
1198 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001199 - timed: '@daily'
Patrick Brady39f388a2017-03-09 11:26:59 -08001200 - gerrit-trigger-release-manually:
1201 server: '{server-name}'
1202 project: '{project}'
1203 branch: '{branch}'
1204
1205 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001206 - lf-infra-pre-build
Patrick Brady39f388a2017-03-09 11:26:59 -08001207 - provide-maven-settings:
1208 global-settings-file: 'global-settings'
1209 settings-file: '{mvn-settings}'
1210
1211 - inject:
1212 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001213 - maven-set-release-version:
Patrick Brady39f388a2017-03-09 11:26:59 -08001214 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001215 mvn-settings: '{mvn-settings}'
1216 pom:
Patrick Brady39f388a2017-03-09 11:26:59 -08001217
1218 - docker-login
1219
1220 - maven-docker-push-daily:
1221 maven-version: '{maven-version}'
1222 mvn-settings: '{mvn-settings}'
1223 pom: '{docker-pom}'
1224 # use default as mvn-profile if profile is not needed
1225 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -07001226 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001227
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001228 publishers:
1229 - infra-shiplogs:
1230 maven-version: '{maven-version}'
1231
Patrick Brady39f388a2017-03-09 11:26:59 -08001232- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001233 # Job template for building & pushing docker images
1234 #
1235 # The purpose of this job template is to run:
Gary Wu9e9210f2018-07-18 16:19:20 -07001236 # 1. login to the docker registry
1237 # 2. inject a version.properties file and set versions
1238 # 3. run a docker push
1239 #
1240 # Required Variables:
1241 # pom: name/location of the pom.xml file relative to the workspace
1242 # profile: the docker profile defined in the pom
1243 # maven-properties: properties passed to maven
1244
Gary Wu350fbcb2018-08-07 11:13:59 -07001245 <<: *docker_version_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -07001246 name: '{project-name}-{stream}-docker-version-java-daily'
1247 id: 'docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -07001248 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -07001249 wrappers:
1250 - infra-wrappers-docker-build:
1251 build-timeout: '{build-timeout}'
1252
Zhaoxing49773042017-10-13 17:14:35 +08001253- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001254 # Job template for building & pushing docker images for AAI specific repos
1255 #
1256 # The purpose of this job template is to run:
1257 # 1. login to the docker registry
1258 # 2. run maven goals
1259 # 3. run include-docker-push.sh
1260 #
1261 # Required Variables:
1262 # pom: name/location of the pom.xml file relative to the workspace
1263 # maven-properties: properties passed to maven
1264
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001265 name: '{project-name}-{stream}-aai-docker-java-daily'
1266 project-type: freestyle
Jessica Wagantallab30bf62018-11-08 12:20:48 -08001267 node: '{build-node}'
Gary Wudc3f2952017-08-23 16:48:59 -07001268 docker-image-name: ''
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001269 disabled: '{disabled}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001270 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001271 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001272 build-days-to-keep: '{build-days-to-keep}'
1273
1274 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001275 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001276 project: '{project}'
1277 branch: '{branch}'
1278 refspec: 'refs/heads/{branch}'
1279 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001280 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001281 maven-version: '{maven-version}'
Gary Wudc3f2952017-08-23 16:48:59 -07001282 - docker-image-name:
1283 docker-image-name: '{docker-image-name}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001284
1285 scm:
1286 - gerrit-trigger-scm:
1287 refspec: ''
1288 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001289 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001290
1291 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001292 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001293 build-timeout: '{build-timeout}'
1294
1295 triggers:
1296 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001297 - timed: '@daily'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001298 - gerrit-trigger-release-manually:
1299 server: '{server-name}'
1300 project: '{project}'
1301 branch: '{branch}'
1302
1303 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001304 - lf-infra-pre-build
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001305 - provide-maven-settings:
1306 global-settings-file: 'global-settings'
1307 settings-file: '{mvn-settings}'
1308
1309 - docker-login
1310
1311 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001312 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001313 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001314 goals: 'clean install -DskipTests -B
1315 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001316 settings: '{mvn-settings}'
1317 settings-type: cfp
1318 global-settings: 'global-settings'
1319 global-settings-type: cfp
1320
1321 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001322 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001323 pom: '{pom}'
1324 goals: '{mvn-goals}'
1325 settings: '{mvn-settings}'
1326 settings-type: cfp
1327 global-settings: 'global-settings'
1328 global-settings-type: cfp
1329 properties:
1330 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001331 - docker.pull.registry=nexus3.onap.org:10001
1332 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001333
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001334 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001335
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001336 publishers:
1337 - infra-shiplogs:
1338 maven-version: '{maven-version}'
1339
Carsten Lund2d06a692017-02-23 18:23:07 +00001340- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001341 # Job template for Java merge jobs for SDC specific repos
ig61339fdb9d22017-04-03 17:47:19 +03001342 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001343 # The purpose of this job template is to run:
1344 # 1. maven clean deploy
ig61339fdb9d22017-04-03 17:47:19 +03001345 #
1346 # Required Variables:
1347 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001348
Gary Wu6c702772018-08-06 18:48:02 -07001349 <<: *merge_java_defaults
ig61339fdb9d22017-04-03 17:47:19 +03001350 name: '{project-name}-{stream}-sdc-merge-java'
1351
Paul Vaduva3aebd312019-02-01 13:35:21 +01001352 node: '{build-node}'
Jessica Wagantall9a89de42018-04-18 11:35:17 -07001353 build-timeout: 120
ig61339fdb9d22017-04-03 17:47:19 +03001354
ig61339fdb9d22017-04-03 17:47:19 +03001355 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001356 - lf-infra-pre-build
ig61339fdb9d22017-04-03 17:47:19 +03001357 - provide-maven-settings:
1358 global-settings-file: 'global-settings'
1359 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001360
1361 - docker-login
1362
Gary Wu6c702772018-08-06 18:48:02 -07001363 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001364 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001365 mvn-settings: '{mvn-settings}'
1366 pom: '{docker-pom}'
1367 # use default as mvn-profile if profile is not needed
1368 mvn-profile: '{mvn-profile}'
Gary Wu6c702772018-08-06 18:48:02 -07001369 mvn-params: ''