blob: c589fbae8b9fa2084827021124d0ca028e8ebdc8 [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: ''
Houa Yangb7778e62019-09-03 13:23:05 -0500581 mvn-opts: ''
582 java-opts: ''
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800583
584 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700585 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800586 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800587
588 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700589 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800590 project: '{project}'
591 branch: '{branch}'
592 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800593 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800594 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800595 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800596
597 scm:
598 - gerrit-trigger-scm:
599 refspec: ''
600 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500601 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800602
603 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700604 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800605 build-timeout: '{build-timeout}'
606
607 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800608 - gerrit-trigger-patch-merged:
609 server: '{server-name}'
610 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800611 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800612 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800613
614 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700615 - lf-infra-pre-build
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800616 - provide-maven-settings:
617 global-settings-file: 'global-settings'
618 settings-file: '{mvn-settings}'
619 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800620 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -0700621 pom: '{obj:pom}'
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700622 goals: 'clean deploy -B {mvn-params}
Andrew Grimberge55b6222017-05-03 16:19:28 -0400623 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Houa Yangb7778e62019-09-03 13:23:05 -0500624 properties:
625 - MAVEN_OPTS='{mvn-opts}'
626 java-opts:
627 - "{java-opts}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800628 settings: '{mvn-settings}'
629 settings-type: cfp
630 global-settings: 'global-settings'
631 global-settings-type: cfp
Gary Wu6c702772018-08-06 18:48:02 -0700632 properties: '{obj:mvn_properties}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800633
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700634 publishers:
635 - infra-shiplogs:
636 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100637
638- job-template:
Gary Wu6c702772018-08-06 18:48:02 -0700639 # Job template for Java merge jobs based on
640 # '{project-name}-{stream}-merge-java'
641 # The purpose of this job template is to run:
642 # 1. maven clean deploy
643 #
644 # This project supports maven properties.
645 #
646 # Required Variables:
647 # branch: git branch (eg. stable/lithium or master)
648 # maven-properties: properties passed to maven
649
650 <<: *merge_java_defaults
651 name: '{project-name}-{stream}-merge-properties-java'
652
653- job-template:
654 # Job template for Java merge jobs that takes a maven template
655 #
656 # The purpose of this job template is to run:
657 # 1. maven clean deploy -P {mvn-profile}
658 #
659 # Required Variables:
660 # branch: git branch (eg. stable/lithium or master)
661
662 <<: *merge_java_defaults
663 name: '{project-name}-{stream}-merge-profile-java'
664
665 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700666 - lf-infra-pre-build
Gary Wu6c702772018-08-06 18:48:02 -0700667 - provide-maven-settings:
668 global-settings-file: 'global-settings'
669 settings-file: '{mvn-settings}'
670
671 - docker-login
672
673 - maven-target:
674 maven-version: '{maven-version}'
675 goals: 'clean deploy -P {mvn-profile} -B
676 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
677 settings: '{mvn-settings}'
678 settings-type: cfp
679 global-settings: 'global-settings'
680 global-settings-type: cfp
681 properties:
682 - docker.pull.registry=nexus3.onap.org:10001
683 - docker.push.registry=nexus3.onap.org:10003
684
685- job-template:
686 # Job template for Java merge jobs with POM not at the root
687 #
688 # The purpose of this job template is to run:
689 # 1. maven clean deploy
690 #
691 # This job supports subprojects.
692 #
693 # Required Variables:
694 # branch: git branch (eg. stable/lithium or master)
695 # pom: name/location of the pom.xml file relative to the workspace
696 # pattern: ant file-path pattern relative to the workspace used to
697 # trigger the job
698
699 <<: *merge_java_defaults
700 name: '{project-name}-{stream}-{subproject}-merge-java'
701
Gary Wu350fbcb2018-08-07 11:13:59 -0700702- job-template: &docker_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800703 # Job template for Docker daily jobs
704 #
705 # The purpose of this job template is to run:
706 # 1. login to the docker registry
707 # 2. docker push
708 #
709 # Required Variables:
710 # branch: git branch (eg. stable/lithium or master)
711
Anaël Clossonabbafb52017-02-09 17:55:10 +0100712 name: '{project-name}-{stream}-docker-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700713 id: '{project-name}-{stream}-docker-java-daily'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100714 project-type: freestyle
Jessica Wagantall34e6d6b2018-11-08 12:43:06 -0800715 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700716 disabled: '{disabled}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100717 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700718 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100719 build-days-to-keep: '{build-days-to-keep}'
720
721 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700722 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100723 project: '{project}'
724 branch: '{branch}'
725 refspec: 'refs/heads/{branch}'
726 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800727 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800728 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700729 - maven-params:
730 mvn-params: '{mvn-params}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100731
732 scm:
733 - gerrit-trigger-scm:
734 refspec: ''
735 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500736 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100737
Anaël Clossonabbafb52017-02-09 17:55:10 +0100738 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700739 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100740 build-timeout: '{build-timeout}'
741
742 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800743 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700744 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800745 - gerrit-trigger-release-manually:
746 server: '{server-name}'
747 project: '{project}'
748 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100749
750 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700751 - lf-infra-pre-build
Anaël Clossonabbafb52017-02-09 17:55:10 +0100752 - provide-maven-settings:
753 global-settings-file: 'global-settings'
754 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100755
Anaël Closson63e090e2017-02-15 14:50:45 +0100756 - docker-login
757
Anaël Clossonabbafb52017-02-09 17:55:10 +0100758 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800759 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100760 mvn-settings: '{mvn-settings}'
761 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100762 # use default as mvn-profile if profile is not needed
763 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700764 mvn-params: '{mvn-params}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500765
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700766 publishers:
767 - infra-shiplogs:
768 maven-version: '{maven-version}'
769
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500770- job-template:
Gary Wu9e9210f2018-07-18 16:19:20 -0700771 # Job template for Docker daily jobs
772 #
773 # The purpose of this job template is to run:
774 # 1. login to the docker registry
775 # 2. docker push
776 #
777 # Required Variables:
778 # branch: git branch (eg. stable/lithium or master)
779
Gary Wu350fbcb2018-08-07 11:13:59 -0700780 <<: *docker_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700781 name: '{project-name}-{stream}-docker-java-daily'
782 id: docker-java-daily
Gary Wu9e9210f2018-07-18 16:19:20 -0700783 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700784 wrappers:
785 - infra-wrappers-docker-build:
786 build-timeout: '{build-timeout}'
787
Gary Wu9e9210f2018-07-18 16:19:20 -0700788- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +0200789 # Job template for building & pushing docker images
790 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800791 # The purpose of this job template is to run:
JulienBe91c56ec2017-06-21 23:37:39 +0200792 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800793 # 2. maven clean deploy on the specified profile
794 #
795 # This job uses a conditional regex match step to set versions.
796 # This template supports maven properties.
JulienBe91c56ec2017-06-21 23:37:39 +0200797 #
798 # Required Variables:
799 # pom: name/location of the pom.xml file relative to the workspace
800 # profile: the docker profile defined in the pom
801 # maven-properties: properties passed to maven
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800802
JulienBe91c56ec2017-06-21 23:37:39 +0200803 name: '{project-name}-{stream}-docker-java-properties-daily'
804 project-type: freestyle
Jessica Wagantallbedaaee2018-11-08 12:51:52 -0800805 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700806 disabled: '{disabled}'
JulienBe91c56ec2017-06-21 23:37:39 +0200807 properties:
808 - infra-properties:
809 build-days-to-keep: '{build-days-to-keep}'
810 parameters:
811 - infra-parameters:
812 project: '{project}'
813 branch: '{branch}'
814 refspec: 'refs/heads/{branch}'
815 artifacts: '{archive-artifacts}'
816 - maven-exec:
817 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700818 - maven-params:
819 mvn-params: '{mvn-params}'
JulienBe91c56ec2017-06-21 23:37:39 +0200820 scm:
821 - gerrit-trigger-scm:
822 refspec: ''
823 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500824 submodule-recursive: '{submodule-recursive}'
JulienBe91c56ec2017-06-21 23:37:39 +0200825 wrappers:
826 - infra-wrappers:
827 build-timeout: '{build-timeout}'
828 triggers:
829 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700830 - timed: '@daily'
JulienBe91c56ec2017-06-21 23:37:39 +0200831 - gerrit-trigger-release-manually:
832 server: '{server-name}'
833 project: '{project}'
834 branch: '{branch}'
835 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700836 - lf-infra-pre-build
JulienBe91c56ec2017-06-21 23:37:39 +0200837 - provide-maven-settings:
838 global-settings-file: 'global-settings'
839 settings-file: '{mvn-settings}'
JulienBecda17972017-10-17 13:46:51 +0200840 - conditional-step:
841 condition-kind: regex-match
842 regex: DoSetVersion
843 label: '{setVersion}'
844 steps:
845 - inject:
846 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700847 - maven-set-release-version:
JulienBecda17972017-10-17 13:46:51 +0200848 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700849 mvn-settings: '{mvn-settings}'
850 pom:
JulienBe91c56ec2017-06-21 23:37:39 +0200851 - docker-login
852 - maven-docker-push-daily:
853 maven-version: '{maven-version}'
854 mvn-settings: '{mvn-settings}'
855 pom: '{docker-pom}'
856 properties: '{maven-properties}'
857 # use default as mvn-profile if profile is not needed
858 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700859 mvn-params: '{mvn-params}'
JulienBe91c56ec2017-06-21 23:37:39 +0200860 publishers:
861 - infra-shiplogs:
862 maven-version: '{maven-version}'
863
864- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800865 # Job template for building & pushing docker images
866 #
867 # The purpose of this job template is to run:
868 # 1. login to the docker registry
869 # 2. run a specified shell builder
870 #
871 # Required Variables:
872 # pom: name/location of the pom.xml file relative to the workspace
873 # maven-properties: properties passed to maven
874
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500875 name: '{project-name}-{stream}-docker-java-shell-daily'
876 project-type: freestyle
Jessica Wagantallfe5efea2018-08-07 16:02:39 -0700877 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700878 disabled: '{disabled}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500879 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700880 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500881 build-days-to-keep: '{build-days-to-keep}'
882
883 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700884 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500885 project: '{project}'
886 branch: '{branch}'
887 refspec: 'refs/heads/{branch}'
888 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800889 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800890 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500891
892 scm:
893 - gerrit-trigger-scm:
894 refspec: ''
895 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500896 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500897
898 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700899 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500900 build-timeout: '{build-timeout}'
901
902 triggers:
903 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700904 - timed: '@daily'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500905 - gerrit-trigger-release-manually:
906 server: '{server-name}'
907 project: '{project}'
908 branch: '{branch}'
909
910 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700911 - lf-infra-pre-build
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500912 - provide-maven-settings:
913 global-settings-file: 'global-settings'
914 settings-file: '{mvn-settings}'
915
916 - docker-login
917
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500918 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800919 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500920 goals: '{mvn-goals}'
921 settings: '{mvn-settings}'
922 settings-type: cfp
923 global-settings: 'global-settings'
924 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500925
926 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000927
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700928 publishers:
929 - infra-shiplogs:
930 maven-version: '{maven-version}'
931
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000932- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800933 # Job template for building & pushing docker images
934 #
935 # The purpose of this job template is to run:
936 # 1. login to the docker registry
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700937 # 2. run a specified shell builder
938 #
939 # Required Variables:
940 # pom: name/location of the pom.xml file relative to the workspace
941 # maven-properties: properties passed to maven
942
943 name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily'
944 project-type: freestyle
945 node: '{build-node}'
946 disabled: '{disabled}'
947 properties:
948 - infra-properties:
949 build-days-to-keep: '{build-days-to-keep}'
950
951 parameters:
952 - infra-parameters:
953 project: '{project}'
954 branch: '{branch}'
955 refspec: 'refs/heads/{branch}'
956 artifacts: '{archive-artifacts}'
957 - maven-exec:
958 maven-version: '{maven-version}'
959
960 scm:
961 - gerrit-trigger-scm:
962 refspec: ''
963 choosing-strategy: 'default'
964 submodule-recursive: '{submodule-recursive}'
965
966 wrappers:
967 - infra-wrappers:
968 build-timeout: '{build-timeout}'
969
970 triggers:
971 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700972 - timed: '@daily'
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700973 - gerrit-trigger-release-manually:
974 server: '{server-name}'
975 project: '{project}'
976 branch: '{branch}'
977
978 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700979 - lf-infra-pre-build
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700980 - provide-maven-settings:
981 global-settings-file: 'global-settings'
982 settings-file: '{mvn-settings}'
983
984 - docker-login
985
986 - maven-target:
987 maven-version: '{maven-version}'
988 pom: '{pom}'
989 goals: '{mvn-goals}'
990 settings: '{mvn-settings}'
991 settings-type: cfp
992 global-settings: 'global-settings'
993 global-settings-type: cfp
994
995 - shell: '{script}'
996
997 publishers:
998 - infra-shiplogs:
999 maven-version: '{maven-version}'
1000
1001- job-template:
1002 # Job template for building & pushing docker images
1003 #
1004 # The purpose of this job template is to run:
1005 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001006 # 2. inject a version.properties file and set versions
1007 # 3. run a specified shell builder
1008 #
1009 # Required Variables:
1010 # pom: name/location of the pom.xml file relative to the workspace
1011 # maven-properties: properties passed to maven
1012
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001013 name: '{project-name}-{stream}-docker-java-version-shell-daily'
1014 project-type: freestyle
Jessica Wagantalld50aa192018-11-08 13:03:33 -08001015 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001016 disabled: '{disabled}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001017 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001018 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001019 build-days-to-keep: '{build-days-to-keep}'
1020
1021 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001022 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001023 project: '{project}'
1024 branch: '{branch}'
1025 refspec: 'refs/heads/{branch}'
1026 artifacts: '{archive-artifacts}'
1027 - maven-exec:
1028 maven-version: '{maven-version}'
1029
1030 scm:
1031 - gerrit-trigger-scm:
1032 refspec: ''
1033 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001034 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001035
1036 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001037 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001038 build-timeout: '{build-timeout}'
1039
1040 triggers:
1041 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001042 - timed: '@daily'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001043 - gerrit-trigger-release-manually:
1044 server: '{server-name}'
1045 project: '{project}'
1046 branch: '{branch}'
1047
1048 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001049 - lf-infra-pre-build
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001050 - provide-maven-settings:
1051 global-settings-file: 'global-settings'
1052 settings-file: '{mvn-settings}'
1053
1054 - inject:
1055 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001056 - maven-set-release-version:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001057 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001058 mvn-settings: '{mvn-settings}'
1059 pom:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001060
1061 - docker-login
1062
1063 - maven-target:
1064 maven-version: '{maven-version}'
1065 goals: '{mvn-goals}'
1066 settings: '{mvn-settings}'
1067 settings-type: cfp
1068 global-settings: 'global-settings'
1069 global-settings-type: cfp
1070
1071 - shell: '{script}'
1072
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001073 publishers:
1074 - infra-shiplogs:
1075 maven-version: '{maven-version}'
1076
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001077- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001078 # Job template for building & pushing docker images
1079 #
1080 # The purpose of this job template is to run:
1081 # 1. login to the docker registry
1082 # 2. inject a version.properties file and set versions
1083 # 3. run a specified shell builder
1084 #
1085 # This template supports subprojects.
1086 #
1087 # Required Variables:
1088 # pom: name/location of the pom.xml file relative to the workspace
1089 # maven-properties: properties passed to maven
1090
Zhaoxing49773042017-10-13 17:14:35 +08001091 name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
1092 project-type: freestyle
1093 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001094 disabled: '{disabled}'
Zhaoxing49773042017-10-13 17:14:35 +08001095 properties:
1096 - infra-properties:
1097 build-days-to-keep: '{build-days-to-keep}'
1098
1099 parameters:
1100 - infra-parameters:
1101 project: '{project}'
1102 branch: '{branch}'
1103 refspec: 'refs/heads/{branch}'
1104 artifacts: '{archive-artifacts}'
1105 - maven-exec:
1106 maven-version: '{maven-version}'
1107
1108 scm:
1109 - gerrit-trigger-scm:
1110 refspec: ''
1111 choosing-strategy: 'default'
1112 submodule-recursive: '{submodule-recursive}'
1113
1114 wrappers:
1115 - infra-wrappers:
1116 build-timeout: '{build-timeout}'
1117
1118 triggers:
1119 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001120 - timed: '@daily'
Zhaoxing49773042017-10-13 17:14:35 +08001121 - gerrit-trigger-release-manually:
1122 server: '{server-name}'
1123 project: '{project}'
1124 branch: '{branch}'
1125
1126 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001127 - lf-infra-pre-build
Zhaoxing49773042017-10-13 17:14:35 +08001128 - provide-maven-settings:
1129 global-settings-file: 'global-settings'
1130 settings-file: '{mvn-settings}'
1131
1132 - inject:
1133 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001134 - maven-set-release-version:
Zhaoxing49773042017-10-13 17:14:35 +08001135 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001136 mvn-settings: '{mvn-settings}'
Zhaoxing49773042017-10-13 17:14:35 +08001137 pom: '{pom}'
Zhaoxing49773042017-10-13 17:14:35 +08001138
1139 - docker-login
1140
1141 - maven-target:
1142 maven-version: '{maven-version}'
1143 pom: '{pom}'
1144 goals: '{mvn-goals}'
1145 settings: '{mvn-settings}'
1146 settings-type: cfp
1147 global-settings: 'global-settings'
1148 global-settings-type: cfp
1149
1150 - shell: '{script}'
1151
1152 publishers:
1153 - infra-shiplogs:
1154 maven-version: '{maven-version}'
1155
Gary Wu350fbcb2018-08-07 11:13:59 -07001156- job-template: &docker_version_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001157 # Job template for building & pushing docker images
1158 #
1159 # The purpose of this job template is to run:
1160 # 1. login to the docker registry
1161 # 2. inject a version.properties file and set versions
1162 # 3. run a docker push
1163 #
1164 # Required Variables:
1165 # pom: name/location of the pom.xml file relative to the workspace
1166 # profile: the docker profile defined in the pom
1167 # maven-properties: properties passed to maven
1168
Patrick Brady39f388a2017-03-09 11:26:59 -08001169 name: '{project-name}-{stream}-docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -07001170 id: '{project-name}-{stream}-docker-version-java-daily'
Patrick Brady39f388a2017-03-09 11:26:59 -08001171 project-type: freestyle
Paul Vaduva6dd88542018-12-11 16:59:12 +01001172 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001173 disabled: '{disabled}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001174 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001175 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -08001176 build-days-to-keep: '{build-days-to-keep}'
1177
1178 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001179 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -08001180 project: '{project}'
1181 branch: '{branch}'
1182 refspec: 'refs/heads/{branch}'
1183 artifacts: '{archive-artifacts}'
1184 - maven-exec:
1185 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -07001186 - maven-params:
1187 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001188
1189 scm:
1190 - gerrit-trigger-scm:
1191 refspec: ''
1192 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001193 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001194
1195 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001196 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -08001197 build-timeout: '{build-timeout}'
1198
1199 triggers:
1200 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001201 - timed: '@daily'
Patrick Brady39f388a2017-03-09 11:26:59 -08001202 - gerrit-trigger-release-manually:
1203 server: '{server-name}'
1204 project: '{project}'
1205 branch: '{branch}'
1206
1207 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001208 - lf-infra-pre-build
Patrick Brady39f388a2017-03-09 11:26:59 -08001209 - provide-maven-settings:
1210 global-settings-file: 'global-settings'
1211 settings-file: '{mvn-settings}'
1212
1213 - inject:
1214 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001215 - maven-set-release-version:
Patrick Brady39f388a2017-03-09 11:26:59 -08001216 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001217 mvn-settings: '{mvn-settings}'
1218 pom:
Patrick Brady39f388a2017-03-09 11:26:59 -08001219
1220 - docker-login
1221
1222 - maven-docker-push-daily:
1223 maven-version: '{maven-version}'
1224 mvn-settings: '{mvn-settings}'
1225 pom: '{docker-pom}'
1226 # use default as mvn-profile if profile is not needed
1227 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -07001228 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001229
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001230 publishers:
1231 - infra-shiplogs:
1232 maven-version: '{maven-version}'
1233
Patrick Brady39f388a2017-03-09 11:26:59 -08001234- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001235 # Job template for building & pushing docker images
1236 #
1237 # The purpose of this job template is to run:
Gary Wu9e9210f2018-07-18 16:19:20 -07001238 # 1. login to the docker registry
1239 # 2. inject a version.properties file and set versions
1240 # 3. run a docker push
1241 #
1242 # Required Variables:
1243 # pom: name/location of the pom.xml file relative to the workspace
1244 # profile: the docker profile defined in the pom
1245 # maven-properties: properties passed to maven
1246
Gary Wu350fbcb2018-08-07 11:13:59 -07001247 <<: *docker_version_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -07001248 name: '{project-name}-{stream}-docker-version-java-daily'
1249 id: 'docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -07001250 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -07001251 wrappers:
1252 - infra-wrappers-docker-build:
1253 build-timeout: '{build-timeout}'
1254
Zhaoxing49773042017-10-13 17:14:35 +08001255- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001256 # Job template for building & pushing docker images for AAI specific repos
1257 #
1258 # The purpose of this job template is to run:
1259 # 1. login to the docker registry
1260 # 2. run maven goals
1261 # 3. run include-docker-push.sh
1262 #
1263 # Required Variables:
1264 # pom: name/location of the pom.xml file relative to the workspace
1265 # maven-properties: properties passed to maven
1266
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001267 name: '{project-name}-{stream}-aai-docker-java-daily'
1268 project-type: freestyle
Jessica Wagantallab30bf62018-11-08 12:20:48 -08001269 node: '{build-node}'
Gary Wudc3f2952017-08-23 16:48:59 -07001270 docker-image-name: ''
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001271 disabled: '{disabled}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001272 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001273 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001274 build-days-to-keep: '{build-days-to-keep}'
1275
1276 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001277 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001278 project: '{project}'
1279 branch: '{branch}'
1280 refspec: 'refs/heads/{branch}'
1281 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001282 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001283 maven-version: '{maven-version}'
Gary Wudc3f2952017-08-23 16:48:59 -07001284 - docker-image-name:
1285 docker-image-name: '{docker-image-name}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001286
1287 scm:
1288 - gerrit-trigger-scm:
1289 refspec: ''
1290 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001291 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001292
1293 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001294 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001295 build-timeout: '{build-timeout}'
1296
1297 triggers:
1298 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001299 - timed: '@daily'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001300 - gerrit-trigger-release-manually:
1301 server: '{server-name}'
1302 project: '{project}'
1303 branch: '{branch}'
1304
1305 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001306 - lf-infra-pre-build
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001307 - provide-maven-settings:
1308 global-settings-file: 'global-settings'
1309 settings-file: '{mvn-settings}'
1310
1311 - docker-login
1312
1313 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001314 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001315 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001316 goals: 'clean install -DskipTests -B
1317 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001318 settings: '{mvn-settings}'
1319 settings-type: cfp
1320 global-settings: 'global-settings'
1321 global-settings-type: cfp
1322
1323 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001324 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001325 pom: '{pom}'
1326 goals: '{mvn-goals}'
1327 settings: '{mvn-settings}'
1328 settings-type: cfp
1329 global-settings: 'global-settings'
1330 global-settings-type: cfp
1331 properties:
1332 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001333 - docker.pull.registry=nexus3.onap.org:10001
1334 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001335
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001336 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001337
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001338 publishers:
1339 - infra-shiplogs:
1340 maven-version: '{maven-version}'
1341
Carsten Lund2d06a692017-02-23 18:23:07 +00001342- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001343 # Job template for Java merge jobs for SDC specific repos
ig61339fdb9d22017-04-03 17:47:19 +03001344 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001345 # The purpose of this job template is to run:
1346 # 1. maven clean deploy
ig61339fdb9d22017-04-03 17:47:19 +03001347 #
1348 # Required Variables:
1349 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001350
Gary Wu6c702772018-08-06 18:48:02 -07001351 <<: *merge_java_defaults
ig61339fdb9d22017-04-03 17:47:19 +03001352 name: '{project-name}-{stream}-sdc-merge-java'
1353
Paul Vaduva3aebd312019-02-01 13:35:21 +01001354 node: '{build-node}'
Jessica Wagantall9a89de42018-04-18 11:35:17 -07001355 build-timeout: 120
ig61339fdb9d22017-04-03 17:47:19 +03001356
ig61339fdb9d22017-04-03 17:47:19 +03001357 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001358 - lf-infra-pre-build
ig61339fdb9d22017-04-03 17:47:19 +03001359 - provide-maven-settings:
1360 global-settings-file: 'global-settings'
1361 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001362
1363 - docker-login
1364
Gary Wu6c702772018-08-06 18:48:02 -07001365 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001366 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001367 mvn-settings: '{mvn-settings}'
1368 pom: '{docker-pom}'
1369 # use default as mvn-profile if profile is not needed
1370 mvn-profile: '{mvn-profile}'
Gary Wu6c702772018-08-06 18:48:02 -07001371 mvn-params: ''