blob: 60f1ad6f54520d77a1eab0949281445828b33ecd [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
sebdet72bb3602020-06-11 17:24:40 +0200454 wrappers:
455 - lf-infra-wrappers:
456 build-timeout: '{build-timeout}'
457 jenkins-ssh-credential: '{jenkins-ssh-credential}'
458
Gary Wu6c702772018-08-06 18:48:02 -0700459- job-template:
460 # Job template for Java merge jobs that takes a maven template
461 #
462 # The purpose of this job template is to run:
463 # 1. maven clean deploy -P {mvn-profile}
464 #
465 # Required Variables:
466 # branch: git branch (eg. stable/lithium or master)
467
468 <<: *merge_java_defaults
469 name: '{project-name}-{stream}-merge-profile-java'
470
471 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700472 - lf-infra-pre-build
Gary Wu6c702772018-08-06 18:48:02 -0700473 - provide-maven-settings:
474 global-settings-file: 'global-settings'
475 settings-file: '{mvn-settings}'
476
477 - docker-login
478
479 - maven-target:
480 maven-version: '{maven-version}'
481 goals: 'clean deploy -P {mvn-profile} -B
482 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
483 settings: '{mvn-settings}'
484 settings-type: cfp
485 global-settings: 'global-settings'
486 global-settings-type: cfp
487 properties:
488 - docker.pull.registry=nexus3.onap.org:10001
489 - docker.push.registry=nexus3.onap.org:10003
490
491- job-template:
492 # Job template for Java merge jobs with POM not at the root
493 #
494 # The purpose of this job template is to run:
495 # 1. maven clean deploy
496 #
497 # This job supports subprojects.
498 #
499 # Required Variables:
500 # branch: git branch (eg. stable/lithium or master)
501 # pom: name/location of the pom.xml file relative to the workspace
502 # pattern: ant file-path pattern relative to the workspace used to
503 # trigger the job
504
505 <<: *merge_java_defaults
506 name: '{project-name}-{stream}-{subproject}-merge-java'
507
Gary Wu350fbcb2018-08-07 11:13:59 -0700508- job-template: &docker_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800509 # Job template for Docker daily jobs
510 #
511 # The purpose of this job template is to run:
512 # 1. login to the docker registry
513 # 2. docker push
514 #
515 # Required Variables:
516 # branch: git branch (eg. stable/lithium or master)
517
Anaël Clossonabbafb52017-02-09 17:55:10 +0100518 name: '{project-name}-{stream}-docker-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700519 id: '{project-name}-{stream}-docker-java-daily'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100520 project-type: freestyle
Jessica Wagantall34e6d6b2018-11-08 12:43:06 -0800521 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700522 disabled: '{disabled}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100523 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700524 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100525 build-days-to-keep: '{build-days-to-keep}'
526
527 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700528 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100529 project: '{project}'
530 branch: '{branch}'
531 refspec: 'refs/heads/{branch}'
532 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800533 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800534 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700535 - maven-params:
536 mvn-params: '{mvn-params}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100537
538 scm:
539 - gerrit-trigger-scm:
540 refspec: ''
541 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500542 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100543
Anaël Clossonabbafb52017-02-09 17:55:10 +0100544 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700545 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100546 build-timeout: '{build-timeout}'
547
548 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800549 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700550 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800551 - gerrit-trigger-release-manually:
552 server: '{server-name}'
553 project: '{project}'
554 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100555
556 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700557 - lf-infra-pre-build
Anaël Clossonabbafb52017-02-09 17:55:10 +0100558 - provide-maven-settings:
559 global-settings-file: 'global-settings'
560 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100561
Anaël Closson63e090e2017-02-15 14:50:45 +0100562 - docker-login
563
Anaël Clossonabbafb52017-02-09 17:55:10 +0100564 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800565 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100566 mvn-settings: '{mvn-settings}'
567 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100568 # use default as mvn-profile if profile is not needed
569 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700570 mvn-params: '{mvn-params}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500571
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700572 publishers:
573 - infra-shiplogs:
574 maven-version: '{maven-version}'
575
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500576- job-template:
Gary Wu9e9210f2018-07-18 16:19:20 -0700577 # Job template for Docker daily jobs
578 #
579 # The purpose of this job template is to run:
580 # 1. login to the docker registry
581 # 2. docker push
582 #
583 # Required Variables:
584 # branch: git branch (eg. stable/lithium or master)
585
Gary Wu350fbcb2018-08-07 11:13:59 -0700586 <<: *docker_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700587 name: '{project-name}-{stream}-docker-java-daily'
588 id: docker-java-daily
Gary Wu9e9210f2018-07-18 16:19:20 -0700589 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700590 wrappers:
591 - infra-wrappers-docker-build:
592 build-timeout: '{build-timeout}'
593
Gary Wu9e9210f2018-07-18 16:19:20 -0700594- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +0200595 # Job template for building & pushing docker images
596 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800597 # The purpose of this job template is to run:
JulienBe91c56ec2017-06-21 23:37:39 +0200598 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800599 # 2. run a specified shell builder
600 #
601 # Required Variables:
602 # pom: name/location of the pom.xml file relative to the workspace
603 # maven-properties: properties passed to maven
604
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500605 name: '{project-name}-{stream}-docker-java-shell-daily'
606 project-type: freestyle
Jessica Wagantallfe5efea2018-08-07 16:02:39 -0700607 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700608 disabled: '{disabled}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500609 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700610 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500611 build-days-to-keep: '{build-days-to-keep}'
612
613 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700614 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500615 project: '{project}'
616 branch: '{branch}'
617 refspec: 'refs/heads/{branch}'
618 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800619 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800620 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500621
622 scm:
623 - gerrit-trigger-scm:
624 refspec: ''
625 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500626 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500627
628 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700629 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500630 build-timeout: '{build-timeout}'
631
632 triggers:
633 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700634 - timed: '@daily'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500635 - gerrit-trigger-release-manually:
636 server: '{server-name}'
637 project: '{project}'
638 branch: '{branch}'
639
640 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700641 - lf-infra-pre-build
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500642 - provide-maven-settings:
643 global-settings-file: 'global-settings'
644 settings-file: '{mvn-settings}'
645
646 - docker-login
647
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500648 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800649 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500650 goals: '{mvn-goals}'
651 settings: '{mvn-settings}'
652 settings-type: cfp
653 global-settings: 'global-settings'
654 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500655
656 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000657
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700658 publishers:
659 - infra-shiplogs:
660 maven-version: '{maven-version}'
661
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000662- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800663 # Job template for building & pushing docker images
664 #
665 # The purpose of this job template is to run:
666 # 1. login to the docker registry
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700667 # 2. run a specified shell builder
668 #
669 # Required Variables:
670 # pom: name/location of the pom.xml file relative to the workspace
671 # maven-properties: properties passed to maven
672
673 name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily'
674 project-type: freestyle
675 node: '{build-node}'
676 disabled: '{disabled}'
677 properties:
678 - infra-properties:
679 build-days-to-keep: '{build-days-to-keep}'
680
681 parameters:
682 - infra-parameters:
683 project: '{project}'
684 branch: '{branch}'
685 refspec: 'refs/heads/{branch}'
686 artifacts: '{archive-artifacts}'
687 - maven-exec:
688 maven-version: '{maven-version}'
689
690 scm:
691 - gerrit-trigger-scm:
692 refspec: ''
693 choosing-strategy: 'default'
694 submodule-recursive: '{submodule-recursive}'
695
696 wrappers:
697 - infra-wrappers:
698 build-timeout: '{build-timeout}'
699
700 triggers:
701 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700702 - timed: '@daily'
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700703 - gerrit-trigger-release-manually:
704 server: '{server-name}'
705 project: '{project}'
706 branch: '{branch}'
707
708 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700709 - lf-infra-pre-build
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700710 - provide-maven-settings:
711 global-settings-file: 'global-settings'
712 settings-file: '{mvn-settings}'
713
714 - docker-login
715
716 - maven-target:
717 maven-version: '{maven-version}'
718 pom: '{pom}'
719 goals: '{mvn-goals}'
720 settings: '{mvn-settings}'
721 settings-type: cfp
722 global-settings: 'global-settings'
723 global-settings-type: cfp
724
725 - shell: '{script}'
726
727 publishers:
728 - infra-shiplogs:
729 maven-version: '{maven-version}'
730
731- job-template:
732 # Job template for building & pushing docker images
733 #
734 # The purpose of this job template is to run:
735 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800736 # 2. inject a version.properties file and set versions
737 # 3. run a specified shell builder
738 #
739 # Required Variables:
740 # pom: name/location of the pom.xml file relative to the workspace
741 # maven-properties: properties passed to maven
742
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400743 name: '{project-name}-{stream}-docker-java-version-shell-daily'
744 project-type: freestyle
Jessica Wagantalld50aa192018-11-08 13:03:33 -0800745 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700746 disabled: '{disabled}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400747 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700748 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400749 build-days-to-keep: '{build-days-to-keep}'
750
751 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700752 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400753 project: '{project}'
754 branch: '{branch}'
755 refspec: 'refs/heads/{branch}'
756 artifacts: '{archive-artifacts}'
757 - maven-exec:
758 maven-version: '{maven-version}'
759
760 scm:
761 - gerrit-trigger-scm:
762 refspec: ''
763 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500764 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400765
766 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700767 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400768 build-timeout: '{build-timeout}'
769
770 triggers:
771 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700772 - timed: '@daily'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400773 - gerrit-trigger-release-manually:
774 server: '{server-name}'
775 project: '{project}'
776 branch: '{branch}'
777
778 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700779 - lf-infra-pre-build
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400780 - provide-maven-settings:
781 global-settings-file: 'global-settings'
782 settings-file: '{mvn-settings}'
783
784 - inject:
785 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700786 - maven-set-release-version:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400787 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700788 mvn-settings: '{mvn-settings}'
789 pom:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400790
791 - docker-login
792
793 - maven-target:
794 maven-version: '{maven-version}'
795 goals: '{mvn-goals}'
796 settings: '{mvn-settings}'
797 settings-type: cfp
798 global-settings: 'global-settings'
799 global-settings-type: cfp
800
801 - shell: '{script}'
802
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700803 publishers:
804 - infra-shiplogs:
805 maven-version: '{maven-version}'
806
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400807- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800808 # Job template for building & pushing docker images
809 #
810 # The purpose of this job template is to run:
811 # 1. login to the docker registry
812 # 2. inject a version.properties file and set versions
813 # 3. run a specified shell builder
814 #
815 # This template supports subprojects.
816 #
817 # Required Variables:
818 # pom: name/location of the pom.xml file relative to the workspace
819 # maven-properties: properties passed to maven
820
Zhaoxing49773042017-10-13 17:14:35 +0800821 name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
822 project-type: freestyle
Jessica Wagantall612da802020-03-31 10:44:03 -0700823 node: 'ubuntu1804-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700824 disabled: '{disabled}'
Zhaoxing49773042017-10-13 17:14:35 +0800825 properties:
826 - infra-properties:
827 build-days-to-keep: '{build-days-to-keep}'
828
829 parameters:
830 - infra-parameters:
831 project: '{project}'
832 branch: '{branch}'
833 refspec: 'refs/heads/{branch}'
834 artifacts: '{archive-artifacts}'
835 - maven-exec:
836 maven-version: '{maven-version}'
837
838 scm:
839 - gerrit-trigger-scm:
840 refspec: ''
841 choosing-strategy: 'default'
842 submodule-recursive: '{submodule-recursive}'
843
844 wrappers:
845 - infra-wrappers:
846 build-timeout: '{build-timeout}'
847
848 triggers:
849 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700850 - timed: '@daily'
Zhaoxing49773042017-10-13 17:14:35 +0800851 - gerrit-trigger-release-manually:
852 server: '{server-name}'
853 project: '{project}'
854 branch: '{branch}'
855
856 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700857 - lf-infra-pre-build
Zhaoxing49773042017-10-13 17:14:35 +0800858 - provide-maven-settings:
859 global-settings-file: 'global-settings'
860 settings-file: '{mvn-settings}'
861
862 - inject:
863 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700864 - maven-set-release-version:
Zhaoxing49773042017-10-13 17:14:35 +0800865 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700866 mvn-settings: '{mvn-settings}'
Zhaoxing49773042017-10-13 17:14:35 +0800867 pom: '{pom}'
Zhaoxing49773042017-10-13 17:14:35 +0800868
869 - docker-login
870
871 - maven-target:
872 maven-version: '{maven-version}'
873 pom: '{pom}'
874 goals: '{mvn-goals}'
875 settings: '{mvn-settings}'
876 settings-type: cfp
877 global-settings: 'global-settings'
878 global-settings-type: cfp
879
880 - shell: '{script}'
881
882 publishers:
883 - infra-shiplogs:
884 maven-version: '{maven-version}'
885
Gary Wu350fbcb2018-08-07 11:13:59 -0700886- job-template: &docker_version_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800887 # Job template for building & pushing docker images
888 #
889 # The purpose of this job template is to run:
890 # 1. login to the docker registry
891 # 2. inject a version.properties file and set versions
892 # 3. run a docker push
893 #
894 # Required Variables:
895 # pom: name/location of the pom.xml file relative to the workspace
896 # profile: the docker profile defined in the pom
897 # maven-properties: properties passed to maven
898
Patrick Brady39f388a2017-03-09 11:26:59 -0800899 name: '{project-name}-{stream}-docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700900 id: '{project-name}-{stream}-docker-version-java-daily'
Patrick Brady39f388a2017-03-09 11:26:59 -0800901 project-type: freestyle
Paul Vaduva6dd88542018-12-11 16:59:12 +0100902 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700903 disabled: '{disabled}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800904 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700905 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -0800906 build-days-to-keep: '{build-days-to-keep}'
907
908 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700909 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -0800910 project: '{project}'
911 branch: '{branch}'
912 refspec: 'refs/heads/{branch}'
913 artifacts: '{archive-artifacts}'
914 - maven-exec:
915 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700916 - maven-params:
917 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800918
919 scm:
920 - gerrit-trigger-scm:
921 refspec: ''
922 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500923 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800924
925 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700926 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -0800927 build-timeout: '{build-timeout}'
928
929 triggers:
930 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700931 - timed: '@daily'
Patrick Brady39f388a2017-03-09 11:26:59 -0800932 - gerrit-trigger-release-manually:
933 server: '{server-name}'
934 project: '{project}'
935 branch: '{branch}'
936
937 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700938 - lf-infra-pre-build
Patrick Brady39f388a2017-03-09 11:26:59 -0800939 - provide-maven-settings:
940 global-settings-file: 'global-settings'
941 settings-file: '{mvn-settings}'
942
943 - inject:
944 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700945 - maven-set-release-version:
Patrick Brady39f388a2017-03-09 11:26:59 -0800946 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700947 mvn-settings: '{mvn-settings}'
948 pom:
Patrick Brady39f388a2017-03-09 11:26:59 -0800949
950 - docker-login
951
952 - maven-docker-push-daily:
953 maven-version: '{maven-version}'
954 mvn-settings: '{mvn-settings}'
955 pom: '{docker-pom}'
956 # use default as mvn-profile if profile is not needed
957 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700958 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800959
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700960 publishers:
961 - infra-shiplogs:
962 maven-version: '{maven-version}'
963
Patrick Brady39f388a2017-03-09 11:26:59 -0800964- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800965 # Job template for building & pushing docker images
966 #
967 # The purpose of this job template is to run:
Gary Wu9e9210f2018-07-18 16:19:20 -0700968 # 1. login to the docker registry
969 # 2. inject a version.properties file and set versions
970 # 3. run a docker push
971 #
972 # Required Variables:
973 # pom: name/location of the pom.xml file relative to the workspace
974 # profile: the docker profile defined in the pom
975 # maven-properties: properties passed to maven
976
Gary Wu350fbcb2018-08-07 11:13:59 -0700977 <<: *docker_version_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700978 name: '{project-name}-{stream}-docker-version-java-daily'
979 id: 'docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700980 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700981 wrappers:
982 - infra-wrappers-docker-build:
983 build-timeout: '{build-timeout}'
984
Zhaoxing49773042017-10-13 17:14:35 +0800985- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800986 # Job template for building & pushing docker images for AAI specific repos
987 #
988 # The purpose of this job template is to run:
989 # 1. login to the docker registry
990 # 2. run maven goals
991 # 3. run include-docker-push.sh
992 #
993 # Required Variables:
994 # pom: name/location of the pom.xml file relative to the workspace
995 # maven-properties: properties passed to maven
996
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000997 name: '{project-name}-{stream}-aai-docker-java-daily'
998 project-type: freestyle
Jessica Wagantallab30bf62018-11-08 12:20:48 -0800999 node: '{build-node}'
Gary Wudc3f2952017-08-23 16:48:59 -07001000 docker-image-name: ''
Jessica Wagantall27a8a392018-03-16 17:22:11 -07001001 disabled: '{disabled}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001002 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001003 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001004 build-days-to-keep: '{build-days-to-keep}'
1005
1006 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001007 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001008 project: '{project}'
1009 branch: '{branch}'
1010 refspec: 'refs/heads/{branch}'
1011 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -08001012 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -08001013 maven-version: '{maven-version}'
Gary Wudc3f2952017-08-23 16:48:59 -07001014 - docker-image-name:
1015 docker-image-name: '{docker-image-name}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001016
1017 scm:
1018 - gerrit-trigger-scm:
1019 refspec: ''
1020 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -05001021 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001022
1023 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001024 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001025 build-timeout: '{build-timeout}'
1026
1027 triggers:
1028 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001029 - timed: '@daily'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001030 - gerrit-trigger-release-manually:
1031 server: '{server-name}'
1032 project: '{project}'
1033 branch: '{branch}'
1034
1035 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001036 - lf-infra-pre-build
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001037 - provide-maven-settings:
1038 global-settings-file: 'global-settings'
1039 settings-file: '{mvn-settings}'
1040
1041 - docker-login
1042
1043 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001044 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001045 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001046 goals: 'clean install -DskipTests -B
1047 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001048 settings: '{mvn-settings}'
1049 settings-type: cfp
1050 global-settings: 'global-settings'
1051 global-settings-type: cfp
1052
1053 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001054 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001055 pom: '{pom}'
1056 goals: '{mvn-goals}'
1057 settings: '{mvn-settings}'
1058 settings-type: cfp
1059 global-settings: 'global-settings'
1060 global-settings-type: cfp
1061 properties:
1062 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001063 - docker.pull.registry=nexus3.onap.org:10001
1064 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001065
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001066 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001067
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001068 publishers:
1069 - infra-shiplogs:
1070 maven-version: '{maven-version}'
1071
Carsten Lund2d06a692017-02-23 18:23:07 +00001072- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001073 # Job template for Java merge jobs for SDC specific repos
ig61339fdb9d22017-04-03 17:47:19 +03001074 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001075 # The purpose of this job template is to run:
1076 # 1. maven clean deploy
ig61339fdb9d22017-04-03 17:47:19 +03001077 #
1078 # Required Variables:
1079 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001080
Gary Wu6c702772018-08-06 18:48:02 -07001081 <<: *merge_java_defaults
ig61339fdb9d22017-04-03 17:47:19 +03001082 name: '{project-name}-{stream}-sdc-merge-java'
1083
Paul Vaduva3aebd312019-02-01 13:35:21 +01001084 node: '{build-node}'
Jessica Wagantall9a89de42018-04-18 11:35:17 -07001085 build-timeout: 120
ig61339fdb9d22017-04-03 17:47:19 +03001086
ig61339fdb9d22017-04-03 17:47:19 +03001087 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001088 - lf-infra-pre-build
ig61339fdb9d22017-04-03 17:47:19 +03001089 - provide-maven-settings:
1090 global-settings-file: 'global-settings'
1091 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001092
1093 - docker-login
1094
Gary Wu6c702772018-08-06 18:48:02 -07001095 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001096 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001097 mvn-settings: '{mvn-settings}'
1098 pom: '{docker-pom}'
1099 # use default as mvn-profile if profile is not needed
1100 mvn-profile: '{mvn-profile}'
Gary Wu6c702772018-08-06 18:48:02 -07001101 mvn-params: ''
Bengt Thuree1515daa2019-09-10 13:39:04 +02001102
1103- job-template:
1104 # Job template for Java merge jobs on multiple architectures
1105 #
1106 # The purpose of this job template is to:
1107 # 1. Run parallel {project-name}-{stream}-verify-java jobs for each supported architecture
1108 # 2. Build and push a docker manifest list for the images created by
1109 # the previous jobs
1110
1111 name: '{project-name}-multiarch-{stream}-merge-java'
1112 node: '{build-node}'
1113 project-type: multijob
1114 disabled: '{obj:disabled}'
1115 pattern: '**'
1116
1117 parameters:
1118 - lf-infra-parameters:
1119 project: '{project}'
1120 stream: '{stream}'
1121 branch: '{branch}'
1122 - string:
1123 name: DOCKER_REGISTRY
1124 default: 'none'
1125 - string:
1126 name: DOCKERHUB_REGISTRY
1127 default: 'registry-1.docker.io'
1128
1129 properties:
1130 - throttle:
1131 max-per-node: 1
1132 option: 'project'
1133 - build-blocker:
1134 use-build-blocker: true
1135 blocking-jobs:
1136 - '{project-name}-.*-merge-.*'
1137 blocking-level: 'NODE'
1138
1139 scm:
1140 - gerrit-trigger-scm:
1141 refspec: ''
1142 choosing-strategy: 'default'
1143 submodule-recursive: '{submodule-recursive}'
1144
1145 wrappers:
1146 - infra-wrappers:
1147 build-timeout: '{build-timeout}'
1148
1149 triggers:
1150 - gerrit-trigger-patch-merged:
1151 server: '{server-name}'
1152 project: '{project}'
1153 branch: '{branch}'
1154 files: '{pattern}'
1155
1156 builders:
1157 - multijob:
1158 name: 'build docker images'
1159 condition: ALWAYS
1160 execution-type: PARALLEL
1161 projects:
1162 - name: '{project-name}-amd64-{stream}-merge-java'
1163 kill-phase-on: FAILURE
1164 current-parameters: true
1165 - name: '{project-name}-arm64-{stream}-merge-java'
1166 kill-phase-on: NEVER
1167 current-parameters: true
1168 - multijob:
1169 name: 'publish docker manifest'
1170 condition: SUCCESSFUL
1171 execution-type: PARALLEL
1172 projects:
1173 - name: '{project-name}-docker-manifest-{stream}'
1174 current-parameters: true
1175 predefined-parameters: |
1176 PARENT_JOB_NAME=$JOB_NAME
1177 DOCKERHUB_REGISTRY=docker.io