blob: 881b045e8c622cb162450d37f5fd9ff3fbdc9175 [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}'
Jessica Wagantall993e5362019-08-30 14:40:34 -070016 build-env-variables: ''
Gary Wu5918acd2018-08-06 16:42:21 -070017 pattern: '**'
Gary Wu6c702772018-08-06 18:48:02 -070018 pom:
Jessica Wagantall5b0faff2019-08-30 12:45:08 -070019 mvn-opts: ''
20 java-opts: ''
Andrew Grimbergebc710a2017-01-30 12:59:38 -080021 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}'
Jessica Wagantall993e5362019-08-30 14:40:34 -070058 - inject:
59 properties-content: "{build-env-variables}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080060 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -080061 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -070062 pom: '{obj:pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -040063 goals: 'clean install -B
Jessica Wagantalld25908c2018-03-28 12:06:39 -070064 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn {mvn-params}'
Jessica Wagantall5b0faff2019-08-30 12:45:08 -070065 properties:
66 - MAVEN_OPTS='{mvn-opts}'
67 java-opts:
68 - "{java-opts}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080069 settings: '{mvn-settings}'
70 settings-type: cfp
71 global-settings: 'global-settings'
72 global-settings-type: cfp
73
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070074 publishers:
75 - infra-shiplogs:
76 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080077
78- job-template:
JulienBe77903ed2017-07-17 15:30:26 +020079 # Job template for Java verify jobs running checkstyle at the end
80 # When checkstyle will be fully incorporated, it is meant to replace
81 # '{project-name}-{stream}-verify-java-checkstyle'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080082 #
83 # The purpose of this job template is to run:
84 # 1. maven clean install
85 #
86 # This job publishes checkstyle results.
JulienBe77903ed2017-07-17 15:30:26 +020087 #
88 # Required Variables:
89 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080090
Gary Wu6c702772018-08-06 18:48:02 -070091 <<: *verify_java_defaults
JulienBe77903ed2017-07-17 15:30:26 +020092 name: '{project-name}-{stream}-verify-java-checkstyle'
JulienBe77903ed2017-07-17 15:30:26 +020093 publishers:
94 - infra-shiplogs:
95 maven-version: '{maven-version}'
96 - checkstyle-result
97
98- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080099 # Job template for Java verify jobs with POM not at the root
100 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800101 # The purpose of this job template is to run:
102 # 1. maven clean install
103 #
104 # This job supports subprojects.
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800105 #
106 # Required Variables:
107 # branch: git branch (eg. stable/lithium or master)
108 # pom: name/location of the pom.xml file relative to the workspace
109 # pattern: ant file-path pattern relative to the workspace used to
110 # trigger the job
111
Gary Wu6c702772018-08-06 18:48:02 -0700112 <<: *verify_java_defaults
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800113 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800114
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800115- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100116 # Job template for Java daily release jobs
117 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800118 # The purpose of this job template is to run:
119 # 1. maven clean deploy with Sonar scans
JulienBe2f4ee072017-02-01 21:42:32 +0100120 #
121 # Required Variables:
122 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800123
JulienBe2f4ee072017-02-01 21:42:32 +0100124 name: '{project-name}-{stream}-release-java-daily'
125
126 project-type: freestyle
127 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700128 disabled: '{disabled}'
JulienBe2f4ee072017-02-01 21:42:32 +0100129 maven-deploy-properties:
130 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700131 - infra-properties:
JulienBe2f4ee072017-02-01 21:42:32 +0100132 build-days-to-keep: '{build-days-to-keep}'
133
134 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700135 - infra-parameters:
JulienBe2f4ee072017-02-01 21:42:32 +0100136 project: '{project}'
137 branch: '{branch}'
138 refspec: 'refs/heads/{branch}'
139 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800140 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800141 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100142
143 scm:
144 - gerrit-trigger-scm:
145 refspec: ''
146 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500147 submodule-recursive: '{submodule-recursive}'
JulienBe2f4ee072017-02-01 21:42:32 +0100148
149 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700150 - infra-wrappers:
JulienBe2f4ee072017-02-01 21:42:32 +0100151 build-timeout: '{build-timeout}'
152
153 triggers:
154 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700155 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800156 - gerrit-trigger-release-manually:
157 server: '{server-name}'
158 project: '{project}'
159 branch: '{branch}'
JulienBe2f4ee072017-02-01 21:42:32 +0100160
161 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700162 - lf-infra-pre-build
JulienBe2f4ee072017-02-01 21:42:32 +0100163 - provide-maven-settings:
164 global-settings-file: 'global-settings'
165 settings-file: '{mvn-settings}'
166
JulienBe5641aa02017-02-17 01:08:38 -0800167 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800168 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800169 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400170 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBe5641aa02017-02-17 01:08:38 -0800171 properties:
172 - '{maven-deploy-properties}'
Jessica Wagantall6223d1d2017-08-07 14:46:58 -0700173 java-opts:
174 - '-Xmx4096m -XX:MaxPermSize=512m'
JulienBe5641aa02017-02-17 01:08:38 -0800175 settings: '{mvn-settings}'
176 settings-type: cfp
177 global-settings: 'global-settings'
178 global-settings-type: cfp
179
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700180 publishers:
181 - infra-shiplogs:
182 maven-version: '{maven-version}'
183
JulienBe5641aa02017-02-17 01:08:38 -0800184- job-template:
JulienBe77903ed2017-07-17 15:30:26 +0200185 # Job template for Java daily release jobs running checkstyle at the end
186 # When checkstyle will be fully incorporated, it is meant to replace
187 # '{project-name}-{stream}-release-java-daily'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800188 #
189 # The purpose of this job template is to run:
190 # 1. maven clean deploy with Sonar scans
191 #
192 # This job publishes checkstyle results.
193 # This job uses a conditional regex match step to set versions.
JulienBe77903ed2017-07-17 15:30:26 +0200194 #
195 # Required Variables:
196 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800197
JulienBe77903ed2017-07-17 15:30:26 +0200198 name: '{project-name}-{stream}-release-java-daily-checkstyle'
199 project-type: freestyle
200 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700201 disabled: '{disabled}'
JulienBe77903ed2017-07-17 15:30:26 +0200202 maven-deploy-properties:
203 properties:
204 - infra-properties:
205 build-days-to-keep: '{build-days-to-keep}'
206 parameters:
207 - infra-parameters:
208 project: '{project}'
209 branch: '{branch}'
210 refspec: 'refs/heads/{branch}'
211 artifacts: '{archive-artifacts}'
212 - maven-exec:
213 maven-version: '{maven-version}'
214 scm:
215 - gerrit-trigger-scm:
216 refspec: ''
217 choosing-strategy: 'default'
218 submodule-recursive: '{submodule-recursive}'
219 wrappers:
220 - infra-wrappers:
221 build-timeout: '{build-timeout}'
222 triggers:
223 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700224 - timed: '@daily'
JulienBe77903ed2017-07-17 15:30:26 +0200225 - gerrit-trigger-release-manually:
226 server: '{server-name}'
227 project: '{project}'
228 branch: '{branch}'
229 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700230 - lf-infra-pre-build
JulienBe77903ed2017-07-17 15:30:26 +0200231 - provide-maven-settings:
232 global-settings-file: 'global-settings'
233 settings-file: '{mvn-settings}'
JulienBed91a33a2017-09-25 15:56:34 +0200234 - conditional-step:
235 condition-kind: regex-match
236 regex: DoSetVersion
237 label: '{setVersion}'
238 steps:
239 - inject:
240 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700241 - maven-set-release-version:
JulienBed91a33a2017-09-25 15:56:34 +0200242 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700243 mvn-settings: '{mvn-settings}'
244 pom:
JulienBe77903ed2017-07-17 15:30:26 +0200245 - maven-target:
246 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800247 goals: 'clean deploy -B
JulienBe77903ed2017-07-17 15:30:26 +0200248 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBec9d90e22017-08-08 10:44:10 +0200249 properties: '{obj:mvn_properties}'
JulienBe77903ed2017-07-17 15:30:26 +0200250 settings: '{mvn-settings}'
251 settings-type: cfp
252 global-settings: 'global-settings'
253 global-settings-type: cfp
254 publishers:
255 - infra-shiplogs:
256 maven-version: '{maven-version}'
257 - checkstyle-result-daily
258
259- job-template:
JulienBe5641aa02017-02-17 01:08:38 -0800260 # Job template for Java daily release jobs
261 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800262 # The purpose of this job template is to run:
263 # 1. maven set versions
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800264 # 2. maven clean deploy with Sonar scans
Pamela Dragosh55ceb8f2017-05-23 12:23:16 -0400265 #
266 # Required Variables:
267 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800268
JulienBe5641aa02017-02-17 01:08:38 -0800269 name: '{project-name}-{stream}-release-version-java-daily'
270
271 project-type: freestyle
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700272 disabled: '{disabled}'
JulienBe5641aa02017-02-17 01:08:38 -0800273 node: '{build-node}'
274 maven-deploy-properties:
275 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700276 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800277 build-days-to-keep: '{build-days-to-keep}'
278
279 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700280 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800281 project: '{project}'
282 branch: '{branch}'
283 refspec: 'refs/heads/{branch}'
284 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800285 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800286 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800287
288 scm:
289 - gerrit-trigger-scm:
290 refspec: ''
291 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500292 submodule-recursive: '{submodule-recursive}'
JulienBe5641aa02017-02-17 01:08:38 -0800293
294 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700295 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800296 build-timeout: '{build-timeout}'
297
298 triggers:
299 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700300 - timed: '@daily'
JulienBe5641aa02017-02-17 01:08:38 -0800301 - gerrit-trigger-release-manually:
302 server: '{server-name}'
303 project: '{project}'
304 branch: '{branch}'
305
306 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700307 - lf-infra-pre-build
JulienBe5641aa02017-02-17 01:08:38 -0800308 - provide-maven-settings:
309 global-settings-file: 'global-settings'
310 settings-file: '{mvn-settings}'
311
JulienBe2f4ee072017-02-01 21:42:32 +0100312 - inject:
313 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700314 - maven-set-release-version:
Andrew Grimberge2465882017-02-24 12:38:05 -0800315 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700316 mvn-settings: '{mvn-settings}'
317 pom:
JulienBe2f4ee072017-02-01 21:42:32 +0100318
319 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800320 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800321 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400322 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800323 properties:
324 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100325 settings: '{mvn-settings}'
326 settings-type: cfp
327 global-settings: 'global-settings'
328 global-settings-type: cfp
329
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700330 publishers:
331 - infra-shiplogs:
332 maven-version: '{maven-version}'
333
JulienBe2f4ee072017-02-01 21:42:32 +0100334- job-template:
JulienBe645951d2017-09-28 18:44:18 +0200335 # Job template for Java daily release jobs
336 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800337 # The purpose of this job template is to run:
338 # 1. maven set versions
339 # 2. maven clean deploy -P {mvn-profile} with Sonar scans
JulienBe645951d2017-09-28 18:44:18 +0200340 #
341 # Required Variables:
342 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800343
JulienBe645951d2017-09-28 18:44:18 +0200344 name: '{project-name}-{stream}-release-version-profile-java-daily'
345
346 project-type: freestyle
347 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700348 disabled: '{disabled}'
JulienBe645951d2017-09-28 18:44:18 +0200349 maven-deploy-properties:
350 properties:
351 - infra-properties:
352 build-days-to-keep: '{build-days-to-keep}'
353
354 parameters:
355 - infra-parameters:
356 project: '{project}'
357 branch: '{branch}'
358 refspec: 'refs/heads/{branch}'
359 artifacts: '{archive-artifacts}'
360 - maven-exec:
361 maven-version: '{maven-version}'
362
363 scm:
364 - gerrit-trigger-scm:
365 refspec: ''
366 choosing-strategy: 'default'
367 submodule-recursive: '{submodule-recursive}'
368
369 wrappers:
370 - infra-wrappers:
371 build-timeout: '{build-timeout}'
372
373 triggers:
374 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700375 - timed: '@daily'
JulienBe645951d2017-09-28 18:44:18 +0200376 - gerrit-trigger-release-manually:
377 server: '{server-name}'
378 project: '{project}'
379 branch: '{branch}'
380
381 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700382 - lf-infra-pre-build
JulienBe645951d2017-09-28 18:44:18 +0200383 - provide-maven-settings:
384 global-settings-file: 'global-settings'
385 settings-file: '{mvn-settings}'
386
387 - inject:
388 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700389 - maven-set-release-version:
JulienBe645951d2017-09-28 18:44:18 +0200390 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700391 mvn-settings: '{mvn-settings}'
392 pom:
JulienBe645951d2017-09-28 18:44:18 +0200393
394 - maven-target:
395 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800396 goals: 'clean deploy -P {mvn-profile} -B
JulienBe645951d2017-09-28 18:44:18 +0200397 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
398 properties:
399 - '{maven-deploy-properties}'
400 settings: '{mvn-settings}'
401 settings-type: cfp
402 global-settings: 'global-settings'
403 global-settings-type: cfp
404
405 publishers:
406 - infra-shiplogs:
407 maven-version: '{maven-version}'
408
409
410- job-template:
Carsten Lundda8b6972017-02-15 23:59:25 +0000411 # Job template for Java daily release jobs with POM not at the root
412 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800413 # The purpose of this job template is to run:
414 # 1. maven clean deploy with Sonar scans
415 #
416 # This job supports subprojects.
Carsten Lundda8b6972017-02-15 23:59:25 +0000417 #
418 # Required Variables:
419 # branch: git branch (eg. stable/lithium or master)
420 # pom: name/location of the pom.xml file relative to the workspace
421
Carsten Lundda8b6972017-02-15 23:59:25 +0000422 name: '{project-name}-{stream}-{subproject}-release-java-daily'
423
424 project-type: freestyle
425 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700426 disabled: '{disabled}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000427 maven-deploy-properties:
428 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700429 - infra-properties:
Carsten Lundda8b6972017-02-15 23:59:25 +0000430 build-days-to-keep: '{build-days-to-keep}'
431
432 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700433 - infra-parameters:
Carsten Lundda8b6972017-02-15 23:59:25 +0000434 project: '{project}'
435 branch: '{branch}'
436 refspec: 'refs/heads/{branch}'
437 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800438 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800439 maven-version: '{maven-version}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000440
441 scm:
442 - gerrit-trigger-scm:
443 refspec: ''
444 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500445 submodule-recursive: '{submodule-recursive}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000446
447 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700448 - infra-wrappers:
Carsten Lundda8b6972017-02-15 23:59:25 +0000449 build-timeout: '{build-timeout}'
450
451 triggers:
452 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700453 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800454 - gerrit-trigger-release-manually:
455 server: '{server-name}'
456 project: '{project}'
457 branch: '{branch}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000458
459 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700460 - lf-infra-pre-build
Carsten Lundda8b6972017-02-15 23:59:25 +0000461 - provide-maven-settings:
462 global-settings-file: 'global-settings'
463 settings-file: '{mvn-settings}'
464
Carsten Lundda8b6972017-02-15 23:59:25 +0000465 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800466 maven-version: '{maven-version}'
Carsten Lund63cd3b82017-02-18 18:19:22 +0000467 pom: '{pom}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800468 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400469 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lundda8b6972017-02-15 23:59:25 +0000470 properties:
471 - '{maven-deploy-properties}'
Jessica Wagantall30f0d782017-08-08 13:37:25 -0700472 java-opts:
473 - '-Xmx4096m -XX:MaxPermSize=512m'
Carsten Lundda8b6972017-02-15 23:59:25 +0000474 settings: '{mvn-settings}'
475 settings-type: cfp
476 global-settings: 'global-settings'
477 global-settings-type: cfp
478
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700479 publishers:
480 - infra-shiplogs:
481 maven-version: '{maven-version}'
482
Carsten Lundda8b6972017-02-15 23:59:25 +0000483- job-template:
Jessica Wagantallae897942017-09-28 10:56:55 -0700484 # Job template for Java daily release jobs with POM not at the root
485 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800486 # The purpose of this job template is to run:
487 # 1. maven set versions
488 # 2. maven clean deploy with Sonar scans
489 #
490 # This job supports subprojects.
Jessica Wagantallae897942017-09-28 10:56:55 -0700491 #
492 # Required Variables:
493 # branch: git branch (eg. stable/lithium or master)
494 # pom: name/location of the pom.xml file relative to the workspace
495
Zhaoxinga77c0412017-10-11 09:05:49 +0800496 name: '{project-name}-{stream}-{subproject}-release-version-java-daily'
497
498 project-type: freestyle
499 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700500 disabled: '{disabled}'
Jessica Wagantallae237f72019-04-04 20:30:44 -0700501 version-properties: 'version.properties'
Zhaoxinga77c0412017-10-11 09:05:49 +0800502 maven-deploy-properties:
503 properties:
504 - infra-properties:
505 build-days-to-keep: '{build-days-to-keep}'
506
507 parameters:
508 - infra-parameters:
509 project: '{project}'
510 branch: '{branch}'
511 refspec: 'refs/heads/{branch}'
512 artifacts: '{archive-artifacts}'
513 - maven-exec:
514 maven-version: '{maven-version}'
515
516 scm:
517 - gerrit-trigger-scm:
518 refspec: ''
519 choosing-strategy: 'default'
520 submodule-recursive: '{submodule-recursive}'
521
522 wrappers:
523 - infra-wrappers:
524 build-timeout: '{build-timeout}'
525
526 triggers:
527 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700528 - timed: '@daily'
Zhaoxinga77c0412017-10-11 09:05:49 +0800529 - gerrit-trigger-release-manually:
530 server: '{server-name}'
531 project: '{project}'
532 branch: '{branch}'
533
534 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700535 - lf-infra-pre-build
Zhaoxinga77c0412017-10-11 09:05:49 +0800536 - provide-maven-settings:
537 global-settings-file: 'global-settings'
538 settings-file: '{mvn-settings}'
539
540 - inject:
Jessica Wagantallae237f72019-04-04 20:30:44 -0700541 properties-file: '{version-properties}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700542 - maven-set-release-version:
Zhaoxinga77c0412017-10-11 09:05:49 +0800543 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700544 mvn-settings: '{mvn-settings}'
Zhaoxing327f9592017-10-13 13:37:17 +0800545 pom: '{pom}'
Zhaoxinga77c0412017-10-11 09:05:49 +0800546
547 - maven-target:
548 maven-version: '{maven-version}'
549 pom: '{pom}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800550 goals: 'clean deploy -B
Zhaoxinga77c0412017-10-11 09:05:49 +0800551 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
552 properties:
553 - '{maven-deploy-properties}'
554 settings: '{mvn-settings}'
555 settings-type: cfp
556 global-settings: 'global-settings'
557 global-settings-type: cfp
558
559 publishers:
560 - infra-shiplogs:
561 maven-version: '{maven-version}'
562
Jessica Wagantall91685e12018-03-20 17:13:40 -0700563
Gary Wu6c702772018-08-06 18:48:02 -0700564- job-template: &merge_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800565 # Job template for Java merge jobs
566 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800567 # The purpose of this job template is to run:
568 # 1. maven clean deploy
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800569 #
570 # Required Variables:
571 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800572
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800573 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800574
575 project-type: freestyle
576 node: '{build-node}'
Gary Wu6c702772018-08-06 18:48:02 -0700577 pattern: '**'
578 pom:
579 mvn_properties: []
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700580 mvn-params: ''
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'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800622 settings: '{mvn-settings}'
623 settings-type: cfp
624 global-settings: 'global-settings'
625 global-settings-type: cfp
Gary Wu6c702772018-08-06 18:48:02 -0700626 properties: '{obj:mvn_properties}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800627
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700628 publishers:
629 - infra-shiplogs:
630 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100631
632- job-template:
Gary Wu6c702772018-08-06 18:48:02 -0700633 # Job template for Java merge jobs based on
634 # '{project-name}-{stream}-merge-java'
635 # The purpose of this job template is to run:
636 # 1. maven clean deploy
637 #
638 # This project supports maven properties.
639 #
640 # Required Variables:
641 # branch: git branch (eg. stable/lithium or master)
642 # maven-properties: properties passed to maven
643
644 <<: *merge_java_defaults
645 name: '{project-name}-{stream}-merge-properties-java'
646
647- job-template:
648 # Job template for Java merge jobs that takes a maven template
649 #
650 # The purpose of this job template is to run:
651 # 1. maven clean deploy -P {mvn-profile}
652 #
653 # Required Variables:
654 # branch: git branch (eg. stable/lithium or master)
655
656 <<: *merge_java_defaults
657 name: '{project-name}-{stream}-merge-profile-java'
658
659 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700660 - lf-infra-pre-build
Gary Wu6c702772018-08-06 18:48:02 -0700661 - provide-maven-settings:
662 global-settings-file: 'global-settings'
663 settings-file: '{mvn-settings}'
664
665 - docker-login
666
667 - maven-target:
668 maven-version: '{maven-version}'
669 goals: 'clean deploy -P {mvn-profile} -B
670 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
671 settings: '{mvn-settings}'
672 settings-type: cfp
673 global-settings: 'global-settings'
674 global-settings-type: cfp
675 properties:
676 - docker.pull.registry=nexus3.onap.org:10001
677 - docker.push.registry=nexus3.onap.org:10003
678
679- job-template:
680 # Job template for Java merge jobs with POM not at the root
681 #
682 # The purpose of this job template is to run:
683 # 1. maven clean deploy
684 #
685 # This job supports subprojects.
686 #
687 # Required Variables:
688 # branch: git branch (eg. stable/lithium or master)
689 # pom: name/location of the pom.xml file relative to the workspace
690 # pattern: ant file-path pattern relative to the workspace used to
691 # trigger the job
692
693 <<: *merge_java_defaults
694 name: '{project-name}-{stream}-{subproject}-merge-java'
695
Gary Wu350fbcb2018-08-07 11:13:59 -0700696- job-template: &docker_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800697 # Job template for Docker daily jobs
698 #
699 # The purpose of this job template is to run:
700 # 1. login to the docker registry
701 # 2. docker push
702 #
703 # Required Variables:
704 # branch: git branch (eg. stable/lithium or master)
705
Anaël Clossonabbafb52017-02-09 17:55:10 +0100706 name: '{project-name}-{stream}-docker-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700707 id: '{project-name}-{stream}-docker-java-daily'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100708 project-type: freestyle
Jessica Wagantall34e6d6b2018-11-08 12:43:06 -0800709 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700710 disabled: '{disabled}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100711 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700712 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100713 build-days-to-keep: '{build-days-to-keep}'
714
715 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700716 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100717 project: '{project}'
718 branch: '{branch}'
719 refspec: 'refs/heads/{branch}'
720 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800721 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800722 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700723 - maven-params:
724 mvn-params: '{mvn-params}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100725
726 scm:
727 - gerrit-trigger-scm:
728 refspec: ''
729 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500730 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100731
Anaël Clossonabbafb52017-02-09 17:55:10 +0100732 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700733 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100734 build-timeout: '{build-timeout}'
735
736 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800737 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700738 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800739 - gerrit-trigger-release-manually:
740 server: '{server-name}'
741 project: '{project}'
742 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100743
744 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700745 - lf-infra-pre-build
Anaël Clossonabbafb52017-02-09 17:55:10 +0100746 - provide-maven-settings:
747 global-settings-file: 'global-settings'
748 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100749
Anaël Closson63e090e2017-02-15 14:50:45 +0100750 - docker-login
751
Anaël Clossonabbafb52017-02-09 17:55:10 +0100752 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800753 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100754 mvn-settings: '{mvn-settings}'
755 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100756 # use default as mvn-profile if profile is not needed
757 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700758 mvn-params: '{mvn-params}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500759
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700760 publishers:
761 - infra-shiplogs:
762 maven-version: '{maven-version}'
763
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500764- job-template:
Gary Wu9e9210f2018-07-18 16:19:20 -0700765 # Job template for Docker daily jobs
766 #
767 # The purpose of this job template is to run:
768 # 1. login to the docker registry
769 # 2. docker push
770 #
771 # Required Variables:
772 # branch: git branch (eg. stable/lithium or master)
773
Gary Wu350fbcb2018-08-07 11:13:59 -0700774 <<: *docker_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700775 name: '{project-name}-{stream}-docker-java-daily'
776 id: docker-java-daily
Gary Wu9e9210f2018-07-18 16:19:20 -0700777 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700778 wrappers:
779 - infra-wrappers-docker-build:
780 build-timeout: '{build-timeout}'
781
Gary Wu9e9210f2018-07-18 16:19:20 -0700782- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +0200783 # Job template for building & pushing docker images
784 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800785 # The purpose of this job template is to run:
JulienBe91c56ec2017-06-21 23:37:39 +0200786 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800787 # 2. maven clean deploy on the specified profile
788 #
789 # This job uses a conditional regex match step to set versions.
790 # This template supports maven properties.
JulienBe91c56ec2017-06-21 23:37:39 +0200791 #
792 # Required Variables:
793 # pom: name/location of the pom.xml file relative to the workspace
794 # profile: the docker profile defined in the pom
795 # maven-properties: properties passed to maven
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800796
JulienBe91c56ec2017-06-21 23:37:39 +0200797 name: '{project-name}-{stream}-docker-java-properties-daily'
798 project-type: freestyle
Jessica Wagantallbedaaee2018-11-08 12:51:52 -0800799 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700800 disabled: '{disabled}'
JulienBe91c56ec2017-06-21 23:37:39 +0200801 properties:
802 - infra-properties:
803 build-days-to-keep: '{build-days-to-keep}'
804 parameters:
805 - infra-parameters:
806 project: '{project}'
807 branch: '{branch}'
808 refspec: 'refs/heads/{branch}'
809 artifacts: '{archive-artifacts}'
810 - maven-exec:
811 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700812 - maven-params:
813 mvn-params: '{mvn-params}'
JulienBe91c56ec2017-06-21 23:37:39 +0200814 scm:
815 - gerrit-trigger-scm:
816 refspec: ''
817 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500818 submodule-recursive: '{submodule-recursive}'
JulienBe91c56ec2017-06-21 23:37:39 +0200819 wrappers:
820 - infra-wrappers:
821 build-timeout: '{build-timeout}'
822 triggers:
823 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700824 - timed: '@daily'
JulienBe91c56ec2017-06-21 23:37:39 +0200825 - gerrit-trigger-release-manually:
826 server: '{server-name}'
827 project: '{project}'
828 branch: '{branch}'
829 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700830 - lf-infra-pre-build
JulienBe91c56ec2017-06-21 23:37:39 +0200831 - provide-maven-settings:
832 global-settings-file: 'global-settings'
833 settings-file: '{mvn-settings}'
JulienBecda17972017-10-17 13:46:51 +0200834 - conditional-step:
835 condition-kind: regex-match
836 regex: DoSetVersion
837 label: '{setVersion}'
838 steps:
839 - inject:
840 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700841 - maven-set-release-version:
JulienBecda17972017-10-17 13:46:51 +0200842 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700843 mvn-settings: '{mvn-settings}'
844 pom:
JulienBe91c56ec2017-06-21 23:37:39 +0200845 - docker-login
846 - maven-docker-push-daily:
847 maven-version: '{maven-version}'
848 mvn-settings: '{mvn-settings}'
849 pom: '{docker-pom}'
850 properties: '{maven-properties}'
851 # use default as mvn-profile if profile is not needed
852 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700853 mvn-params: '{mvn-params}'
JulienBe91c56ec2017-06-21 23:37:39 +0200854 publishers:
855 - infra-shiplogs:
856 maven-version: '{maven-version}'
857
858- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800859 # Job template for building & pushing docker images
860 #
861 # The purpose of this job template is to run:
862 # 1. login to the docker registry
863 # 2. run a specified shell builder
864 #
865 # Required Variables:
866 # pom: name/location of the pom.xml file relative to the workspace
867 # maven-properties: properties passed to maven
868
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500869 name: '{project-name}-{stream}-docker-java-shell-daily'
870 project-type: freestyle
Jessica Wagantallfe5efea2018-08-07 16:02:39 -0700871 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700872 disabled: '{disabled}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500873 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700874 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500875 build-days-to-keep: '{build-days-to-keep}'
876
877 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700878 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500879 project: '{project}'
880 branch: '{branch}'
881 refspec: 'refs/heads/{branch}'
882 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800883 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800884 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500885
886 scm:
887 - gerrit-trigger-scm:
888 refspec: ''
889 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500890 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500891
892 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700893 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500894 build-timeout: '{build-timeout}'
895
896 triggers:
897 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700898 - timed: '@daily'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500899 - gerrit-trigger-release-manually:
900 server: '{server-name}'
901 project: '{project}'
902 branch: '{branch}'
903
904 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700905 - lf-infra-pre-build
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500906 - provide-maven-settings:
907 global-settings-file: 'global-settings'
908 settings-file: '{mvn-settings}'
909
910 - docker-login
911
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500912 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800913 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500914 goals: '{mvn-goals}'
915 settings: '{mvn-settings}'
916 settings-type: cfp
917 global-settings: 'global-settings'
918 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500919
920 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000921
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700922 publishers:
923 - infra-shiplogs:
924 maven-version: '{maven-version}'
925
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000926- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800927 # Job template for building & pushing docker images
928 #
929 # The purpose of this job template is to run:
930 # 1. login to the docker registry
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700931 # 2. run a specified shell builder
932 #
933 # Required Variables:
934 # pom: name/location of the pom.xml file relative to the workspace
935 # maven-properties: properties passed to maven
936
937 name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily'
938 project-type: freestyle
939 node: '{build-node}'
940 disabled: '{disabled}'
941 properties:
942 - infra-properties:
943 build-days-to-keep: '{build-days-to-keep}'
944
945 parameters:
946 - infra-parameters:
947 project: '{project}'
948 branch: '{branch}'
949 refspec: 'refs/heads/{branch}'
950 artifacts: '{archive-artifacts}'
951 - maven-exec:
952 maven-version: '{maven-version}'
953
954 scm:
955 - gerrit-trigger-scm:
956 refspec: ''
957 choosing-strategy: 'default'
958 submodule-recursive: '{submodule-recursive}'
959
960 wrappers:
961 - infra-wrappers:
962 build-timeout: '{build-timeout}'
963
964 triggers:
965 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700966 - timed: '@daily'
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700967 - gerrit-trigger-release-manually:
968 server: '{server-name}'
969 project: '{project}'
970 branch: '{branch}'
971
972 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700973 - lf-infra-pre-build
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700974 - provide-maven-settings:
975 global-settings-file: 'global-settings'
976 settings-file: '{mvn-settings}'
977
978 - docker-login
979
980 - maven-target:
981 maven-version: '{maven-version}'
982 pom: '{pom}'
983 goals: '{mvn-goals}'
984 settings: '{mvn-settings}'
985 settings-type: cfp
986 global-settings: 'global-settings'
987 global-settings-type: cfp
988
989 - shell: '{script}'
990
991 publishers:
992 - infra-shiplogs:
993 maven-version: '{maven-version}'
994
995- job-template:
996 # Job template for building & pushing docker images
997 #
998 # The purpose of this job template is to run:
999 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001000 # 2. inject a version.properties file and set versions
1001 # 3. run a specified shell builder
1002 #
1003 # Required Variables:
1004 # pom: name/location of the pom.xml file relative to the workspace
1005 # maven-properties: properties passed to maven
1006
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001007 name: '{project-name}-{stream}-docker-java-version-shell-daily'
1008 project-type: freestyle
Jessica Wagantalld50aa192018-11-08 13:03:33 -08001009 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001010 disabled: '{disabled}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001011 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001012 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001013 build-days-to-keep: '{build-days-to-keep}'
1014
1015 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001016 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001017 project: '{project}'
1018 branch: '{branch}'
1019 refspec: 'refs/heads/{branch}'
1020 artifacts: '{archive-artifacts}'
1021 - maven-exec:
1022 maven-version: '{maven-version}'
1023
1024 scm:
1025 - gerrit-trigger-scm:
1026 refspec: ''
1027 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001028 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001029
1030 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001031 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001032 build-timeout: '{build-timeout}'
1033
1034 triggers:
1035 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001036 - timed: '@daily'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001037 - gerrit-trigger-release-manually:
1038 server: '{server-name}'
1039 project: '{project}'
1040 branch: '{branch}'
1041
1042 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001043 - lf-infra-pre-build
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001044 - provide-maven-settings:
1045 global-settings-file: 'global-settings'
1046 settings-file: '{mvn-settings}'
1047
1048 - inject:
1049 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001050 - maven-set-release-version:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001051 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001052 mvn-settings: '{mvn-settings}'
1053 pom:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001054
1055 - docker-login
1056
1057 - maven-target:
1058 maven-version: '{maven-version}'
1059 goals: '{mvn-goals}'
1060 settings: '{mvn-settings}'
1061 settings-type: cfp
1062 global-settings: 'global-settings'
1063 global-settings-type: cfp
1064
1065 - shell: '{script}'
1066
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001067 publishers:
1068 - infra-shiplogs:
1069 maven-version: '{maven-version}'
1070
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001071- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001072 # Job template for building & pushing docker images
1073 #
1074 # The purpose of this job template is to run:
1075 # 1. login to the docker registry
1076 # 2. inject a version.properties file and set versions
1077 # 3. run a specified shell builder
1078 #
1079 # This template supports subprojects.
1080 #
1081 # Required Variables:
1082 # pom: name/location of the pom.xml file relative to the workspace
1083 # maven-properties: properties passed to maven
1084
Zhaoxing49773042017-10-13 17:14:35 +08001085 name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
1086 project-type: freestyle
1087 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001088 disabled: '{disabled}'
Zhaoxing49773042017-10-13 17:14:35 +08001089 properties:
1090 - infra-properties:
1091 build-days-to-keep: '{build-days-to-keep}'
1092
1093 parameters:
1094 - infra-parameters:
1095 project: '{project}'
1096 branch: '{branch}'
1097 refspec: 'refs/heads/{branch}'
1098 artifacts: '{archive-artifacts}'
1099 - maven-exec:
1100 maven-version: '{maven-version}'
1101
1102 scm:
1103 - gerrit-trigger-scm:
1104 refspec: ''
1105 choosing-strategy: 'default'
1106 submodule-recursive: '{submodule-recursive}'
1107
1108 wrappers:
1109 - infra-wrappers:
1110 build-timeout: '{build-timeout}'
1111
1112 triggers:
1113 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001114 - timed: '@daily'
Zhaoxing49773042017-10-13 17:14:35 +08001115 - gerrit-trigger-release-manually:
1116 server: '{server-name}'
1117 project: '{project}'
1118 branch: '{branch}'
1119
1120 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001121 - lf-infra-pre-build
Zhaoxing49773042017-10-13 17:14:35 +08001122 - provide-maven-settings:
1123 global-settings-file: 'global-settings'
1124 settings-file: '{mvn-settings}'
1125
1126 - inject:
1127 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001128 - maven-set-release-version:
Zhaoxing49773042017-10-13 17:14:35 +08001129 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001130 mvn-settings: '{mvn-settings}'
Zhaoxing49773042017-10-13 17:14:35 +08001131 pom: '{pom}'
Zhaoxing49773042017-10-13 17:14:35 +08001132
1133 - docker-login
1134
1135 - maven-target:
1136 maven-version: '{maven-version}'
1137 pom: '{pom}'
1138 goals: '{mvn-goals}'
1139 settings: '{mvn-settings}'
1140 settings-type: cfp
1141 global-settings: 'global-settings'
1142 global-settings-type: cfp
1143
1144 - shell: '{script}'
1145
1146 publishers:
1147 - infra-shiplogs:
1148 maven-version: '{maven-version}'
1149
Gary Wu350fbcb2018-08-07 11:13:59 -07001150- job-template: &docker_version_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001151 # Job template for building & pushing docker images
1152 #
1153 # The purpose of this job template is to run:
1154 # 1. login to the docker registry
1155 # 2. inject a version.properties file and set versions
1156 # 3. run a docker push
1157 #
1158 # Required Variables:
1159 # pom: name/location of the pom.xml file relative to the workspace
1160 # profile: the docker profile defined in the pom
1161 # maven-properties: properties passed to maven
1162
Patrick Brady39f388a2017-03-09 11:26:59 -08001163 name: '{project-name}-{stream}-docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -07001164 id: '{project-name}-{stream}-docker-version-java-daily'
Patrick Brady39f388a2017-03-09 11:26:59 -08001165 project-type: freestyle
Paul Vaduva6dd88542018-12-11 16:59:12 +01001166 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001167 disabled: '{disabled}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001168 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001169 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -08001170 build-days-to-keep: '{build-days-to-keep}'
1171
1172 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001173 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -08001174 project: '{project}'
1175 branch: '{branch}'
1176 refspec: 'refs/heads/{branch}'
1177 artifacts: '{archive-artifacts}'
1178 - maven-exec:
1179 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -07001180 - maven-params:
1181 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001182
1183 scm:
1184 - gerrit-trigger-scm:
1185 refspec: ''
1186 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001187 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001188
1189 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001190 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -08001191 build-timeout: '{build-timeout}'
1192
1193 triggers:
1194 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001195 - timed: '@daily'
Patrick Brady39f388a2017-03-09 11:26:59 -08001196 - gerrit-trigger-release-manually:
1197 server: '{server-name}'
1198 project: '{project}'
1199 branch: '{branch}'
1200
1201 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001202 - lf-infra-pre-build
Patrick Brady39f388a2017-03-09 11:26:59 -08001203 - provide-maven-settings:
1204 global-settings-file: 'global-settings'
1205 settings-file: '{mvn-settings}'
1206
1207 - inject:
1208 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001209 - maven-set-release-version:
Patrick Brady39f388a2017-03-09 11:26:59 -08001210 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001211 mvn-settings: '{mvn-settings}'
1212 pom:
Patrick Brady39f388a2017-03-09 11:26:59 -08001213
1214 - docker-login
1215
1216 - maven-docker-push-daily:
1217 maven-version: '{maven-version}'
1218 mvn-settings: '{mvn-settings}'
1219 pom: '{docker-pom}'
1220 # use default as mvn-profile if profile is not needed
1221 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -07001222 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001223
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001224 publishers:
1225 - infra-shiplogs:
1226 maven-version: '{maven-version}'
1227
Patrick Brady39f388a2017-03-09 11:26:59 -08001228- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001229 # Job template for building & pushing docker images
1230 #
1231 # The purpose of this job template is to run:
Gary Wu9e9210f2018-07-18 16:19:20 -07001232 # 1. login to the docker registry
1233 # 2. inject a version.properties file and set versions
1234 # 3. run a docker push
1235 #
1236 # Required Variables:
1237 # pom: name/location of the pom.xml file relative to the workspace
1238 # profile: the docker profile defined in the pom
1239 # maven-properties: properties passed to maven
1240
Gary Wu350fbcb2018-08-07 11:13:59 -07001241 <<: *docker_version_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -07001242 name: '{project-name}-{stream}-docker-version-java-daily'
1243 id: 'docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -07001244 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -07001245 wrappers:
1246 - infra-wrappers-docker-build:
1247 build-timeout: '{build-timeout}'
1248
Zhaoxing49773042017-10-13 17:14:35 +08001249- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001250 # Job template for building & pushing docker images for AAI specific repos
1251 #
1252 # The purpose of this job template is to run:
1253 # 1. login to the docker registry
1254 # 2. run maven goals
1255 # 3. run include-docker-push.sh
1256 #
1257 # Required Variables:
1258 # pom: name/location of the pom.xml file relative to the workspace
1259 # maven-properties: properties passed to maven
1260
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001261 name: '{project-name}-{stream}-aai-docker-java-daily'
1262 project-type: freestyle
Jessica Wagantallab30bf62018-11-08 12:20:48 -08001263 node: '{build-node}'
Gary Wudc3f2952017-08-23 16:48:59 -07001264 docker-image-name: ''
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001265 disabled: '{disabled}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001266 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001267 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001268 build-days-to-keep: '{build-days-to-keep}'
1269
1270 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001271 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001272 project: '{project}'
1273 branch: '{branch}'
1274 refspec: 'refs/heads/{branch}'
1275 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001276 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001277 maven-version: '{maven-version}'
Gary Wudc3f2952017-08-23 16:48:59 -07001278 - docker-image-name:
1279 docker-image-name: '{docker-image-name}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001280
1281 scm:
1282 - gerrit-trigger-scm:
1283 refspec: ''
1284 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001285 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001286
1287 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001288 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001289 build-timeout: '{build-timeout}'
1290
1291 triggers:
1292 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001293 - timed: '@daily'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001294 - gerrit-trigger-release-manually:
1295 server: '{server-name}'
1296 project: '{project}'
1297 branch: '{branch}'
1298
1299 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001300 - lf-infra-pre-build
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001301 - provide-maven-settings:
1302 global-settings-file: 'global-settings'
1303 settings-file: '{mvn-settings}'
1304
1305 - docker-login
1306
1307 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001308 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001309 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001310 goals: 'clean install -DskipTests -B
1311 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001312 settings: '{mvn-settings}'
1313 settings-type: cfp
1314 global-settings: 'global-settings'
1315 global-settings-type: cfp
1316
1317 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001318 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001319 pom: '{pom}'
1320 goals: '{mvn-goals}'
1321 settings: '{mvn-settings}'
1322 settings-type: cfp
1323 global-settings: 'global-settings'
1324 global-settings-type: cfp
1325 properties:
1326 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001327 - docker.pull.registry=nexus3.onap.org:10001
1328 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001329
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001330 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001331
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001332 publishers:
1333 - infra-shiplogs:
1334 maven-version: '{maven-version}'
1335
Carsten Lund2d06a692017-02-23 18:23:07 +00001336- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001337 # Job template for Java merge jobs for SDC specific repos
ig61339fdb9d22017-04-03 17:47:19 +03001338 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001339 # The purpose of this job template is to run:
1340 # 1. maven clean deploy
ig61339fdb9d22017-04-03 17:47:19 +03001341 #
1342 # Required Variables:
1343 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001344
Gary Wu6c702772018-08-06 18:48:02 -07001345 <<: *merge_java_defaults
ig61339fdb9d22017-04-03 17:47:19 +03001346 name: '{project-name}-{stream}-sdc-merge-java'
1347
Paul Vaduva3aebd312019-02-01 13:35:21 +01001348 node: '{build-node}'
Jessica Wagantall9a89de42018-04-18 11:35:17 -07001349 build-timeout: 120
ig61339fdb9d22017-04-03 17:47:19 +03001350
ig61339fdb9d22017-04-03 17:47:19 +03001351 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001352 - lf-infra-pre-build
ig61339fdb9d22017-04-03 17:47:19 +03001353 - provide-maven-settings:
1354 global-settings-file: 'global-settings'
1355 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001356
1357 - docker-login
1358
Gary Wu6c702772018-08-06 18:48:02 -07001359 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001360 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001361 mvn-settings: '{mvn-settings}'
1362 pom: '{docker-pom}'
1363 # use default as mvn-profile if profile is not needed
1364 mvn-profile: '{mvn-profile}'
Gary Wu6c702772018-08-06 18:48:02 -07001365 mvn-params: ''