blob: c7fe3cf80729fdc48acea60bed0282370fb217a6 [file] [log] [blame]
Andrew Grimbergebc710a2017-01-30 12:59:38 -08001---
Gary Wu6c702772018-08-06 18:48:02 -07002- job-template: &verify_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -08003 # Job template for Java verify jobs
4 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08005 # The purpose of this job template is to run:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08006 # 1. maven clean install
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -05007 #
8 # Required Variables:
9 # branch: git branch (eg. stable/lithium or master)
10
Andrew Grimbergce2286c2017-01-31 05:50:39 -080011 name: '{project-name}-{stream}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080012
13 project-type: freestyle
14 concurrent: true
15 node: '{build-node}'
Gary Wu5918acd2018-08-06 16:42:21 -070016 pattern: '**'
Gary Wu6c702772018-08-06 18:48:02 -070017 pom:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080018
19 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070020 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080021 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080022
23 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070024 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080025 project: '{project}'
26 branch: '{branch}'
27 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080028 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080029 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080030 maven-version: '{maven-version}'
Jessica Wagantalld25908c2018-03-28 12:06:39 -070031 - maven-params:
32 mvn-params: '{mvn-params}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080033
34 scm:
35 - gerrit-trigger-scm:
36 refspec: '$GERRIT_REFSPEC'
37 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050038 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080039
40 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070041 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080042 build-timeout: '{build-timeout}'
43
44 triggers:
45 - gerrit-trigger-patch-submitted:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080046 server: '{server-name}'
47 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080048 branch: '{branch}'
Gary Wu5918acd2018-08-06 16:42:21 -070049 files: '{obj:pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080050
51 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070052 - lf-infra-pre-build
Andrew Grimbergebc710a2017-01-30 12:59:38 -080053 - provide-maven-settings:
54 global-settings-file: 'global-settings'
55 settings-file: '{mvn-settings}'
56 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -080057 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -070058 pom: '{obj:pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -040059 goals: 'clean install -B
Jessica Wagantalld25908c2018-03-28 12:06:39 -070060 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn {mvn-params}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080061 settings: '{mvn-settings}'
62 settings-type: cfp
63 global-settings: 'global-settings'
64 global-settings-type: cfp
65
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070066 publishers:
67 - infra-shiplogs:
68 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080069
70- job-template:
JulienBe77903ed2017-07-17 15:30:26 +020071 # Job template for Java verify jobs running checkstyle at the end
72 # When checkstyle will be fully incorporated, it is meant to replace
73 # '{project-name}-{stream}-verify-java-checkstyle'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080074 #
75 # The purpose of this job template is to run:
76 # 1. maven clean install
77 #
78 # This job publishes checkstyle results.
JulienBe77903ed2017-07-17 15:30:26 +020079 #
80 # Required Variables:
81 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080082
Gary Wu6c702772018-08-06 18:48:02 -070083 <<: *verify_java_defaults
JulienBe77903ed2017-07-17 15:30:26 +020084 name: '{project-name}-{stream}-verify-java-checkstyle'
JulienBe77903ed2017-07-17 15:30:26 +020085 publishers:
86 - infra-shiplogs:
87 maven-version: '{maven-version}'
88 - checkstyle-result
89
90- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080091 # Job template for Java verify jobs with POM not at the root
92 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080093 # The purpose of this job template is to run:
94 # 1. maven clean install
95 #
96 # This job supports subprojects.
Andrew Grimbergebc710a2017-01-30 12:59:38 -080097 #
98 # Required Variables:
99 # branch: git branch (eg. stable/lithium or master)
100 # pom: name/location of the pom.xml file relative to the workspace
101 # pattern: ant file-path pattern relative to the workspace used to
102 # trigger the job
103
Gary Wu6c702772018-08-06 18:48:02 -0700104 <<: *verify_java_defaults
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800105 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800106
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800107- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100108 # Job template for Java daily release jobs
109 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800110 # The purpose of this job template is to run:
111 # 1. maven clean deploy with Sonar scans
JulienBe2f4ee072017-02-01 21:42:32 +0100112 #
113 # Required Variables:
114 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800115
JulienBe2f4ee072017-02-01 21:42:32 +0100116 name: '{project-name}-{stream}-release-java-daily'
117
118 project-type: freestyle
119 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700120 disabled: '{disabled}'
JulienBe2f4ee072017-02-01 21:42:32 +0100121 maven-deploy-properties:
122 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700123 - infra-properties:
JulienBe2f4ee072017-02-01 21:42:32 +0100124 build-days-to-keep: '{build-days-to-keep}'
125
126 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700127 - infra-parameters:
JulienBe2f4ee072017-02-01 21:42:32 +0100128 project: '{project}'
129 branch: '{branch}'
130 refspec: 'refs/heads/{branch}'
131 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800132 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800133 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100134
135 scm:
136 - gerrit-trigger-scm:
137 refspec: ''
138 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500139 submodule-recursive: '{submodule-recursive}'
JulienBe2f4ee072017-02-01 21:42:32 +0100140
141 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700142 - infra-wrappers:
JulienBe2f4ee072017-02-01 21:42:32 +0100143 build-timeout: '{build-timeout}'
144
145 triggers:
146 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700147 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800148 - gerrit-trigger-release-manually:
149 server: '{server-name}'
150 project: '{project}'
151 branch: '{branch}'
JulienBe2f4ee072017-02-01 21:42:32 +0100152
153 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700154 - lf-infra-pre-build
JulienBe2f4ee072017-02-01 21:42:32 +0100155 - provide-maven-settings:
156 global-settings-file: 'global-settings'
157 settings-file: '{mvn-settings}'
158
JulienBe5641aa02017-02-17 01:08:38 -0800159 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800160 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800161 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400162 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBe5641aa02017-02-17 01:08:38 -0800163 properties:
164 - '{maven-deploy-properties}'
Jessica Wagantall6223d1d2017-08-07 14:46:58 -0700165 java-opts:
166 - '-Xmx4096m -XX:MaxPermSize=512m'
JulienBe5641aa02017-02-17 01:08:38 -0800167 settings: '{mvn-settings}'
168 settings-type: cfp
169 global-settings: 'global-settings'
170 global-settings-type: cfp
171
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700172 publishers:
173 - infra-shiplogs:
174 maven-version: '{maven-version}'
175
JulienBe5641aa02017-02-17 01:08:38 -0800176- job-template:
JulienBe77903ed2017-07-17 15:30:26 +0200177 # Job template for Java daily release jobs running checkstyle at the end
178 # When checkstyle will be fully incorporated, it is meant to replace
179 # '{project-name}-{stream}-release-java-daily'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800180 #
181 # The purpose of this job template is to run:
182 # 1. maven clean deploy with Sonar scans
183 #
184 # This job publishes checkstyle results.
185 # This job uses a conditional regex match step to set versions.
JulienBe77903ed2017-07-17 15:30:26 +0200186 #
187 # Required Variables:
188 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800189
JulienBe77903ed2017-07-17 15:30:26 +0200190 name: '{project-name}-{stream}-release-java-daily-checkstyle'
191 project-type: freestyle
192 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700193 disabled: '{disabled}'
JulienBe77903ed2017-07-17 15:30:26 +0200194 maven-deploy-properties:
195 properties:
196 - infra-properties:
197 build-days-to-keep: '{build-days-to-keep}'
198 parameters:
199 - infra-parameters:
200 project: '{project}'
201 branch: '{branch}'
202 refspec: 'refs/heads/{branch}'
203 artifacts: '{archive-artifacts}'
204 - maven-exec:
205 maven-version: '{maven-version}'
206 scm:
207 - gerrit-trigger-scm:
208 refspec: ''
209 choosing-strategy: 'default'
210 submodule-recursive: '{submodule-recursive}'
211 wrappers:
212 - infra-wrappers:
213 build-timeout: '{build-timeout}'
214 triggers:
215 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700216 - timed: '@daily'
JulienBe77903ed2017-07-17 15:30:26 +0200217 - gerrit-trigger-release-manually:
218 server: '{server-name}'
219 project: '{project}'
220 branch: '{branch}'
221 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700222 - lf-infra-pre-build
JulienBe77903ed2017-07-17 15:30:26 +0200223 - provide-maven-settings:
224 global-settings-file: 'global-settings'
225 settings-file: '{mvn-settings}'
JulienBed91a33a2017-09-25 15:56:34 +0200226 - conditional-step:
227 condition-kind: regex-match
228 regex: DoSetVersion
229 label: '{setVersion}'
230 steps:
231 - inject:
232 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700233 - maven-set-release-version:
JulienBed91a33a2017-09-25 15:56:34 +0200234 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700235 mvn-settings: '{mvn-settings}'
236 pom:
JulienBe77903ed2017-07-17 15:30:26 +0200237 - maven-target:
238 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800239 goals: 'clean deploy -B
JulienBe77903ed2017-07-17 15:30:26 +0200240 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBec9d90e22017-08-08 10:44:10 +0200241 properties: '{obj:mvn_properties}'
JulienBe77903ed2017-07-17 15:30:26 +0200242 settings: '{mvn-settings}'
243 settings-type: cfp
244 global-settings: 'global-settings'
245 global-settings-type: cfp
246 publishers:
247 - infra-shiplogs:
248 maven-version: '{maven-version}'
249 - checkstyle-result-daily
250
251- job-template:
JulienBe5641aa02017-02-17 01:08:38 -0800252 # Job template for Java daily release jobs
253 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800254 # The purpose of this job template is to run:
255 # 1. maven set versions
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800256 # 2. maven clean deploy with Sonar scans
Pamela Dragosh55ceb8f2017-05-23 12:23:16 -0400257 #
258 # Required Variables:
259 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800260
JulienBe5641aa02017-02-17 01:08:38 -0800261 name: '{project-name}-{stream}-release-version-java-daily'
262
263 project-type: freestyle
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700264 disabled: '{disabled}'
JulienBe5641aa02017-02-17 01:08:38 -0800265 node: '{build-node}'
266 maven-deploy-properties:
267 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700268 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800269 build-days-to-keep: '{build-days-to-keep}'
270
271 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700272 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800273 project: '{project}'
274 branch: '{branch}'
275 refspec: 'refs/heads/{branch}'
276 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800277 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800278 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800279
280 scm:
281 - gerrit-trigger-scm:
282 refspec: ''
283 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500284 submodule-recursive: '{submodule-recursive}'
JulienBe5641aa02017-02-17 01:08:38 -0800285
286 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700287 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800288 build-timeout: '{build-timeout}'
289
290 triggers:
291 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700292 - timed: '@daily'
JulienBe5641aa02017-02-17 01:08:38 -0800293 - gerrit-trigger-release-manually:
294 server: '{server-name}'
295 project: '{project}'
296 branch: '{branch}'
297
298 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700299 - lf-infra-pre-build
JulienBe5641aa02017-02-17 01:08:38 -0800300 - provide-maven-settings:
301 global-settings-file: 'global-settings'
302 settings-file: '{mvn-settings}'
303
JulienBe2f4ee072017-02-01 21:42:32 +0100304 - inject:
305 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700306 - maven-set-release-version:
Andrew Grimberge2465882017-02-24 12:38:05 -0800307 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700308 mvn-settings: '{mvn-settings}'
309 pom:
JulienBe2f4ee072017-02-01 21:42:32 +0100310
311 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800312 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800313 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400314 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800315 properties:
316 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100317 settings: '{mvn-settings}'
318 settings-type: cfp
319 global-settings: 'global-settings'
320 global-settings-type: cfp
321
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700322 publishers:
323 - infra-shiplogs:
324 maven-version: '{maven-version}'
325
JulienBe2f4ee072017-02-01 21:42:32 +0100326- job-template:
JulienBe645951d2017-09-28 18:44:18 +0200327 # Job template for Java daily release jobs
328 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800329 # The purpose of this job template is to run:
330 # 1. maven set versions
331 # 2. maven clean deploy -P {mvn-profile} with Sonar scans
JulienBe645951d2017-09-28 18:44:18 +0200332 #
333 # Required Variables:
334 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800335
JulienBe645951d2017-09-28 18:44:18 +0200336 name: '{project-name}-{stream}-release-version-profile-java-daily'
337
338 project-type: freestyle
339 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700340 disabled: '{disabled}'
JulienBe645951d2017-09-28 18:44:18 +0200341 maven-deploy-properties:
342 properties:
343 - infra-properties:
344 build-days-to-keep: '{build-days-to-keep}'
345
346 parameters:
347 - infra-parameters:
348 project: '{project}'
349 branch: '{branch}'
350 refspec: 'refs/heads/{branch}'
351 artifacts: '{archive-artifacts}'
352 - maven-exec:
353 maven-version: '{maven-version}'
354
355 scm:
356 - gerrit-trigger-scm:
357 refspec: ''
358 choosing-strategy: 'default'
359 submodule-recursive: '{submodule-recursive}'
360
361 wrappers:
362 - infra-wrappers:
363 build-timeout: '{build-timeout}'
364
365 triggers:
366 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700367 - timed: '@daily'
JulienBe645951d2017-09-28 18:44:18 +0200368 - gerrit-trigger-release-manually:
369 server: '{server-name}'
370 project: '{project}'
371 branch: '{branch}'
372
373 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700374 - lf-infra-pre-build
JulienBe645951d2017-09-28 18:44:18 +0200375 - provide-maven-settings:
376 global-settings-file: 'global-settings'
377 settings-file: '{mvn-settings}'
378
379 - inject:
380 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700381 - maven-set-release-version:
JulienBe645951d2017-09-28 18:44:18 +0200382 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700383 mvn-settings: '{mvn-settings}'
384 pom:
JulienBe645951d2017-09-28 18:44:18 +0200385
386 - maven-target:
387 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800388 goals: 'clean deploy -P {mvn-profile} -B
JulienBe645951d2017-09-28 18:44:18 +0200389 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
390 properties:
391 - '{maven-deploy-properties}'
392 settings: '{mvn-settings}'
393 settings-type: cfp
394 global-settings: 'global-settings'
395 global-settings-type: cfp
396
397 publishers:
398 - infra-shiplogs:
399 maven-version: '{maven-version}'
400
401
402- job-template:
Carsten Lundda8b6972017-02-15 23:59:25 +0000403 # Job template for Java daily release jobs with POM not at the root
404 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800405 # The purpose of this job template is to run:
406 # 1. maven clean deploy with Sonar scans
407 #
408 # This job supports subprojects.
Carsten Lundda8b6972017-02-15 23:59:25 +0000409 #
410 # Required Variables:
411 # branch: git branch (eg. stable/lithium or master)
412 # pom: name/location of the pom.xml file relative to the workspace
413
Carsten Lundda8b6972017-02-15 23:59:25 +0000414 name: '{project-name}-{stream}-{subproject}-release-java-daily'
415
416 project-type: freestyle
417 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700418 disabled: '{disabled}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000419 maven-deploy-properties:
420 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700421 - infra-properties:
Carsten Lundda8b6972017-02-15 23:59:25 +0000422 build-days-to-keep: '{build-days-to-keep}'
423
424 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700425 - infra-parameters:
Carsten Lundda8b6972017-02-15 23:59:25 +0000426 project: '{project}'
427 branch: '{branch}'
428 refspec: 'refs/heads/{branch}'
429 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800430 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800431 maven-version: '{maven-version}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000432
433 scm:
434 - gerrit-trigger-scm:
435 refspec: ''
436 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500437 submodule-recursive: '{submodule-recursive}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000438
439 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700440 - infra-wrappers:
Carsten Lundda8b6972017-02-15 23:59:25 +0000441 build-timeout: '{build-timeout}'
442
443 triggers:
444 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700445 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800446 - gerrit-trigger-release-manually:
447 server: '{server-name}'
448 project: '{project}'
449 branch: '{branch}'
Carsten Lundda8b6972017-02-15 23:59:25 +0000450
451 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700452 - lf-infra-pre-build
Carsten Lundda8b6972017-02-15 23:59:25 +0000453 - provide-maven-settings:
454 global-settings-file: 'global-settings'
455 settings-file: '{mvn-settings}'
456
Carsten Lundda8b6972017-02-15 23:59:25 +0000457 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800458 maven-version: '{maven-version}'
Carsten Lund63cd3b82017-02-18 18:19:22 +0000459 pom: '{pom}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800460 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400461 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Carsten Lundda8b6972017-02-15 23:59:25 +0000462 properties:
463 - '{maven-deploy-properties}'
Jessica Wagantall30f0d782017-08-08 13:37:25 -0700464 java-opts:
465 - '-Xmx4096m -XX:MaxPermSize=512m'
Carsten Lundda8b6972017-02-15 23:59:25 +0000466 settings: '{mvn-settings}'
467 settings-type: cfp
468 global-settings: 'global-settings'
469 global-settings-type: cfp
470
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700471 publishers:
472 - infra-shiplogs:
473 maven-version: '{maven-version}'
474
Carsten Lundda8b6972017-02-15 23:59:25 +0000475- job-template:
Jessica Wagantallae897942017-09-28 10:56:55 -0700476 # Job template for Java daily release jobs with POM not at the root
477 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800478 # The purpose of this job template is to run:
479 # 1. maven set versions
480 # 2. maven clean deploy with Sonar scans
481 #
482 # This job supports subprojects.
Jessica Wagantallae897942017-09-28 10:56:55 -0700483 #
484 # Required Variables:
485 # branch: git branch (eg. stable/lithium or master)
486 # pom: name/location of the pom.xml file relative to the workspace
487
Zhaoxinga77c0412017-10-11 09:05:49 +0800488 name: '{project-name}-{stream}-{subproject}-release-version-java-daily'
489
490 project-type: freestyle
491 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700492 disabled: '{disabled}'
Jessica Wagantallae237f72019-04-04 20:30:44 -0700493 version-properties: 'version.properties'
Zhaoxinga77c0412017-10-11 09:05:49 +0800494 maven-deploy-properties:
495 properties:
496 - infra-properties:
497 build-days-to-keep: '{build-days-to-keep}'
498
499 parameters:
500 - infra-parameters:
501 project: '{project}'
502 branch: '{branch}'
503 refspec: 'refs/heads/{branch}'
504 artifacts: '{archive-artifacts}'
505 - maven-exec:
506 maven-version: '{maven-version}'
507
508 scm:
509 - gerrit-trigger-scm:
510 refspec: ''
511 choosing-strategy: 'default'
512 submodule-recursive: '{submodule-recursive}'
513
514 wrappers:
515 - infra-wrappers:
516 build-timeout: '{build-timeout}'
517
518 triggers:
519 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700520 - timed: '@daily'
Zhaoxinga77c0412017-10-11 09:05:49 +0800521 - gerrit-trigger-release-manually:
522 server: '{server-name}'
523 project: '{project}'
524 branch: '{branch}'
525
526 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700527 - lf-infra-pre-build
Zhaoxinga77c0412017-10-11 09:05:49 +0800528 - provide-maven-settings:
529 global-settings-file: 'global-settings'
530 settings-file: '{mvn-settings}'
531
532 - inject:
Jessica Wagantallae237f72019-04-04 20:30:44 -0700533 properties-file: '{version-properties}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700534 - maven-set-release-version:
Zhaoxinga77c0412017-10-11 09:05:49 +0800535 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700536 mvn-settings: '{mvn-settings}'
Zhaoxing327f9592017-10-13 13:37:17 +0800537 pom: '{pom}'
Zhaoxinga77c0412017-10-11 09:05:49 +0800538
539 - maven-target:
540 maven-version: '{maven-version}'
541 pom: '{pom}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800542 goals: 'clean deploy -B
Zhaoxinga77c0412017-10-11 09:05:49 +0800543 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
544 properties:
545 - '{maven-deploy-properties}'
546 settings: '{mvn-settings}'
547 settings-type: cfp
548 global-settings: 'global-settings'
549 global-settings-type: cfp
550
551 publishers:
552 - infra-shiplogs:
553 maven-version: '{maven-version}'
554
Jessica Wagantall91685e12018-03-20 17:13:40 -0700555
Gary Wu6c702772018-08-06 18:48:02 -0700556- job-template: &merge_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800557 # Job template for Java merge jobs
558 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800559 # The purpose of this job template is to run:
560 # 1. maven clean deploy
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800561 #
562 # Required Variables:
563 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800564
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800565 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800566
567 project-type: freestyle
568 node: '{build-node}'
Gary Wu6c702772018-08-06 18:48:02 -0700569 pattern: '**'
570 pom:
571 mvn_properties: []
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700572 mvn-params: ''
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800573
574 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700575 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800576 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800577
578 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700579 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800580 project: '{project}'
581 branch: '{branch}'
582 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800583 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800584 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800585 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800586
587 scm:
588 - gerrit-trigger-scm:
589 refspec: ''
590 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500591 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800592
593 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700594 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800595 build-timeout: '{build-timeout}'
596
597 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800598 - gerrit-trigger-patch-merged:
599 server: '{server-name}'
600 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800601 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800602 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800603
604 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700605 - lf-infra-pre-build
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800606 - provide-maven-settings:
607 global-settings-file: 'global-settings'
608 settings-file: '{mvn-settings}'
609 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800610 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -0700611 pom: '{obj:pom}'
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700612 goals: 'clean deploy -B {mvn-params}
Andrew Grimberge55b6222017-05-03 16:19:28 -0400613 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800614 settings: '{mvn-settings}'
615 settings-type: cfp
616 global-settings: 'global-settings'
617 global-settings-type: cfp
Gary Wu6c702772018-08-06 18:48:02 -0700618 properties: '{obj:mvn_properties}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800619
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700620 publishers:
621 - infra-shiplogs:
622 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100623
624- job-template:
Gary Wu6c702772018-08-06 18:48:02 -0700625 # Job template for Java merge jobs based on
626 # '{project-name}-{stream}-merge-java'
627 # The purpose of this job template is to run:
628 # 1. maven clean deploy
629 #
630 # This project supports maven properties.
631 #
632 # Required Variables:
633 # branch: git branch (eg. stable/lithium or master)
634 # maven-properties: properties passed to maven
635
636 <<: *merge_java_defaults
637 name: '{project-name}-{stream}-merge-properties-java'
638
639- job-template:
640 # Job template for Java merge jobs that takes a maven template
641 #
642 # The purpose of this job template is to run:
643 # 1. maven clean deploy -P {mvn-profile}
644 #
645 # Required Variables:
646 # branch: git branch (eg. stable/lithium or master)
647
648 <<: *merge_java_defaults
649 name: '{project-name}-{stream}-merge-profile-java'
650
651 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700652 - lf-infra-pre-build
Gary Wu6c702772018-08-06 18:48:02 -0700653 - provide-maven-settings:
654 global-settings-file: 'global-settings'
655 settings-file: '{mvn-settings}'
656
657 - docker-login
658
659 - maven-target:
660 maven-version: '{maven-version}'
661 goals: 'clean deploy -P {mvn-profile} -B
662 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
663 settings: '{mvn-settings}'
664 settings-type: cfp
665 global-settings: 'global-settings'
666 global-settings-type: cfp
667 properties:
668 - docker.pull.registry=nexus3.onap.org:10001
669 - docker.push.registry=nexus3.onap.org:10003
670
671- job-template:
672 # Job template for Java merge jobs with POM not at the root
673 #
674 # The purpose of this job template is to run:
675 # 1. maven clean deploy
676 #
677 # This job supports subprojects.
678 #
679 # Required Variables:
680 # branch: git branch (eg. stable/lithium or master)
681 # pom: name/location of the pom.xml file relative to the workspace
682 # pattern: ant file-path pattern relative to the workspace used to
683 # trigger the job
684
685 <<: *merge_java_defaults
686 name: '{project-name}-{stream}-{subproject}-merge-java'
687
Gary Wu350fbcb2018-08-07 11:13:59 -0700688- job-template: &docker_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800689 # Job template for Docker daily jobs
690 #
691 # The purpose of this job template is to run:
692 # 1. login to the docker registry
693 # 2. docker push
694 #
695 # Required Variables:
696 # branch: git branch (eg. stable/lithium or master)
697
Anaël Clossonabbafb52017-02-09 17:55:10 +0100698 name: '{project-name}-{stream}-docker-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700699 id: '{project-name}-{stream}-docker-java-daily'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100700 project-type: freestyle
Jessica Wagantall34e6d6b2018-11-08 12:43:06 -0800701 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700702 disabled: '{disabled}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100703 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700704 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100705 build-days-to-keep: '{build-days-to-keep}'
706
707 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700708 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100709 project: '{project}'
710 branch: '{branch}'
711 refspec: 'refs/heads/{branch}'
712 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800713 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800714 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700715 - maven-params:
716 mvn-params: '{mvn-params}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100717
718 scm:
719 - gerrit-trigger-scm:
720 refspec: ''
721 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500722 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100723
Anaël Clossonabbafb52017-02-09 17:55:10 +0100724 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700725 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100726 build-timeout: '{build-timeout}'
727
728 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800729 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700730 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800731 - gerrit-trigger-release-manually:
732 server: '{server-name}'
733 project: '{project}'
734 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100735
736 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700737 - lf-infra-pre-build
Anaël Clossonabbafb52017-02-09 17:55:10 +0100738 - provide-maven-settings:
739 global-settings-file: 'global-settings'
740 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100741
Anaël Closson63e090e2017-02-15 14:50:45 +0100742 - docker-login
743
Anaël Clossonabbafb52017-02-09 17:55:10 +0100744 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800745 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100746 mvn-settings: '{mvn-settings}'
747 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100748 # use default as mvn-profile if profile is not needed
749 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700750 mvn-params: '{mvn-params}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500751
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700752 publishers:
753 - infra-shiplogs:
754 maven-version: '{maven-version}'
755
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500756- job-template:
Gary Wu9e9210f2018-07-18 16:19:20 -0700757 # Job template for Docker daily jobs
758 #
759 # The purpose of this job template is to run:
760 # 1. login to the docker registry
761 # 2. docker push
762 #
763 # Required Variables:
764 # branch: git branch (eg. stable/lithium or master)
765
Gary Wu350fbcb2018-08-07 11:13:59 -0700766 <<: *docker_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700767 name: '{project-name}-{stream}-docker-java-daily'
768 id: docker-java-daily
Gary Wu9e9210f2018-07-18 16:19:20 -0700769 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700770 wrappers:
771 - infra-wrappers-docker-build:
772 build-timeout: '{build-timeout}'
773
Gary Wu9e9210f2018-07-18 16:19:20 -0700774- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +0200775 # Job template for building & pushing docker images
776 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800777 # The purpose of this job template is to run:
JulienBe91c56ec2017-06-21 23:37:39 +0200778 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800779 # 2. maven clean deploy on the specified profile
780 #
781 # This job uses a conditional regex match step to set versions.
782 # This template supports maven properties.
JulienBe91c56ec2017-06-21 23:37:39 +0200783 #
784 # Required Variables:
785 # pom: name/location of the pom.xml file relative to the workspace
786 # profile: the docker profile defined in the pom
787 # maven-properties: properties passed to maven
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800788
JulienBe91c56ec2017-06-21 23:37:39 +0200789 name: '{project-name}-{stream}-docker-java-properties-daily'
790 project-type: freestyle
Jessica Wagantallbedaaee2018-11-08 12:51:52 -0800791 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700792 disabled: '{disabled}'
JulienBe91c56ec2017-06-21 23:37:39 +0200793 properties:
794 - infra-properties:
795 build-days-to-keep: '{build-days-to-keep}'
796 parameters:
797 - infra-parameters:
798 project: '{project}'
799 branch: '{branch}'
800 refspec: 'refs/heads/{branch}'
801 artifacts: '{archive-artifacts}'
802 - maven-exec:
803 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700804 - maven-params:
805 mvn-params: '{mvn-params}'
JulienBe91c56ec2017-06-21 23:37:39 +0200806 scm:
807 - gerrit-trigger-scm:
808 refspec: ''
809 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500810 submodule-recursive: '{submodule-recursive}'
JulienBe91c56ec2017-06-21 23:37:39 +0200811 wrappers:
812 - infra-wrappers:
813 build-timeout: '{build-timeout}'
814 triggers:
815 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700816 - timed: '@daily'
JulienBe91c56ec2017-06-21 23:37:39 +0200817 - gerrit-trigger-release-manually:
818 server: '{server-name}'
819 project: '{project}'
820 branch: '{branch}'
821 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700822 - lf-infra-pre-build
JulienBe91c56ec2017-06-21 23:37:39 +0200823 - provide-maven-settings:
824 global-settings-file: 'global-settings'
825 settings-file: '{mvn-settings}'
JulienBecda17972017-10-17 13:46:51 +0200826 - conditional-step:
827 condition-kind: regex-match
828 regex: DoSetVersion
829 label: '{setVersion}'
830 steps:
831 - inject:
832 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700833 - maven-set-release-version:
JulienBecda17972017-10-17 13:46:51 +0200834 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700835 mvn-settings: '{mvn-settings}'
836 pom:
JulienBe91c56ec2017-06-21 23:37:39 +0200837 - docker-login
838 - maven-docker-push-daily:
839 maven-version: '{maven-version}'
840 mvn-settings: '{mvn-settings}'
841 pom: '{docker-pom}'
842 properties: '{maven-properties}'
843 # use default as mvn-profile if profile is not needed
844 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700845 mvn-params: '{mvn-params}'
JulienBe91c56ec2017-06-21 23:37:39 +0200846 publishers:
847 - infra-shiplogs:
848 maven-version: '{maven-version}'
849
850- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800851 # Job template for building & pushing docker images
852 #
853 # The purpose of this job template is to run:
854 # 1. login to the docker registry
855 # 2. run a specified shell builder
856 #
857 # Required Variables:
858 # pom: name/location of the pom.xml file relative to the workspace
859 # maven-properties: properties passed to maven
860
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500861 name: '{project-name}-{stream}-docker-java-shell-daily'
862 project-type: freestyle
Jessica Wagantallfe5efea2018-08-07 16:02:39 -0700863 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700864 disabled: '{disabled}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500865 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700866 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500867 build-days-to-keep: '{build-days-to-keep}'
868
869 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700870 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500871 project: '{project}'
872 branch: '{branch}'
873 refspec: 'refs/heads/{branch}'
874 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800875 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800876 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500877
878 scm:
879 - gerrit-trigger-scm:
880 refspec: ''
881 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500882 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500883
884 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700885 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500886 build-timeout: '{build-timeout}'
887
888 triggers:
889 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700890 - timed: '@daily'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500891 - gerrit-trigger-release-manually:
892 server: '{server-name}'
893 project: '{project}'
894 branch: '{branch}'
895
896 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700897 - lf-infra-pre-build
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500898 - provide-maven-settings:
899 global-settings-file: 'global-settings'
900 settings-file: '{mvn-settings}'
901
902 - docker-login
903
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500904 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800905 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500906 goals: '{mvn-goals}'
907 settings: '{mvn-settings}'
908 settings-type: cfp
909 global-settings: 'global-settings'
910 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500911
912 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000913
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700914 publishers:
915 - infra-shiplogs:
916 maven-version: '{maven-version}'
917
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000918- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800919 # Job template for building & pushing docker images
920 #
921 # The purpose of this job template is to run:
922 # 1. login to the docker registry
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700923 # 2. run a specified shell builder
924 #
925 # Required Variables:
926 # pom: name/location of the pom.xml file relative to the workspace
927 # maven-properties: properties passed to maven
928
929 name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily'
930 project-type: freestyle
931 node: '{build-node}'
932 disabled: '{disabled}'
933 properties:
934 - infra-properties:
935 build-days-to-keep: '{build-days-to-keep}'
936
937 parameters:
938 - infra-parameters:
939 project: '{project}'
940 branch: '{branch}'
941 refspec: 'refs/heads/{branch}'
942 artifacts: '{archive-artifacts}'
943 - maven-exec:
944 maven-version: '{maven-version}'
945
946 scm:
947 - gerrit-trigger-scm:
948 refspec: ''
949 choosing-strategy: 'default'
950 submodule-recursive: '{submodule-recursive}'
951
952 wrappers:
953 - infra-wrappers:
954 build-timeout: '{build-timeout}'
955
956 triggers:
957 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700958 - timed: '@daily'
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700959 - gerrit-trigger-release-manually:
960 server: '{server-name}'
961 project: '{project}'
962 branch: '{branch}'
963
964 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700965 - lf-infra-pre-build
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700966 - provide-maven-settings:
967 global-settings-file: 'global-settings'
968 settings-file: '{mvn-settings}'
969
970 - docker-login
971
972 - maven-target:
973 maven-version: '{maven-version}'
974 pom: '{pom}'
975 goals: '{mvn-goals}'
976 settings: '{mvn-settings}'
977 settings-type: cfp
978 global-settings: 'global-settings'
979 global-settings-type: cfp
980
981 - shell: '{script}'
982
983 publishers:
984 - infra-shiplogs:
985 maven-version: '{maven-version}'
986
987- job-template:
988 # Job template for building & pushing docker images
989 #
990 # The purpose of this job template is to run:
991 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800992 # 2. inject a version.properties file and set versions
993 # 3. run a specified shell builder
994 #
995 # Required Variables:
996 # pom: name/location of the pom.xml file relative to the workspace
997 # maven-properties: properties passed to maven
998
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400999 name: '{project-name}-{stream}-docker-java-version-shell-daily'
1000 project-type: freestyle
Jessica Wagantalld50aa192018-11-08 13:03:33 -08001001 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001002 disabled: '{disabled}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001003 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001004 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001005 build-days-to-keep: '{build-days-to-keep}'
1006
1007 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001008 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001009 project: '{project}'
1010 branch: '{branch}'
1011 refspec: 'refs/heads/{branch}'
1012 artifacts: '{archive-artifacts}'
1013 - maven-exec:
1014 maven-version: '{maven-version}'
1015
1016 scm:
1017 - gerrit-trigger-scm:
1018 refspec: ''
1019 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001020 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001021
1022 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001023 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001024 build-timeout: '{build-timeout}'
1025
1026 triggers:
1027 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001028 - timed: '@daily'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001029 - gerrit-trigger-release-manually:
1030 server: '{server-name}'
1031 project: '{project}'
1032 branch: '{branch}'
1033
1034 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001035 - lf-infra-pre-build
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001036 - provide-maven-settings:
1037 global-settings-file: 'global-settings'
1038 settings-file: '{mvn-settings}'
1039
1040 - inject:
1041 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001042 - maven-set-release-version:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001043 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001044 mvn-settings: '{mvn-settings}'
1045 pom:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001046
1047 - docker-login
1048
1049 - maven-target:
1050 maven-version: '{maven-version}'
1051 goals: '{mvn-goals}'
1052 settings: '{mvn-settings}'
1053 settings-type: cfp
1054 global-settings: 'global-settings'
1055 global-settings-type: cfp
1056
1057 - shell: '{script}'
1058
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001059 publishers:
1060 - infra-shiplogs:
1061 maven-version: '{maven-version}'
1062
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001063- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001064 # Job template for building & pushing docker images
1065 #
1066 # The purpose of this job template is to run:
1067 # 1. login to the docker registry
1068 # 2. inject a version.properties file and set versions
1069 # 3. run a specified shell builder
1070 #
1071 # This template supports subprojects.
1072 #
1073 # Required Variables:
1074 # pom: name/location of the pom.xml file relative to the workspace
1075 # maven-properties: properties passed to maven
1076
Zhaoxing49773042017-10-13 17:14:35 +08001077 name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
1078 project-type: freestyle
1079 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001080 disabled: '{disabled}'
Zhaoxing49773042017-10-13 17:14:35 +08001081 properties:
1082 - infra-properties:
1083 build-days-to-keep: '{build-days-to-keep}'
1084
1085 parameters:
1086 - infra-parameters:
1087 project: '{project}'
1088 branch: '{branch}'
1089 refspec: 'refs/heads/{branch}'
1090 artifacts: '{archive-artifacts}'
1091 - maven-exec:
1092 maven-version: '{maven-version}'
1093
1094 scm:
1095 - gerrit-trigger-scm:
1096 refspec: ''
1097 choosing-strategy: 'default'
1098 submodule-recursive: '{submodule-recursive}'
1099
1100 wrappers:
1101 - infra-wrappers:
1102 build-timeout: '{build-timeout}'
1103
1104 triggers:
1105 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001106 - timed: '@daily'
Zhaoxing49773042017-10-13 17:14:35 +08001107 - gerrit-trigger-release-manually:
1108 server: '{server-name}'
1109 project: '{project}'
1110 branch: '{branch}'
1111
1112 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001113 - lf-infra-pre-build
Zhaoxing49773042017-10-13 17:14:35 +08001114 - provide-maven-settings:
1115 global-settings-file: 'global-settings'
1116 settings-file: '{mvn-settings}'
1117
1118 - inject:
1119 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001120 - maven-set-release-version:
Zhaoxing49773042017-10-13 17:14:35 +08001121 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001122 mvn-settings: '{mvn-settings}'
Zhaoxing49773042017-10-13 17:14:35 +08001123 pom: '{pom}'
Zhaoxing49773042017-10-13 17:14:35 +08001124
1125 - docker-login
1126
1127 - maven-target:
1128 maven-version: '{maven-version}'
1129 pom: '{pom}'
1130 goals: '{mvn-goals}'
1131 settings: '{mvn-settings}'
1132 settings-type: cfp
1133 global-settings: 'global-settings'
1134 global-settings-type: cfp
1135
1136 - shell: '{script}'
1137
1138 publishers:
1139 - infra-shiplogs:
1140 maven-version: '{maven-version}'
1141
Gary Wu350fbcb2018-08-07 11:13:59 -07001142- job-template: &docker_version_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001143 # Job template for building & pushing docker images
1144 #
1145 # The purpose of this job template is to run:
1146 # 1. login to the docker registry
1147 # 2. inject a version.properties file and set versions
1148 # 3. run a docker push
1149 #
1150 # Required Variables:
1151 # pom: name/location of the pom.xml file relative to the workspace
1152 # profile: the docker profile defined in the pom
1153 # maven-properties: properties passed to maven
1154
Patrick Brady39f388a2017-03-09 11:26:59 -08001155 name: '{project-name}-{stream}-docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -07001156 id: '{project-name}-{stream}-docker-version-java-daily'
Patrick Brady39f388a2017-03-09 11:26:59 -08001157 project-type: freestyle
Paul Vaduva6dd88542018-12-11 16:59:12 +01001158 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001159 disabled: '{disabled}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001160 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001161 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -08001162 build-days-to-keep: '{build-days-to-keep}'
1163
1164 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001165 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -08001166 project: '{project}'
1167 branch: '{branch}'
1168 refspec: 'refs/heads/{branch}'
1169 artifacts: '{archive-artifacts}'
1170 - maven-exec:
1171 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -07001172 - maven-params:
1173 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001174
1175 scm:
1176 - gerrit-trigger-scm:
1177 refspec: ''
1178 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001179 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001180
1181 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001182 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -08001183 build-timeout: '{build-timeout}'
1184
1185 triggers:
1186 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001187 - timed: '@daily'
Patrick Brady39f388a2017-03-09 11:26:59 -08001188 - gerrit-trigger-release-manually:
1189 server: '{server-name}'
1190 project: '{project}'
1191 branch: '{branch}'
1192
1193 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001194 - lf-infra-pre-build
Patrick Brady39f388a2017-03-09 11:26:59 -08001195 - provide-maven-settings:
1196 global-settings-file: 'global-settings'
1197 settings-file: '{mvn-settings}'
1198
1199 - inject:
1200 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001201 - maven-set-release-version:
Patrick Brady39f388a2017-03-09 11:26:59 -08001202 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001203 mvn-settings: '{mvn-settings}'
1204 pom:
Patrick Brady39f388a2017-03-09 11:26:59 -08001205
1206 - docker-login
1207
1208 - maven-docker-push-daily:
1209 maven-version: '{maven-version}'
1210 mvn-settings: '{mvn-settings}'
1211 pom: '{docker-pom}'
1212 # use default as mvn-profile if profile is not needed
1213 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -07001214 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001215
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001216 publishers:
1217 - infra-shiplogs:
1218 maven-version: '{maven-version}'
1219
Patrick Brady39f388a2017-03-09 11:26:59 -08001220- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001221 # Job template for building & pushing docker images
1222 #
1223 # The purpose of this job template is to run:
Gary Wu9e9210f2018-07-18 16:19:20 -07001224 # 1. login to the docker registry
1225 # 2. inject a version.properties file and set versions
1226 # 3. run a docker push
1227 #
1228 # Required Variables:
1229 # pom: name/location of the pom.xml file relative to the workspace
1230 # profile: the docker profile defined in the pom
1231 # maven-properties: properties passed to maven
1232
Gary Wu350fbcb2018-08-07 11:13:59 -07001233 <<: *docker_version_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -07001234 name: '{project-name}-{stream}-docker-version-java-daily'
1235 id: 'docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -07001236 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -07001237 wrappers:
1238 - infra-wrappers-docker-build:
1239 build-timeout: '{build-timeout}'
1240
Zhaoxing49773042017-10-13 17:14:35 +08001241- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001242 # Job template for building & pushing docker images for AAI specific repos
1243 #
1244 # The purpose of this job template is to run:
1245 # 1. login to the docker registry
1246 # 2. run maven goals
1247 # 3. run include-docker-push.sh
1248 #
1249 # Required Variables:
1250 # pom: name/location of the pom.xml file relative to the workspace
1251 # maven-properties: properties passed to maven
1252
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001253 name: '{project-name}-{stream}-aai-docker-java-daily'
1254 project-type: freestyle
Jessica Wagantallab30bf62018-11-08 12:20:48 -08001255 node: '{build-node}'
Gary Wudc3f2952017-08-23 16:48:59 -07001256 docker-image-name: ''
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001257 disabled: '{disabled}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001258 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001259 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001260 build-days-to-keep: '{build-days-to-keep}'
1261
1262 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001263 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001264 project: '{project}'
1265 branch: '{branch}'
1266 refspec: 'refs/heads/{branch}'
1267 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001268 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001269 maven-version: '{maven-version}'
Gary Wudc3f2952017-08-23 16:48:59 -07001270 - docker-image-name:
1271 docker-image-name: '{docker-image-name}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001272
1273 scm:
1274 - gerrit-trigger-scm:
1275 refspec: ''
1276 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001277 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001278
1279 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001280 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001281 build-timeout: '{build-timeout}'
1282
1283 triggers:
1284 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001285 - timed: '@daily'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001286 - gerrit-trigger-release-manually:
1287 server: '{server-name}'
1288 project: '{project}'
1289 branch: '{branch}'
1290
1291 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001292 - lf-infra-pre-build
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001293 - provide-maven-settings:
1294 global-settings-file: 'global-settings'
1295 settings-file: '{mvn-settings}'
1296
1297 - docker-login
1298
1299 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001300 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001301 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001302 goals: 'clean install -DskipTests -B
1303 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001304 settings: '{mvn-settings}'
1305 settings-type: cfp
1306 global-settings: 'global-settings'
1307 global-settings-type: cfp
1308
1309 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001310 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001311 pom: '{pom}'
1312 goals: '{mvn-goals}'
1313 settings: '{mvn-settings}'
1314 settings-type: cfp
1315 global-settings: 'global-settings'
1316 global-settings-type: cfp
1317 properties:
1318 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001319 - docker.pull.registry=nexus3.onap.org:10001
1320 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001321
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001322 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001323
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001324 publishers:
1325 - infra-shiplogs:
1326 maven-version: '{maven-version}'
1327
Carsten Lund2d06a692017-02-23 18:23:07 +00001328- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001329 # Job template for Java merge jobs for SDC specific repos
ig61339fdb9d22017-04-03 17:47:19 +03001330 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001331 # The purpose of this job template is to run:
1332 # 1. maven clean deploy
ig61339fdb9d22017-04-03 17:47:19 +03001333 #
1334 # Required Variables:
1335 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001336
Gary Wu6c702772018-08-06 18:48:02 -07001337 <<: *merge_java_defaults
ig61339fdb9d22017-04-03 17:47:19 +03001338 name: '{project-name}-{stream}-sdc-merge-java'
1339
Paul Vaduva3aebd312019-02-01 13:35:21 +01001340 node: '{build-node}'
Jessica Wagantall9a89de42018-04-18 11:35:17 -07001341 build-timeout: 120
ig61339fdb9d22017-04-03 17:47:19 +03001342
ig61339fdb9d22017-04-03 17:47:19 +03001343 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001344 - lf-infra-pre-build
ig61339fdb9d22017-04-03 17:47:19 +03001345 - provide-maven-settings:
1346 global-settings-file: 'global-settings'
1347 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001348
1349 - docker-login
1350
Gary Wu6c702772018-08-06 18:48:02 -07001351 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001352 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001353 mvn-settings: '{mvn-settings}'
1354 pom: '{docker-pom}'
1355 # use default as mvn-profile if profile is not needed
1356 mvn-profile: '{mvn-profile}'
Gary Wu6c702772018-08-06 18:48:02 -07001357 mvn-params: ''