blob: 61da2d5aff5cc70d31975356d2a9b9d61ffd5f0f [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}'
Zhaoxinga77c0412017-10-11 09:05:49 +0800493 maven-deploy-properties:
494 properties:
495 - infra-properties:
496 build-days-to-keep: '{build-days-to-keep}'
497
498 parameters:
499 - infra-parameters:
500 project: '{project}'
501 branch: '{branch}'
502 refspec: 'refs/heads/{branch}'
503 artifacts: '{archive-artifacts}'
504 - maven-exec:
505 maven-version: '{maven-version}'
506
507 scm:
508 - gerrit-trigger-scm:
509 refspec: ''
510 choosing-strategy: 'default'
511 submodule-recursive: '{submodule-recursive}'
512
513 wrappers:
514 - infra-wrappers:
515 build-timeout: '{build-timeout}'
516
517 triggers:
518 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700519 - timed: '@daily'
Zhaoxinga77c0412017-10-11 09:05:49 +0800520 - gerrit-trigger-release-manually:
521 server: '{server-name}'
522 project: '{project}'
523 branch: '{branch}'
524
525 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700526 - lf-infra-pre-build
Zhaoxinga77c0412017-10-11 09:05:49 +0800527 - provide-maven-settings:
528 global-settings-file: 'global-settings'
529 settings-file: '{mvn-settings}'
530
531 - inject:
532 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700533 - maven-set-release-version:
Zhaoxinga77c0412017-10-11 09:05:49 +0800534 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700535 mvn-settings: '{mvn-settings}'
Zhaoxing327f9592017-10-13 13:37:17 +0800536 pom: '{pom}'
Zhaoxinga77c0412017-10-11 09:05:49 +0800537
538 - maven-target:
539 maven-version: '{maven-version}'
540 pom: '{pom}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800541 goals: 'clean deploy -B
Zhaoxinga77c0412017-10-11 09:05:49 +0800542 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
543 properties:
544 - '{maven-deploy-properties}'
545 settings: '{mvn-settings}'
546 settings-type: cfp
547 global-settings: 'global-settings'
548 global-settings-type: cfp
549
550 publishers:
551 - infra-shiplogs:
552 maven-version: '{maven-version}'
553
Jessica Wagantall91685e12018-03-20 17:13:40 -0700554
Gary Wu6c702772018-08-06 18:48:02 -0700555- job-template: &merge_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800556 # Job template for Java merge jobs
557 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800558 # The purpose of this job template is to run:
559 # 1. maven clean deploy
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800560 #
561 # Required Variables:
562 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800563
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800564 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800565
566 project-type: freestyle
567 node: '{build-node}'
Gary Wu6c702772018-08-06 18:48:02 -0700568 pattern: '**'
569 pom:
570 mvn_properties: []
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700571 mvn-params: ''
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800572
573 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700574 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800575 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800576
577 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700578 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800579 project: '{project}'
580 branch: '{branch}'
581 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800582 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800583 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800584 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800585
586 scm:
587 - gerrit-trigger-scm:
588 refspec: ''
589 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500590 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800591
592 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700593 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800594 build-timeout: '{build-timeout}'
595
596 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800597 - gerrit-trigger-patch-merged:
598 server: '{server-name}'
599 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800600 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800601 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800602
603 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700604 - lf-infra-pre-build
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800605 - provide-maven-settings:
606 global-settings-file: 'global-settings'
607 settings-file: '{mvn-settings}'
608 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800609 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -0700610 pom: '{obj:pom}'
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700611 goals: 'clean deploy -B {mvn-params}
Andrew Grimberge55b6222017-05-03 16:19:28 -0400612 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800613 settings: '{mvn-settings}'
614 settings-type: cfp
615 global-settings: 'global-settings'
616 global-settings-type: cfp
Gary Wu6c702772018-08-06 18:48:02 -0700617 properties: '{obj:mvn_properties}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800618
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700619 publishers:
620 - infra-shiplogs:
621 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100622
623- job-template:
Gary Wu6c702772018-08-06 18:48:02 -0700624 # Job template for Java merge jobs based on
625 # '{project-name}-{stream}-merge-java'
626 # The purpose of this job template is to run:
627 # 1. maven clean deploy
628 #
629 # This project supports maven properties.
630 #
631 # Required Variables:
632 # branch: git branch (eg. stable/lithium or master)
633 # maven-properties: properties passed to maven
634
635 <<: *merge_java_defaults
636 name: '{project-name}-{stream}-merge-properties-java'
637
638- job-template:
639 # Job template for Java merge jobs that takes a maven template
640 #
641 # The purpose of this job template is to run:
642 # 1. maven clean deploy -P {mvn-profile}
643 #
644 # Required Variables:
645 # branch: git branch (eg. stable/lithium or master)
646
647 <<: *merge_java_defaults
648 name: '{project-name}-{stream}-merge-profile-java'
649
650 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700651 - lf-infra-pre-build
Gary Wu6c702772018-08-06 18:48:02 -0700652 - provide-maven-settings:
653 global-settings-file: 'global-settings'
654 settings-file: '{mvn-settings}'
655
656 - docker-login
657
658 - maven-target:
659 maven-version: '{maven-version}'
660 goals: 'clean deploy -P {mvn-profile} -B
661 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
662 settings: '{mvn-settings}'
663 settings-type: cfp
664 global-settings: 'global-settings'
665 global-settings-type: cfp
666 properties:
667 - docker.pull.registry=nexus3.onap.org:10001
668 - docker.push.registry=nexus3.onap.org:10003
669
670- job-template:
671 # Job template for Java merge jobs with POM not at the root
672 #
673 # The purpose of this job template is to run:
674 # 1. maven clean deploy
675 #
676 # This job supports subprojects.
677 #
678 # Required Variables:
679 # branch: git branch (eg. stable/lithium or master)
680 # pom: name/location of the pom.xml file relative to the workspace
681 # pattern: ant file-path pattern relative to the workspace used to
682 # trigger the job
683
684 <<: *merge_java_defaults
685 name: '{project-name}-{stream}-{subproject}-merge-java'
686
Gary Wu350fbcb2018-08-07 11:13:59 -0700687- job-template: &docker_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800688 # Job template for Docker daily jobs
689 #
690 # The purpose of this job template is to run:
691 # 1. login to the docker registry
692 # 2. docker push
693 #
694 # Required Variables:
695 # branch: git branch (eg. stable/lithium or master)
696
Anaël Clossonabbafb52017-02-09 17:55:10 +0100697 name: '{project-name}-{stream}-docker-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700698 id: '{project-name}-{stream}-docker-java-daily'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100699 project-type: freestyle
Andrew Grimberg2137b1d2017-02-15 07:24:53 -0800700 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700701 disabled: '{disabled}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100702 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700703 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100704 build-days-to-keep: '{build-days-to-keep}'
705
706 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700707 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100708 project: '{project}'
709 branch: '{branch}'
710 refspec: 'refs/heads/{branch}'
711 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800712 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800713 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700714 - maven-params:
715 mvn-params: '{mvn-params}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100716
717 scm:
718 - gerrit-trigger-scm:
719 refspec: ''
720 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500721 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100722
Anaël Clossonabbafb52017-02-09 17:55:10 +0100723 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700724 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100725 build-timeout: '{build-timeout}'
726
727 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800728 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700729 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800730 - gerrit-trigger-release-manually:
731 server: '{server-name}'
732 project: '{project}'
733 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100734
735 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700736 - lf-infra-pre-build
Anaël Clossonabbafb52017-02-09 17:55:10 +0100737 - provide-maven-settings:
738 global-settings-file: 'global-settings'
739 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100740
Anaël Closson63e090e2017-02-15 14:50:45 +0100741 - docker-login
742
Anaël Clossonabbafb52017-02-09 17:55:10 +0100743 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800744 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100745 mvn-settings: '{mvn-settings}'
746 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100747 # use default as mvn-profile if profile is not needed
748 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700749 mvn-params: '{mvn-params}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500750
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700751 publishers:
752 - infra-shiplogs:
753 maven-version: '{maven-version}'
754
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500755- job-template:
Gary Wu9e9210f2018-07-18 16:19:20 -0700756 # Job template for Docker daily jobs
757 #
758 # The purpose of this job template is to run:
759 # 1. login to the docker registry
760 # 2. docker push
761 #
762 # Required Variables:
763 # branch: git branch (eg. stable/lithium or master)
764
Gary Wu350fbcb2018-08-07 11:13:59 -0700765 <<: *docker_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700766 name: '{project-name}-{stream}-docker-java-daily'
767 id: docker-java-daily
Gary Wu9e9210f2018-07-18 16:19:20 -0700768 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700769 wrappers:
770 - infra-wrappers-docker-build:
771 build-timeout: '{build-timeout}'
772
Gary Wu9e9210f2018-07-18 16:19:20 -0700773- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +0200774 # Job template for building & pushing docker images
775 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800776 # The purpose of this job template is to run:
JulienBe91c56ec2017-06-21 23:37:39 +0200777 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800778 # 2. maven clean deploy on the specified profile
779 #
780 # This job uses a conditional regex match step to set versions.
781 # This template supports maven properties.
JulienBe91c56ec2017-06-21 23:37:39 +0200782 #
783 # Required Variables:
784 # pom: name/location of the pom.xml file relative to the workspace
785 # profile: the docker profile defined in the pom
786 # maven-properties: properties passed to maven
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800787
JulienBe91c56ec2017-06-21 23:37:39 +0200788 name: '{project-name}-{stream}-docker-java-properties-daily'
789 project-type: freestyle
790 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700791 disabled: '{disabled}'
JulienBe91c56ec2017-06-21 23:37:39 +0200792 properties:
793 - infra-properties:
794 build-days-to-keep: '{build-days-to-keep}'
795 parameters:
796 - infra-parameters:
797 project: '{project}'
798 branch: '{branch}'
799 refspec: 'refs/heads/{branch}'
800 artifacts: '{archive-artifacts}'
801 - maven-exec:
802 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700803 - maven-params:
804 mvn-params: '{mvn-params}'
JulienBe91c56ec2017-06-21 23:37:39 +0200805 scm:
806 - gerrit-trigger-scm:
807 refspec: ''
808 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500809 submodule-recursive: '{submodule-recursive}'
JulienBe91c56ec2017-06-21 23:37:39 +0200810 wrappers:
811 - infra-wrappers:
812 build-timeout: '{build-timeout}'
813 triggers:
814 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700815 - timed: '@daily'
JulienBe91c56ec2017-06-21 23:37:39 +0200816 - gerrit-trigger-release-manually:
817 server: '{server-name}'
818 project: '{project}'
819 branch: '{branch}'
820 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700821 - lf-infra-pre-build
JulienBe91c56ec2017-06-21 23:37:39 +0200822 - provide-maven-settings:
823 global-settings-file: 'global-settings'
824 settings-file: '{mvn-settings}'
JulienBecda17972017-10-17 13:46:51 +0200825 - conditional-step:
826 condition-kind: regex-match
827 regex: DoSetVersion
828 label: '{setVersion}'
829 steps:
830 - inject:
831 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700832 - maven-set-release-version:
JulienBecda17972017-10-17 13:46:51 +0200833 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700834 mvn-settings: '{mvn-settings}'
835 pom:
JulienBe91c56ec2017-06-21 23:37:39 +0200836 - docker-login
837 - maven-docker-push-daily:
838 maven-version: '{maven-version}'
839 mvn-settings: '{mvn-settings}'
840 pom: '{docker-pom}'
841 properties: '{maven-properties}'
842 # use default as mvn-profile if profile is not needed
843 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700844 mvn-params: '{mvn-params}'
JulienBe91c56ec2017-06-21 23:37:39 +0200845 publishers:
846 - infra-shiplogs:
847 maven-version: '{maven-version}'
848
849- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800850 # Job template for building & pushing docker images
851 #
852 # The purpose of this job template is to run:
853 # 1. login to the docker registry
854 # 2. run a specified shell builder
855 #
856 # Required Variables:
857 # pom: name/location of the pom.xml file relative to the workspace
858 # maven-properties: properties passed to maven
859
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500860 name: '{project-name}-{stream}-docker-java-shell-daily'
861 project-type: freestyle
Jessica Wagantallfe5efea2018-08-07 16:02:39 -0700862 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700863 disabled: '{disabled}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500864 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700865 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500866 build-days-to-keep: '{build-days-to-keep}'
867
868 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700869 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500870 project: '{project}'
871 branch: '{branch}'
872 refspec: 'refs/heads/{branch}'
873 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800874 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800875 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500876
877 scm:
878 - gerrit-trigger-scm:
879 refspec: ''
880 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500881 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500882
883 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700884 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500885 build-timeout: '{build-timeout}'
886
887 triggers:
888 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700889 - timed: '@daily'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500890 - gerrit-trigger-release-manually:
891 server: '{server-name}'
892 project: '{project}'
893 branch: '{branch}'
894
895 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700896 - lf-infra-pre-build
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500897 - provide-maven-settings:
898 global-settings-file: 'global-settings'
899 settings-file: '{mvn-settings}'
900
901 - docker-login
902
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500903 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800904 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500905 goals: '{mvn-goals}'
906 settings: '{mvn-settings}'
907 settings-type: cfp
908 global-settings: 'global-settings'
909 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500910
911 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000912
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700913 publishers:
914 - infra-shiplogs:
915 maven-version: '{maven-version}'
916
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000917- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800918 # Job template for building & pushing docker images
919 #
920 # The purpose of this job template is to run:
921 # 1. login to the docker registry
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700922 # 2. run a specified shell builder
923 #
924 # Required Variables:
925 # pom: name/location of the pom.xml file relative to the workspace
926 # maven-properties: properties passed to maven
927
928 name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily'
929 project-type: freestyle
930 node: '{build-node}'
931 disabled: '{disabled}'
932 properties:
933 - infra-properties:
934 build-days-to-keep: '{build-days-to-keep}'
935
936 parameters:
937 - infra-parameters:
938 project: '{project}'
939 branch: '{branch}'
940 refspec: 'refs/heads/{branch}'
941 artifacts: '{archive-artifacts}'
942 - maven-exec:
943 maven-version: '{maven-version}'
944
945 scm:
946 - gerrit-trigger-scm:
947 refspec: ''
948 choosing-strategy: 'default'
949 submodule-recursive: '{submodule-recursive}'
950
951 wrappers:
952 - infra-wrappers:
953 build-timeout: '{build-timeout}'
954
955 triggers:
956 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700957 - timed: '@daily'
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700958 - gerrit-trigger-release-manually:
959 server: '{server-name}'
960 project: '{project}'
961 branch: '{branch}'
962
963 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700964 - lf-infra-pre-build
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700965 - provide-maven-settings:
966 global-settings-file: 'global-settings'
967 settings-file: '{mvn-settings}'
968
969 - docker-login
970
971 - maven-target:
972 maven-version: '{maven-version}'
973 pom: '{pom}'
974 goals: '{mvn-goals}'
975 settings: '{mvn-settings}'
976 settings-type: cfp
977 global-settings: 'global-settings'
978 global-settings-type: cfp
979
980 - shell: '{script}'
981
982 publishers:
983 - infra-shiplogs:
984 maven-version: '{maven-version}'
985
986- job-template:
987 # Job template for building & pushing docker images
988 #
989 # The purpose of this job template is to run:
990 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800991 # 2. inject a version.properties file and set versions
992 # 3. run a specified shell builder
993 #
994 # Required Variables:
995 # pom: name/location of the pom.xml file relative to the workspace
996 # maven-properties: properties passed to maven
997
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400998 name: '{project-name}-{stream}-docker-java-version-shell-daily'
999 project-type: freestyle
1000 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001001 disabled: '{disabled}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001002 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001003 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001004 build-days-to-keep: '{build-days-to-keep}'
1005
1006 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001007 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001008 project: '{project}'
1009 branch: '{branch}'
1010 refspec: 'refs/heads/{branch}'
1011 artifacts: '{archive-artifacts}'
1012 - maven-exec:
1013 maven-version: '{maven-version}'
1014
1015 scm:
1016 - gerrit-trigger-scm:
1017 refspec: ''
1018 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001019 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001020
1021 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001022 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001023 build-timeout: '{build-timeout}'
1024
1025 triggers:
1026 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001027 - timed: '@daily'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001028 - gerrit-trigger-release-manually:
1029 server: '{server-name}'
1030 project: '{project}'
1031 branch: '{branch}'
1032
1033 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001034 - lf-infra-pre-build
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001035 - provide-maven-settings:
1036 global-settings-file: 'global-settings'
1037 settings-file: '{mvn-settings}'
1038
1039 - inject:
1040 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001041 - maven-set-release-version:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001042 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001043 mvn-settings: '{mvn-settings}'
1044 pom:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001045
1046 - docker-login
1047
1048 - maven-target:
1049 maven-version: '{maven-version}'
1050 goals: '{mvn-goals}'
1051 settings: '{mvn-settings}'
1052 settings-type: cfp
1053 global-settings: 'global-settings'
1054 global-settings-type: cfp
1055
1056 - shell: '{script}'
1057
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001058 publishers:
1059 - infra-shiplogs:
1060 maven-version: '{maven-version}'
1061
Pamela Dragosh2814e4d2017-03-15 12:52:55 -04001062- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001063 # Job template for building & pushing docker images
1064 #
1065 # The purpose of this job template is to run:
1066 # 1. login to the docker registry
1067 # 2. inject a version.properties file and set versions
1068 # 3. run a specified shell builder
1069 #
1070 # This template supports subprojects.
1071 #
1072 # Required Variables:
1073 # pom: name/location of the pom.xml file relative to the workspace
1074 # maven-properties: properties passed to maven
1075
Zhaoxing49773042017-10-13 17:14:35 +08001076 name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
1077 project-type: freestyle
1078 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001079 disabled: '{disabled}'
Zhaoxing49773042017-10-13 17:14:35 +08001080 properties:
1081 - infra-properties:
1082 build-days-to-keep: '{build-days-to-keep}'
1083
1084 parameters:
1085 - infra-parameters:
1086 project: '{project}'
1087 branch: '{branch}'
1088 refspec: 'refs/heads/{branch}'
1089 artifacts: '{archive-artifacts}'
1090 - maven-exec:
1091 maven-version: '{maven-version}'
1092
1093 scm:
1094 - gerrit-trigger-scm:
1095 refspec: ''
1096 choosing-strategy: 'default'
1097 submodule-recursive: '{submodule-recursive}'
1098
1099 wrappers:
1100 - infra-wrappers:
1101 build-timeout: '{build-timeout}'
1102
1103 triggers:
1104 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001105 - timed: '@daily'
Zhaoxing49773042017-10-13 17:14:35 +08001106 - gerrit-trigger-release-manually:
1107 server: '{server-name}'
1108 project: '{project}'
1109 branch: '{branch}'
1110
1111 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001112 - lf-infra-pre-build
Zhaoxing49773042017-10-13 17:14:35 +08001113 - provide-maven-settings:
1114 global-settings-file: 'global-settings'
1115 settings-file: '{mvn-settings}'
1116
1117 - inject:
1118 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001119 - maven-set-release-version:
Zhaoxing49773042017-10-13 17:14:35 +08001120 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001121 mvn-settings: '{mvn-settings}'
Zhaoxing49773042017-10-13 17:14:35 +08001122 pom: '{pom}'
Zhaoxing49773042017-10-13 17:14:35 +08001123
1124 - docker-login
1125
1126 - maven-target:
1127 maven-version: '{maven-version}'
1128 pom: '{pom}'
1129 goals: '{mvn-goals}'
1130 settings: '{mvn-settings}'
1131 settings-type: cfp
1132 global-settings: 'global-settings'
1133 global-settings-type: cfp
1134
1135 - shell: '{script}'
1136
1137 publishers:
1138 - infra-shiplogs:
1139 maven-version: '{maven-version}'
1140
Gary Wu350fbcb2018-08-07 11:13:59 -07001141- job-template: &docker_version_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001142 # Job template for building & pushing docker images
1143 #
1144 # The purpose of this job template is to run:
1145 # 1. login to the docker registry
1146 # 2. inject a version.properties file and set versions
1147 # 3. run a docker push
1148 #
1149 # Required Variables:
1150 # pom: name/location of the pom.xml file relative to the workspace
1151 # profile: the docker profile defined in the pom
1152 # maven-properties: properties passed to maven
1153
Patrick Brady39f388a2017-03-09 11:26:59 -08001154 name: '{project-name}-{stream}-docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -07001155 id: '{project-name}-{stream}-docker-version-java-daily'
Patrick Brady39f388a2017-03-09 11:26:59 -08001156 project-type: freestyle
1157 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001158 disabled: '{disabled}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001159 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001160 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -08001161 build-days-to-keep: '{build-days-to-keep}'
1162
1163 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001164 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -08001165 project: '{project}'
1166 branch: '{branch}'
1167 refspec: 'refs/heads/{branch}'
1168 artifacts: '{archive-artifacts}'
1169 - maven-exec:
1170 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -07001171 - maven-params:
1172 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001173
1174 scm:
1175 - gerrit-trigger-scm:
1176 refspec: ''
1177 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001178 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001179
1180 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001181 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -08001182 build-timeout: '{build-timeout}'
1183
1184 triggers:
1185 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001186 - timed: '@daily'
Patrick Brady39f388a2017-03-09 11:26:59 -08001187 - gerrit-trigger-release-manually:
1188 server: '{server-name}'
1189 project: '{project}'
1190 branch: '{branch}'
1191
1192 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001193 - lf-infra-pre-build
Patrick Brady39f388a2017-03-09 11:26:59 -08001194 - provide-maven-settings:
1195 global-settings-file: 'global-settings'
1196 settings-file: '{mvn-settings}'
1197
1198 - inject:
1199 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -07001200 - maven-set-release-version:
Patrick Brady39f388a2017-03-09 11:26:59 -08001201 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -07001202 mvn-settings: '{mvn-settings}'
1203 pom:
Patrick Brady39f388a2017-03-09 11:26:59 -08001204
1205 - docker-login
1206
1207 - maven-docker-push-daily:
1208 maven-version: '{maven-version}'
1209 mvn-settings: '{mvn-settings}'
1210 pom: '{docker-pom}'
1211 # use default as mvn-profile if profile is not needed
1212 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -07001213 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -08001214
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001215 publishers:
1216 - infra-shiplogs:
1217 maven-version: '{maven-version}'
1218
Patrick Brady39f388a2017-03-09 11:26:59 -08001219- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001220 # Job template for building & pushing docker images
1221 #
1222 # The purpose of this job template is to run:
Gary Wu9e9210f2018-07-18 16:19:20 -07001223 # 1. login to the docker registry
1224 # 2. inject a version.properties file and set versions
1225 # 3. run a docker push
1226 #
1227 # Required Variables:
1228 # pom: name/location of the pom.xml file relative to the workspace
1229 # profile: the docker profile defined in the pom
1230 # maven-properties: properties passed to maven
1231
Gary Wu350fbcb2018-08-07 11:13:59 -07001232 <<: *docker_version_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -07001233 name: '{project-name}-{stream}-docker-version-java-daily'
1234 id: 'docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -07001235 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -07001236 wrappers:
1237 - infra-wrappers-docker-build:
1238 build-timeout: '{build-timeout}'
1239
Zhaoxing49773042017-10-13 17:14:35 +08001240- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001241 # Job template for building & pushing docker images for AAI specific repos
1242 #
1243 # The purpose of this job template is to run:
1244 # 1. login to the docker registry
1245 # 2. run maven goals
1246 # 3. run include-docker-push.sh
1247 #
1248 # Required Variables:
1249 # pom: name/location of the pom.xml file relative to the workspace
1250 # maven-properties: properties passed to maven
1251
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001252 name: '{project-name}-{stream}-aai-docker-java-daily'
1253 project-type: freestyle
1254 node: 'ubuntu1604-docker-8c-8g'
Gary Wudc3f2952017-08-23 16:48:59 -07001255 docker-image-name: ''
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001256 disabled: '{disabled}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001257 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001258 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001259 build-days-to-keep: '{build-days-to-keep}'
1260
1261 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001262 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001263 project: '{project}'
1264 branch: '{branch}'
1265 refspec: 'refs/heads/{branch}'
1266 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001267 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001268 maven-version: '{maven-version}'
Gary Wudc3f2952017-08-23 16:48:59 -07001269 - docker-image-name:
1270 docker-image-name: '{docker-image-name}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001271
1272 scm:
1273 - gerrit-trigger-scm:
1274 refspec: ''
1275 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001276 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001277
1278 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001279 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001280 build-timeout: '{build-timeout}'
1281
1282 triggers:
1283 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001284 - timed: '@daily'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001285 - gerrit-trigger-release-manually:
1286 server: '{server-name}'
1287 project: '{project}'
1288 branch: '{branch}'
1289
1290 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001291 - lf-infra-pre-build
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001292 - provide-maven-settings:
1293 global-settings-file: 'global-settings'
1294 settings-file: '{mvn-settings}'
1295
1296 - docker-login
1297
1298 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001299 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001300 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001301 goals: 'clean install -DskipTests -B
1302 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001303 settings: '{mvn-settings}'
1304 settings-type: cfp
1305 global-settings: 'global-settings'
1306 global-settings-type: cfp
1307
1308 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001309 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001310 pom: '{pom}'
1311 goals: '{mvn-goals}'
1312 settings: '{mvn-settings}'
1313 settings-type: cfp
1314 global-settings: 'global-settings'
1315 global-settings-type: cfp
1316 properties:
1317 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001318 - docker.pull.registry=nexus3.onap.org:10001
1319 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001320
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001321 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001322
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001323 publishers:
1324 - infra-shiplogs:
1325 maven-version: '{maven-version}'
1326
Carsten Lund2d06a692017-02-23 18:23:07 +00001327- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001328 # Job template for Java merge jobs for SDC specific repos
ig61339fdb9d22017-04-03 17:47:19 +03001329 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001330 # The purpose of this job template is to run:
1331 # 1. maven clean deploy
ig61339fdb9d22017-04-03 17:47:19 +03001332 #
1333 # Required Variables:
1334 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001335
Gary Wu6c702772018-08-06 18:48:02 -07001336 <<: *merge_java_defaults
ig61339fdb9d22017-04-03 17:47:19 +03001337 name: '{project-name}-{stream}-sdc-merge-java'
1338
ig6133cb3f8232017-04-05 14:22:42 +03001339 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall9a89de42018-04-18 11:35:17 -07001340 build-timeout: 120
ig61339fdb9d22017-04-03 17:47:19 +03001341
ig61339fdb9d22017-04-03 17:47:19 +03001342 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001343 - lf-infra-pre-build
ig61339fdb9d22017-04-03 17:47:19 +03001344 - provide-maven-settings:
1345 global-settings-file: 'global-settings'
1346 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001347
1348 - docker-login
1349
Gary Wu6c702772018-08-06 18:48:02 -07001350 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001351 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001352 mvn-settings: '{mvn-settings}'
1353 pom: '{docker-pom}'
1354 # use default as mvn-profile if profile is not needed
1355 mvn-profile: '{mvn-profile}'
Gary Wu6c702772018-08-06 18:48:02 -07001356 mvn-params: ''