blob: bcf4bd3bb54b4b761adcb1e94e14ba70fdf5a53f [file] [log] [blame]
Andrew Grimbergebc710a2017-01-30 12:59:38 -08001---
Gary Wu6c702772018-08-06 18:48:02 -07002- job-template: &verify_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -08003 # Job template for Java verify jobs
4 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08005 # The purpose of this job template is to run:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08006 # 1. maven clean install
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -05007 #
8 # Required Variables:
9 # branch: git branch (eg. stable/lithium or master)
10
Andrew Grimbergce2286c2017-01-31 05:50:39 -080011 name: '{project-name}-{stream}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080012
13 project-type: freestyle
14 concurrent: true
15 node: '{build-node}'
Jessica Wagantall993e5362019-08-30 14:40:34 -070016 build-env-variables: ''
Gary Wu5918acd2018-08-06 16:42:21 -070017 pattern: '**'
Gary Wu6c702772018-08-06 18:48:02 -070018 pom:
Jessica Wagantall5b0faff2019-08-30 12:45:08 -070019 mvn-opts: ''
20 java-opts: ''
Jessica Wagantall52360d62019-11-08 15:32:58 -080021 java-version: openjdk8
Andrew Grimbergebc710a2017-01-30 12:59:38 -080022 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070023 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080024 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080025
26 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070027 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080028 project: '{project}'
29 branch: '{branch}'
30 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080031 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080032 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080033 maven-version: '{maven-version}'
Jessica Wagantalld25908c2018-03-28 12:06:39 -070034 - maven-params:
35 mvn-params: '{mvn-params}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080036
37 scm:
38 - gerrit-trigger-scm:
39 refspec: '$GERRIT_REFSPEC'
40 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050041 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080042
43 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070044 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080045 build-timeout: '{build-timeout}'
46
47 triggers:
48 - gerrit-trigger-patch-submitted:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080049 server: '{server-name}'
50 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080051 branch: '{branch}'
Gary Wu5918acd2018-08-06 16:42:21 -070052 files: '{obj:pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080053
54 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070055 - lf-infra-pre-build
Jessica Wagantall52360d62019-11-08 15:32:58 -080056 - lf-update-java-alternatives:
57 java-version: "{java-version}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080058 - provide-maven-settings:
59 global-settings-file: 'global-settings'
60 settings-file: '{mvn-settings}'
Jessica Wagantall993e5362019-08-30 14:40:34 -070061 - inject:
62 properties-content: "{build-env-variables}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080063 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -080064 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -070065 pom: '{obj:pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -040066 goals: 'clean install -B
Jessica Wagantalld25908c2018-03-28 12:06:39 -070067 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn {mvn-params}'
Jessica Wagantall5b0faff2019-08-30 12:45:08 -070068 properties:
69 - MAVEN_OPTS='{mvn-opts}'
70 java-opts:
71 - "{java-opts}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080072 settings: '{mvn-settings}'
73 settings-type: cfp
74 global-settings: 'global-settings'
75 global-settings-type: cfp
76
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070077 publishers:
78 - infra-shiplogs:
79 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080080
81- job-template:
JulienBe77903ed2017-07-17 15:30:26 +020082 # Job template for Java verify jobs running checkstyle at the end
83 # When checkstyle will be fully incorporated, it is meant to replace
84 # '{project-name}-{stream}-verify-java-checkstyle'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080085 #
86 # The purpose of this job template is to run:
87 # 1. maven clean install
88 #
89 # This job publishes checkstyle results.
JulienBe77903ed2017-07-17 15:30:26 +020090 #
91 # Required Variables:
92 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080093
Gary Wu6c702772018-08-06 18:48:02 -070094 <<: *verify_java_defaults
JulienBe77903ed2017-07-17 15:30:26 +020095 name: '{project-name}-{stream}-verify-java-checkstyle'
JulienBe77903ed2017-07-17 15:30:26 +020096 publishers:
97 - infra-shiplogs:
98 maven-version: '{maven-version}'
99 - checkstyle-result
100
101- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800102 # Job template for Java verify jobs with POM not at the root
103 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800104 # The purpose of this job template is to run:
105 # 1. maven clean install
106 #
107 # This job supports subprojects.
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800108 #
109 # Required Variables:
110 # branch: git branch (eg. stable/lithium or master)
111 # pom: name/location of the pom.xml file relative to the workspace
112 # pattern: ant file-path pattern relative to the workspace used to
113 # trigger the job
114
Gary Wu6c702772018-08-06 18:48:02 -0700115 <<: *verify_java_defaults
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800116 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800117
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800118- job-template:
pwielebsd30b16f2019-11-18 12:17:18 +0100119 # Job template for Java integration pairwise jobs
120 #
121 # The purpose of this job template is to run:
122 # 1. maven clean install
123 #
124 # Required Variables:
125 # branch: git branch (eg. stable/lithium or master)
126
127 <<: *verify_java_defaults
128 name: '{project-name}-{stream}-integration-pairwise'
129 triggers:
130 - timed: '@daily'
131 - gerrit-trigger-patch-submitted:
132 server: '{server-name}'
133 project: '{project}'
134 branch: '{branch}'
135 files: '{obj:pattern}'
136
137- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100138 # Job template for Java daily release jobs
139 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800140 # The purpose of this job template is to run:
141 # 1. maven clean deploy with Sonar scans
JulienBe2f4ee072017-02-01 21:42:32 +0100142 #
143 # Required Variables:
144 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800145
JulienBe2f4ee072017-02-01 21:42:32 +0100146 name: '{project-name}-{stream}-release-java-daily'
147
148 project-type: freestyle
149 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700150 disabled: '{disabled}'
JulienBe2f4ee072017-02-01 21:42:32 +0100151 maven-deploy-properties:
152 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700153 - infra-properties:
JulienBe2f4ee072017-02-01 21:42:32 +0100154 build-days-to-keep: '{build-days-to-keep}'
155
156 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700157 - infra-parameters:
JulienBe2f4ee072017-02-01 21:42:32 +0100158 project: '{project}'
159 branch: '{branch}'
160 refspec: 'refs/heads/{branch}'
161 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800162 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800163 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100164
165 scm:
166 - gerrit-trigger-scm:
167 refspec: ''
168 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500169 submodule-recursive: '{submodule-recursive}'
JulienBe2f4ee072017-02-01 21:42:32 +0100170
171 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700172 - infra-wrappers:
JulienBe2f4ee072017-02-01 21:42:32 +0100173 build-timeout: '{build-timeout}'
174
175 triggers:
176 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700177 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800178 - gerrit-trigger-release-manually:
179 server: '{server-name}'
180 project: '{project}'
181 branch: '{branch}'
JulienBe2f4ee072017-02-01 21:42:32 +0100182
183 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700184 - lf-infra-pre-build
JulienBe2f4ee072017-02-01 21:42:32 +0100185 - provide-maven-settings:
186 global-settings-file: 'global-settings'
187 settings-file: '{mvn-settings}'
188
JulienBe5641aa02017-02-17 01:08:38 -0800189 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800190 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800191 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400192 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBe5641aa02017-02-17 01:08:38 -0800193 properties:
194 - '{maven-deploy-properties}'
Jessica Wagantall6223d1d2017-08-07 14:46:58 -0700195 java-opts:
196 - '-Xmx4096m -XX:MaxPermSize=512m'
JulienBe5641aa02017-02-17 01:08:38 -0800197 settings: '{mvn-settings}'
198 settings-type: cfp
199 global-settings: 'global-settings'
200 global-settings-type: cfp
201
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700202 publishers:
203 - infra-shiplogs:
204 maven-version: '{maven-version}'
205
JulienBe5641aa02017-02-17 01:08:38 -0800206- job-template:
JulienBe77903ed2017-07-17 15:30:26 +0200207 # Job template for Java daily release jobs running checkstyle at the end
208 # When checkstyle will be fully incorporated, it is meant to replace
209 # '{project-name}-{stream}-release-java-daily'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800210 #
211 # The purpose of this job template is to run:
212 # 1. maven clean deploy with Sonar scans
213 #
214 # This job publishes checkstyle results.
215 # This job uses a conditional regex match step to set versions.
JulienBe77903ed2017-07-17 15:30:26 +0200216 #
217 # Required Variables:
218 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800219
JulienBe77903ed2017-07-17 15:30:26 +0200220 name: '{project-name}-{stream}-release-java-daily-checkstyle'
221 project-type: freestyle
222 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700223 disabled: '{disabled}'
JulienBe77903ed2017-07-17 15:30:26 +0200224 maven-deploy-properties:
225 properties:
226 - infra-properties:
227 build-days-to-keep: '{build-days-to-keep}'
228 parameters:
229 - infra-parameters:
230 project: '{project}'
231 branch: '{branch}'
232 refspec: 'refs/heads/{branch}'
233 artifacts: '{archive-artifacts}'
234 - maven-exec:
235 maven-version: '{maven-version}'
236 scm:
237 - gerrit-trigger-scm:
238 refspec: ''
239 choosing-strategy: 'default'
240 submodule-recursive: '{submodule-recursive}'
241 wrappers:
242 - infra-wrappers:
243 build-timeout: '{build-timeout}'
244 triggers:
245 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700246 - timed: '@daily'
JulienBe77903ed2017-07-17 15:30:26 +0200247 - gerrit-trigger-release-manually:
248 server: '{server-name}'
249 project: '{project}'
250 branch: '{branch}'
251 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700252 - lf-infra-pre-build
JulienBe77903ed2017-07-17 15:30:26 +0200253 - provide-maven-settings:
254 global-settings-file: 'global-settings'
255 settings-file: '{mvn-settings}'
JulienBed91a33a2017-09-25 15:56:34 +0200256 - conditional-step:
257 condition-kind: regex-match
258 regex: DoSetVersion
259 label: '{setVersion}'
260 steps:
261 - inject:
262 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700263 - maven-set-release-version:
JulienBed91a33a2017-09-25 15:56:34 +0200264 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700265 mvn-settings: '{mvn-settings}'
266 pom:
JulienBe77903ed2017-07-17 15:30:26 +0200267 - maven-target:
268 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800269 goals: 'clean deploy -B
JulienBe77903ed2017-07-17 15:30:26 +0200270 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBec9d90e22017-08-08 10:44:10 +0200271 properties: '{obj:mvn_properties}'
JulienBe77903ed2017-07-17 15:30:26 +0200272 settings: '{mvn-settings}'
273 settings-type: cfp
274 global-settings: 'global-settings'
275 global-settings-type: cfp
276 publishers:
277 - infra-shiplogs:
278 maven-version: '{maven-version}'
279 - checkstyle-result-daily
280
281- job-template:
JulienBe5641aa02017-02-17 01:08:38 -0800282 # Job template for Java daily release jobs
283 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800284 # The purpose of this job template is to run:
285 # 1. maven set versions
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800286 # 2. maven clean deploy with Sonar scans
Pamela Dragosh55ceb8f2017-05-23 12:23:16 -0400287 #
288 # Required Variables:
289 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800290
JulienBe5641aa02017-02-17 01:08:38 -0800291 name: '{project-name}-{stream}-release-version-java-daily'
292
293 project-type: freestyle
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700294 disabled: '{disabled}'
JulienBe5641aa02017-02-17 01:08:38 -0800295 node: '{build-node}'
296 maven-deploy-properties:
297 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700298 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800299 build-days-to-keep: '{build-days-to-keep}'
300
301 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700302 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800303 project: '{project}'
304 branch: '{branch}'
305 refspec: 'refs/heads/{branch}'
306 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800307 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800308 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800309
310 scm:
311 - gerrit-trigger-scm:
312 refspec: ''
313 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500314 submodule-recursive: '{submodule-recursive}'
JulienBe5641aa02017-02-17 01:08:38 -0800315
316 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700317 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800318 build-timeout: '{build-timeout}'
319
320 triggers:
321 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700322 - timed: '@daily'
JulienBe5641aa02017-02-17 01:08:38 -0800323 - gerrit-trigger-release-manually:
324 server: '{server-name}'
325 project: '{project}'
326 branch: '{branch}'
327
328 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700329 - lf-infra-pre-build
JulienBe5641aa02017-02-17 01:08:38 -0800330 - provide-maven-settings:
331 global-settings-file: 'global-settings'
332 settings-file: '{mvn-settings}'
333
JulienBe2f4ee072017-02-01 21:42:32 +0100334 - inject:
335 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700336 - maven-set-release-version:
Andrew Grimberge2465882017-02-24 12:38:05 -0800337 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700338 mvn-settings: '{mvn-settings}'
339 pom:
JulienBe2f4ee072017-02-01 21:42:32 +0100340
341 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800342 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800343 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400344 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800345 properties:
346 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100347 settings: '{mvn-settings}'
348 settings-type: cfp
349 global-settings: 'global-settings'
350 global-settings-type: cfp
351
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700352 publishers:
353 - infra-shiplogs:
354 maven-version: '{maven-version}'
355
Gary Wu6c702772018-08-06 18:48:02 -0700356- job-template: &merge_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800357 # Job template for Java merge jobs
358 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800359 # The purpose of this job template is to run:
360 # 1. maven clean deploy
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800361 #
362 # Required Variables:
363 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800364
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800365 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800366
367 project-type: freestyle
368 node: '{build-node}'
Gary Wu6c702772018-08-06 18:48:02 -0700369 pattern: '**'
370 pom:
371 mvn_properties: []
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700372 mvn-params: ''
Houa Yangb7778e62019-09-03 13:23:05 -0500373 mvn-opts: ''
374 java-opts: ''
Jessica Wagantall52360d62019-11-08 15:32:58 -0800375 java-version: openjdk8
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800376
377 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700378 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800379 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800380
381 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700382 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800383 project: '{project}'
384 branch: '{branch}'
385 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800386 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800387 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800388 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800389
390 scm:
391 - gerrit-trigger-scm:
392 refspec: ''
393 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500394 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800395
396 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700397 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800398 build-timeout: '{build-timeout}'
399
400 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800401 - gerrit-trigger-patch-merged:
402 server: '{server-name}'
403 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800404 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800405 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800406
407 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700408 - lf-infra-pre-build
Jessica Wagantall52360d62019-11-08 15:32:58 -0800409 - lf-update-java-alternatives:
410 java-version: "{java-version}"
Cristina Paunab4d24a62019-09-12 20:50:02 +0300411 - provide-maven-settings:
412 global-settings-file: 'global-settings'
413 settings-file: '{mvn-settings}'
Cristina Pauna42c1f522019-09-11 17:45:06 +0300414 - conditional-step:
415 condition-kind: regex-match
416 regex: .*(amd64|arm64).*
417 label: '{project-name}'
418 steps:
419 - shell: !include-raw-escape: global-jjb/shell/docker-login.sh
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800420 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800421 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -0700422 pom: '{obj:pom}'
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700423 goals: 'clean deploy -B {mvn-params}
Andrew Grimberge55b6222017-05-03 16:19:28 -0400424 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Houa Yangb7778e62019-09-03 13:23:05 -0500425 properties:
426 - MAVEN_OPTS='{mvn-opts}'
427 java-opts:
428 - "{java-opts}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800429 settings: '{mvn-settings}'
430 settings-type: cfp
431 global-settings: 'global-settings'
432 global-settings-type: cfp
Gary Wu6c702772018-08-06 18:48:02 -0700433 properties: '{obj:mvn_properties}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800434
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700435 publishers:
436 - infra-shiplogs:
437 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100438
439- job-template:
Gary Wu6c702772018-08-06 18:48:02 -0700440 # Job template for Java merge jobs based on
441 # '{project-name}-{stream}-merge-java'
442 # The purpose of this job template is to run:
443 # 1. maven clean deploy
444 #
445 # This project supports maven properties.
446 #
447 # Required Variables:
448 # branch: git branch (eg. stable/lithium or master)
449 # maven-properties: properties passed to maven
450
451 <<: *merge_java_defaults
452 name: '{project-name}-{stream}-merge-properties-java'
453
454- job-template:
455 # Job template for Java merge jobs that takes a maven template
456 #
457 # The purpose of this job template is to run:
458 # 1. maven clean deploy -P {mvn-profile}
459 #
460 # Required Variables:
461 # branch: git branch (eg. stable/lithium or master)
462
463 <<: *merge_java_defaults
464 name: '{project-name}-{stream}-merge-profile-java'
465
466 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700467 - lf-infra-pre-build
Gary Wu6c702772018-08-06 18:48:02 -0700468 - provide-maven-settings:
469 global-settings-file: 'global-settings'
470 settings-file: '{mvn-settings}'
471
472 - docker-login
473
474 - maven-target:
475 maven-version: '{maven-version}'
476 goals: 'clean deploy -P {mvn-profile} -B
477 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
478 settings: '{mvn-settings}'
479 settings-type: cfp
480 global-settings: 'global-settings'
481 global-settings-type: cfp
482 properties:
483 - docker.pull.registry=nexus3.onap.org:10001
484 - docker.push.registry=nexus3.onap.org:10003
485
486- job-template:
487 # Job template for Java merge jobs with POM not at the root
488 #
489 # The purpose of this job template is to run:
490 # 1. maven clean deploy
491 #
492 # This job supports subprojects.
493 #
494 # Required Variables:
495 # branch: git branch (eg. stable/lithium or master)
496 # pom: name/location of the pom.xml file relative to the workspace
497 # pattern: ant file-path pattern relative to the workspace used to
498 # trigger the job
499
500 <<: *merge_java_defaults
501 name: '{project-name}-{stream}-{subproject}-merge-java'
502
Gary Wu350fbcb2018-08-07 11:13:59 -0700503- job-template: &docker_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800504 # Job template for Docker daily jobs
505 #
506 # The purpose of this job template is to run:
507 # 1. login to the docker registry
508 # 2. docker push
509 #
510 # Required Variables:
511 # branch: git branch (eg. stable/lithium or master)
512
Anaël Clossonabbafb52017-02-09 17:55:10 +0100513 name: '{project-name}-{stream}-docker-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700514 id: '{project-name}-{stream}-docker-java-daily'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100515 project-type: freestyle
Jessica Wagantall34e6d6b2018-11-08 12:43:06 -0800516 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700517 disabled: '{disabled}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100518 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700519 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100520 build-days-to-keep: '{build-days-to-keep}'
521
522 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700523 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100524 project: '{project}'
525 branch: '{branch}'
526 refspec: 'refs/heads/{branch}'
527 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800528 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800529 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700530 - maven-params:
531 mvn-params: '{mvn-params}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100532
533 scm:
534 - gerrit-trigger-scm:
535 refspec: ''
536 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500537 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100538
Anaël Clossonabbafb52017-02-09 17:55:10 +0100539 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700540 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100541 build-timeout: '{build-timeout}'
542
543 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800544 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700545 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800546 - gerrit-trigger-release-manually:
547 server: '{server-name}'
548 project: '{project}'
549 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100550
551 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700552 - lf-infra-pre-build
Anaël Clossonabbafb52017-02-09 17:55:10 +0100553 - provide-maven-settings:
554 global-settings-file: 'global-settings'
555 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100556
Anaël Closson63e090e2017-02-15 14:50:45 +0100557 - docker-login
558
Anaël Clossonabbafb52017-02-09 17:55:10 +0100559 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800560 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100561 mvn-settings: '{mvn-settings}'
562 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100563 # use default as mvn-profile if profile is not needed
564 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700565 mvn-params: '{mvn-params}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500566
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700567 publishers:
568 - infra-shiplogs:
569 maven-version: '{maven-version}'
570
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500571- job-template:
Gary Wu9e9210f2018-07-18 16:19:20 -0700572 # Job template for Docker daily jobs
573 #
574 # The purpose of this job template is to run:
575 # 1. login to the docker registry
576 # 2. docker push
577 #
578 # Required Variables:
579 # branch: git branch (eg. stable/lithium or master)
580
Gary Wu350fbcb2018-08-07 11:13:59 -0700581 <<: *docker_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700582 name: '{project-name}-{stream}-docker-java-daily'
583 id: docker-java-daily
Gary Wu9e9210f2018-07-18 16:19:20 -0700584 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700585 wrappers:
586 - infra-wrappers-docker-build:
587 build-timeout: '{build-timeout}'
588
Gary Wu9e9210f2018-07-18 16:19:20 -0700589- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +0200590 # Job template for building & pushing docker images
591 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800592 # The purpose of this job template is to run:
JulienBe91c56ec2017-06-21 23:37:39 +0200593 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800594 # 2. run a specified shell builder
595 #
596 # Required Variables:
597 # pom: name/location of the pom.xml file relative to the workspace
598 # maven-properties: properties passed to maven
599
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500600 name: '{project-name}-{stream}-docker-java-shell-daily'
601 project-type: freestyle
Jessica Wagantallfe5efea2018-08-07 16:02:39 -0700602 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700603 disabled: '{disabled}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500604 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700605 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500606 build-days-to-keep: '{build-days-to-keep}'
607
608 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700609 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500610 project: '{project}'
611 branch: '{branch}'
612 refspec: 'refs/heads/{branch}'
613 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800614 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800615 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500616
617 scm:
618 - gerrit-trigger-scm:
619 refspec: ''
620 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500621 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500622
623 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700624 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500625 build-timeout: '{build-timeout}'
626
627 triggers:
628 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700629 - timed: '@daily'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500630 - gerrit-trigger-release-manually:
631 server: '{server-name}'
632 project: '{project}'
633 branch: '{branch}'
634
635 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700636 - lf-infra-pre-build
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500637 - provide-maven-settings:
638 global-settings-file: 'global-settings'
639 settings-file: '{mvn-settings}'
640
641 - docker-login
642
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500643 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800644 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500645 goals: '{mvn-goals}'
646 settings: '{mvn-settings}'
647 settings-type: cfp
648 global-settings: 'global-settings'
649 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500650
651 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000652
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700653 publishers:
654 - infra-shiplogs:
655 maven-version: '{maven-version}'
656
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000657- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800658 # Job template for building & pushing docker images
659 #
660 # The purpose of this job template is to run:
661 # 1. login to the docker registry
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700662 # 2. run a specified shell builder
663 #
664 # Required Variables:
665 # pom: name/location of the pom.xml file relative to the workspace
666 # maven-properties: properties passed to maven
667
668 name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily'
669 project-type: freestyle
670 node: '{build-node}'
671 disabled: '{disabled}'
672 properties:
673 - infra-properties:
674 build-days-to-keep: '{build-days-to-keep}'
675
676 parameters:
677 - infra-parameters:
678 project: '{project}'
679 branch: '{branch}'
680 refspec: 'refs/heads/{branch}'
681 artifacts: '{archive-artifacts}'
682 - maven-exec:
683 maven-version: '{maven-version}'
684
685 scm:
686 - gerrit-trigger-scm:
687 refspec: ''
688 choosing-strategy: 'default'
689 submodule-recursive: '{submodule-recursive}'
690
691 wrappers:
692 - infra-wrappers:
693 build-timeout: '{build-timeout}'
694
695 triggers:
696 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700697 - timed: '@daily'
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700698 - gerrit-trigger-release-manually:
699 server: '{server-name}'
700 project: '{project}'
701 branch: '{branch}'
702
703 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700704 - lf-infra-pre-build
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700705 - provide-maven-settings:
706 global-settings-file: 'global-settings'
707 settings-file: '{mvn-settings}'
708
709 - docker-login
710
711 - maven-target:
712 maven-version: '{maven-version}'
713 pom: '{pom}'
714 goals: '{mvn-goals}'
715 settings: '{mvn-settings}'
716 settings-type: cfp
717 global-settings: 'global-settings'
718 global-settings-type: cfp
719
720 - shell: '{script}'
721
722 publishers:
723 - infra-shiplogs:
724 maven-version: '{maven-version}'
725
726- job-template:
727 # Job template for building & pushing docker images
728 #
729 # The purpose of this job template is to run:
730 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800731 # 2. inject a version.properties file and set versions
732 # 3. run a specified shell builder
733 #
734 # Required Variables:
735 # pom: name/location of the pom.xml file relative to the workspace
736 # maven-properties: properties passed to maven
737
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400738 name: '{project-name}-{stream}-docker-java-version-shell-daily'
739 project-type: freestyle
Jessica Wagantalld50aa192018-11-08 13:03:33 -0800740 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700741 disabled: '{disabled}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400742 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700743 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400744 build-days-to-keep: '{build-days-to-keep}'
745
746 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700747 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400748 project: '{project}'
749 branch: '{branch}'
750 refspec: 'refs/heads/{branch}'
751 artifacts: '{archive-artifacts}'
752 - maven-exec:
753 maven-version: '{maven-version}'
754
755 scm:
756 - gerrit-trigger-scm:
757 refspec: ''
758 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500759 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400760
761 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700762 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400763 build-timeout: '{build-timeout}'
764
765 triggers:
766 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700767 - timed: '@daily'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400768 - gerrit-trigger-release-manually:
769 server: '{server-name}'
770 project: '{project}'
771 branch: '{branch}'
772
773 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700774 - lf-infra-pre-build
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400775 - provide-maven-settings:
776 global-settings-file: 'global-settings'
777 settings-file: '{mvn-settings}'
778
779 - inject:
780 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700781 - maven-set-release-version:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400782 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700783 mvn-settings: '{mvn-settings}'
784 pom:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400785
786 - docker-login
787
788 - maven-target:
789 maven-version: '{maven-version}'
790 goals: '{mvn-goals}'
791 settings: '{mvn-settings}'
792 settings-type: cfp
793 global-settings: 'global-settings'
794 global-settings-type: cfp
795
796 - shell: '{script}'
797
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700798 publishers:
799 - infra-shiplogs:
800 maven-version: '{maven-version}'
801
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400802- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800803 # Job template for building & pushing docker images
804 #
805 # The purpose of this job template is to run:
806 # 1. login to the docker registry
807 # 2. inject a version.properties file and set versions
808 # 3. run a specified shell builder
809 #
810 # This template supports subprojects.
811 #
812 # Required Variables:
813 # pom: name/location of the pom.xml file relative to the workspace
814 # maven-properties: properties passed to maven
815
Zhaoxing49773042017-10-13 17:14:35 +0800816 name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
817 project-type: freestyle
818 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700819 disabled: '{disabled}'
Zhaoxing49773042017-10-13 17:14:35 +0800820 properties:
821 - infra-properties:
822 build-days-to-keep: '{build-days-to-keep}'
823
824 parameters:
825 - infra-parameters:
826 project: '{project}'
827 branch: '{branch}'
828 refspec: 'refs/heads/{branch}'
829 artifacts: '{archive-artifacts}'
830 - maven-exec:
831 maven-version: '{maven-version}'
832
833 scm:
834 - gerrit-trigger-scm:
835 refspec: ''
836 choosing-strategy: 'default'
837 submodule-recursive: '{submodule-recursive}'
838
839 wrappers:
840 - infra-wrappers:
841 build-timeout: '{build-timeout}'
842
843 triggers:
844 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700845 - timed: '@daily'
Zhaoxing49773042017-10-13 17:14:35 +0800846 - gerrit-trigger-release-manually:
847 server: '{server-name}'
848 project: '{project}'
849 branch: '{branch}'
850
851 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700852 - lf-infra-pre-build
Zhaoxing49773042017-10-13 17:14:35 +0800853 - provide-maven-settings:
854 global-settings-file: 'global-settings'
855 settings-file: '{mvn-settings}'
856
857 - inject:
858 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700859 - maven-set-release-version:
Zhaoxing49773042017-10-13 17:14:35 +0800860 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700861 mvn-settings: '{mvn-settings}'
Zhaoxing49773042017-10-13 17:14:35 +0800862 pom: '{pom}'
Zhaoxing49773042017-10-13 17:14:35 +0800863
864 - docker-login
865
866 - maven-target:
867 maven-version: '{maven-version}'
868 pom: '{pom}'
869 goals: '{mvn-goals}'
870 settings: '{mvn-settings}'
871 settings-type: cfp
872 global-settings: 'global-settings'
873 global-settings-type: cfp
874
875 - shell: '{script}'
876
877 publishers:
878 - infra-shiplogs:
879 maven-version: '{maven-version}'
880
Gary Wu350fbcb2018-08-07 11:13:59 -0700881- job-template: &docker_version_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800882 # Job template for building & pushing docker images
883 #
884 # The purpose of this job template is to run:
885 # 1. login to the docker registry
886 # 2. inject a version.properties file and set versions
887 # 3. run a docker push
888 #
889 # Required Variables:
890 # pom: name/location of the pom.xml file relative to the workspace
891 # profile: the docker profile defined in the pom
892 # maven-properties: properties passed to maven
893
Patrick Brady39f388a2017-03-09 11:26:59 -0800894 name: '{project-name}-{stream}-docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700895 id: '{project-name}-{stream}-docker-version-java-daily'
Patrick Brady39f388a2017-03-09 11:26:59 -0800896 project-type: freestyle
Paul Vaduva6dd88542018-12-11 16:59:12 +0100897 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700898 disabled: '{disabled}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800899 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700900 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -0800901 build-days-to-keep: '{build-days-to-keep}'
902
903 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700904 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -0800905 project: '{project}'
906 branch: '{branch}'
907 refspec: 'refs/heads/{branch}'
908 artifacts: '{archive-artifacts}'
909 - maven-exec:
910 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700911 - maven-params:
912 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800913
914 scm:
915 - gerrit-trigger-scm:
916 refspec: ''
917 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500918 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800919
920 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700921 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -0800922 build-timeout: '{build-timeout}'
923
924 triggers:
925 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700926 - timed: '@daily'
Patrick Brady39f388a2017-03-09 11:26:59 -0800927 - gerrit-trigger-release-manually:
928 server: '{server-name}'
929 project: '{project}'
930 branch: '{branch}'
931
932 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700933 - lf-infra-pre-build
Patrick Brady39f388a2017-03-09 11:26:59 -0800934 - provide-maven-settings:
935 global-settings-file: 'global-settings'
936 settings-file: '{mvn-settings}'
937
938 - inject:
939 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700940 - maven-set-release-version:
Patrick Brady39f388a2017-03-09 11:26:59 -0800941 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700942 mvn-settings: '{mvn-settings}'
943 pom:
Patrick Brady39f388a2017-03-09 11:26:59 -0800944
945 - docker-login
946
947 - maven-docker-push-daily:
948 maven-version: '{maven-version}'
949 mvn-settings: '{mvn-settings}'
950 pom: '{docker-pom}'
951 # use default as mvn-profile if profile is not needed
952 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700953 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800954
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700955 publishers:
956 - infra-shiplogs:
957 maven-version: '{maven-version}'
958
Patrick Brady39f388a2017-03-09 11:26:59 -0800959- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800960 # Job template for building & pushing docker images
961 #
962 # The purpose of this job template is to run:
Gary Wu9e9210f2018-07-18 16:19:20 -0700963 # 1. login to the docker registry
964 # 2. inject a version.properties file and set versions
965 # 3. run a docker push
966 #
967 # Required Variables:
968 # pom: name/location of the pom.xml file relative to the workspace
969 # profile: the docker profile defined in the pom
970 # maven-properties: properties passed to maven
971
Gary Wu350fbcb2018-08-07 11:13:59 -0700972 <<: *docker_version_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700973 name: '{project-name}-{stream}-docker-version-java-daily'
974 id: 'docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700975 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700976 wrappers:
977 - infra-wrappers-docker-build:
978 build-timeout: '{build-timeout}'
979
Zhaoxing49773042017-10-13 17:14:35 +0800980- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800981 # Job template for building & pushing docker images for AAI specific repos
982 #
983 # The purpose of this job template is to run:
984 # 1. login to the docker registry
985 # 2. run maven goals
986 # 3. run include-docker-push.sh
987 #
988 # Required Variables:
989 # pom: name/location of the pom.xml file relative to the workspace
990 # maven-properties: properties passed to maven
991
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000992 name: '{project-name}-{stream}-aai-docker-java-daily'
993 project-type: freestyle
Jessica Wagantallab30bf62018-11-08 12:20:48 -0800994 node: '{build-node}'
Gary Wudc3f2952017-08-23 16:48:59 -0700995 docker-image-name: ''
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700996 disabled: '{disabled}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000997 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700998 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000999 build-days-to-keep: '{build-days-to-keep}'
1000
1001 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001002 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001003 project: '{project}'
1004 branch: '{branch}'
1005 refspec: 'refs/heads/{branch}'
1006 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001007 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001008 maven-version: '{maven-version}'
Gary Wudc3f2952017-08-23 16:48:59 -07001009 - docker-image-name:
1010 docker-image-name: '{docker-image-name}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001011
1012 scm:
1013 - gerrit-trigger-scm:
1014 refspec: ''
1015 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001016 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001017
1018 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001019 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001020 build-timeout: '{build-timeout}'
1021
1022 triggers:
1023 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001024 - timed: '@daily'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001025 - gerrit-trigger-release-manually:
1026 server: '{server-name}'
1027 project: '{project}'
1028 branch: '{branch}'
1029
1030 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001031 - lf-infra-pre-build
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001032 - provide-maven-settings:
1033 global-settings-file: 'global-settings'
1034 settings-file: '{mvn-settings}'
1035
1036 - docker-login
1037
1038 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001039 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001040 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001041 goals: 'clean install -DskipTests -B
1042 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001043 settings: '{mvn-settings}'
1044 settings-type: cfp
1045 global-settings: 'global-settings'
1046 global-settings-type: cfp
1047
1048 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001049 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001050 pom: '{pom}'
1051 goals: '{mvn-goals}'
1052 settings: '{mvn-settings}'
1053 settings-type: cfp
1054 global-settings: 'global-settings'
1055 global-settings-type: cfp
1056 properties:
1057 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001058 - docker.pull.registry=nexus3.onap.org:10001
1059 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001060
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001061 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001062
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001063 publishers:
1064 - infra-shiplogs:
1065 maven-version: '{maven-version}'
1066
Carsten Lund2d06a692017-02-23 18:23:07 +00001067- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001068 # Job template for Java merge jobs for SDC specific repos
ig61339fdb9d22017-04-03 17:47:19 +03001069 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001070 # The purpose of this job template is to run:
1071 # 1. maven clean deploy
ig61339fdb9d22017-04-03 17:47:19 +03001072 #
1073 # Required Variables:
1074 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001075
Gary Wu6c702772018-08-06 18:48:02 -07001076 <<: *merge_java_defaults
ig61339fdb9d22017-04-03 17:47:19 +03001077 name: '{project-name}-{stream}-sdc-merge-java'
1078
Paul Vaduva3aebd312019-02-01 13:35:21 +01001079 node: '{build-node}'
Jessica Wagantall9a89de42018-04-18 11:35:17 -07001080 build-timeout: 120
ig61339fdb9d22017-04-03 17:47:19 +03001081
ig61339fdb9d22017-04-03 17:47:19 +03001082 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001083 - lf-infra-pre-build
ig61339fdb9d22017-04-03 17:47:19 +03001084 - provide-maven-settings:
1085 global-settings-file: 'global-settings'
1086 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001087
1088 - docker-login
1089
Gary Wu6c702772018-08-06 18:48:02 -07001090 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001091 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001092 mvn-settings: '{mvn-settings}'
1093 pom: '{docker-pom}'
1094 # use default as mvn-profile if profile is not needed
1095 mvn-profile: '{mvn-profile}'
Gary Wu6c702772018-08-06 18:48:02 -07001096 mvn-params: ''
Bengt Thuree1515daa2019-09-10 13:39:04 +02001097
1098- job-template:
1099 # Job template for Java merge jobs on multiple architectures
1100 #
1101 # The purpose of this job template is to:
1102 # 1. Run parallel {project-name}-{stream}-verify-java jobs for each supported architecture
1103 # 2. Build and push a docker manifest list for the images created by
1104 # the previous jobs
1105
1106 name: '{project-name}-multiarch-{stream}-merge-java'
1107 node: '{build-node}'
1108 project-type: multijob
1109 disabled: '{obj:disabled}'
1110 pattern: '**'
1111
1112 parameters:
1113 - lf-infra-parameters:
1114 project: '{project}'
1115 stream: '{stream}'
1116 branch: '{branch}'
1117 - string:
1118 name: DOCKER_REGISTRY
1119 default: 'none'
1120 - string:
1121 name: DOCKERHUB_REGISTRY
1122 default: 'registry-1.docker.io'
1123
1124 properties:
1125 - throttle:
1126 max-per-node: 1
1127 option: 'project'
1128 - build-blocker:
1129 use-build-blocker: true
1130 blocking-jobs:
1131 - '{project-name}-.*-merge-.*'
1132 blocking-level: 'NODE'
1133
1134 scm:
1135 - gerrit-trigger-scm:
1136 refspec: ''
1137 choosing-strategy: 'default'
1138 submodule-recursive: '{submodule-recursive}'
1139
1140 wrappers:
1141 - infra-wrappers:
1142 build-timeout: '{build-timeout}'
1143
1144 triggers:
1145 - gerrit-trigger-patch-merged:
1146 server: '{server-name}'
1147 project: '{project}'
1148 branch: '{branch}'
1149 files: '{pattern}'
1150
1151 builders:
1152 - multijob:
1153 name: 'build docker images'
1154 condition: ALWAYS
1155 execution-type: PARALLEL
1156 projects:
1157 - name: '{project-name}-amd64-{stream}-merge-java'
1158 kill-phase-on: FAILURE
1159 current-parameters: true
1160 - name: '{project-name}-arm64-{stream}-merge-java'
1161 kill-phase-on: NEVER
1162 current-parameters: true
1163 - multijob:
1164 name: 'publish docker manifest'
1165 condition: SUCCESSFUL
1166 execution-type: PARALLEL
1167 projects:
1168 - name: '{project-name}-docker-manifest-{stream}'
1169 current-parameters: true
1170 predefined-parameters: |
1171 PARENT_JOB_NAME=$JOB_NAME
1172 DOCKERHUB_REGISTRY=docker.io