blob: 7640b5457e776555d2b208c9dfaab8e5ba22642e [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:
JulienBe2f4ee072017-02-01 21:42:32 +0100119 # Job template for Java daily release jobs
120 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800121 # The purpose of this job template is to run:
122 # 1. maven clean deploy with Sonar scans
JulienBe2f4ee072017-02-01 21:42:32 +0100123 #
124 # Required Variables:
125 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800126
JulienBe2f4ee072017-02-01 21:42:32 +0100127 name: '{project-name}-{stream}-release-java-daily'
128
129 project-type: freestyle
130 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700131 disabled: '{disabled}'
JulienBe2f4ee072017-02-01 21:42:32 +0100132 maven-deploy-properties:
133 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700134 - infra-properties:
JulienBe2f4ee072017-02-01 21:42:32 +0100135 build-days-to-keep: '{build-days-to-keep}'
136
137 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700138 - infra-parameters:
JulienBe2f4ee072017-02-01 21:42:32 +0100139 project: '{project}'
140 branch: '{branch}'
141 refspec: 'refs/heads/{branch}'
142 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800143 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800144 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100145
146 scm:
147 - gerrit-trigger-scm:
148 refspec: ''
149 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500150 submodule-recursive: '{submodule-recursive}'
JulienBe2f4ee072017-02-01 21:42:32 +0100151
152 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700153 - infra-wrappers:
JulienBe2f4ee072017-02-01 21:42:32 +0100154 build-timeout: '{build-timeout}'
155
156 triggers:
157 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700158 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800159 - gerrit-trigger-release-manually:
160 server: '{server-name}'
161 project: '{project}'
162 branch: '{branch}'
JulienBe2f4ee072017-02-01 21:42:32 +0100163
164 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700165 - lf-infra-pre-build
JulienBe2f4ee072017-02-01 21:42:32 +0100166 - provide-maven-settings:
167 global-settings-file: 'global-settings'
168 settings-file: '{mvn-settings}'
169
JulienBe5641aa02017-02-17 01:08:38 -0800170 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800171 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800172 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400173 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBe5641aa02017-02-17 01:08:38 -0800174 properties:
175 - '{maven-deploy-properties}'
Jessica Wagantall6223d1d2017-08-07 14:46:58 -0700176 java-opts:
177 - '-Xmx4096m -XX:MaxPermSize=512m'
JulienBe5641aa02017-02-17 01:08:38 -0800178 settings: '{mvn-settings}'
179 settings-type: cfp
180 global-settings: 'global-settings'
181 global-settings-type: cfp
182
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700183 publishers:
184 - infra-shiplogs:
185 maven-version: '{maven-version}'
186
JulienBe5641aa02017-02-17 01:08:38 -0800187- job-template:
JulienBe77903ed2017-07-17 15:30:26 +0200188 # Job template for Java daily release jobs running checkstyle at the end
189 # When checkstyle will be fully incorporated, it is meant to replace
190 # '{project-name}-{stream}-release-java-daily'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800191 #
192 # The purpose of this job template is to run:
193 # 1. maven clean deploy with Sonar scans
194 #
195 # This job publishes checkstyle results.
196 # This job uses a conditional regex match step to set versions.
JulienBe77903ed2017-07-17 15:30:26 +0200197 #
198 # Required Variables:
199 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800200
JulienBe77903ed2017-07-17 15:30:26 +0200201 name: '{project-name}-{stream}-release-java-daily-checkstyle'
202 project-type: freestyle
203 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700204 disabled: '{disabled}'
JulienBe77903ed2017-07-17 15:30:26 +0200205 maven-deploy-properties:
206 properties:
207 - infra-properties:
208 build-days-to-keep: '{build-days-to-keep}'
209 parameters:
210 - infra-parameters:
211 project: '{project}'
212 branch: '{branch}'
213 refspec: 'refs/heads/{branch}'
214 artifacts: '{archive-artifacts}'
215 - maven-exec:
216 maven-version: '{maven-version}'
217 scm:
218 - gerrit-trigger-scm:
219 refspec: ''
220 choosing-strategy: 'default'
221 submodule-recursive: '{submodule-recursive}'
222 wrappers:
223 - infra-wrappers:
224 build-timeout: '{build-timeout}'
225 triggers:
226 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700227 - timed: '@daily'
JulienBe77903ed2017-07-17 15:30:26 +0200228 - gerrit-trigger-release-manually:
229 server: '{server-name}'
230 project: '{project}'
231 branch: '{branch}'
232 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700233 - lf-infra-pre-build
JulienBe77903ed2017-07-17 15:30:26 +0200234 - provide-maven-settings:
235 global-settings-file: 'global-settings'
236 settings-file: '{mvn-settings}'
JulienBed91a33a2017-09-25 15:56:34 +0200237 - conditional-step:
238 condition-kind: regex-match
239 regex: DoSetVersion
240 label: '{setVersion}'
241 steps:
242 - inject:
243 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700244 - maven-set-release-version:
JulienBed91a33a2017-09-25 15:56:34 +0200245 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700246 mvn-settings: '{mvn-settings}'
247 pom:
JulienBe77903ed2017-07-17 15:30:26 +0200248 - maven-target:
249 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800250 goals: 'clean deploy -B
JulienBe77903ed2017-07-17 15:30:26 +0200251 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBec9d90e22017-08-08 10:44:10 +0200252 properties: '{obj:mvn_properties}'
JulienBe77903ed2017-07-17 15:30:26 +0200253 settings: '{mvn-settings}'
254 settings-type: cfp
255 global-settings: 'global-settings'
256 global-settings-type: cfp
257 publishers:
258 - infra-shiplogs:
259 maven-version: '{maven-version}'
260 - checkstyle-result-daily
261
262- job-template:
JulienBe5641aa02017-02-17 01:08:38 -0800263 # Job template for Java daily release jobs
264 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800265 # The purpose of this job template is to run:
266 # 1. maven set versions
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800267 # 2. maven clean deploy with Sonar scans
Pamela Dragosh55ceb8f2017-05-23 12:23:16 -0400268 #
269 # Required Variables:
270 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800271
JulienBe5641aa02017-02-17 01:08:38 -0800272 name: '{project-name}-{stream}-release-version-java-daily'
273
274 project-type: freestyle
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700275 disabled: '{disabled}'
JulienBe5641aa02017-02-17 01:08:38 -0800276 node: '{build-node}'
277 maven-deploy-properties:
278 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700279 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800280 build-days-to-keep: '{build-days-to-keep}'
281
282 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700283 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800284 project: '{project}'
285 branch: '{branch}'
286 refspec: 'refs/heads/{branch}'
287 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800288 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800289 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800290
291 scm:
292 - gerrit-trigger-scm:
293 refspec: ''
294 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500295 submodule-recursive: '{submodule-recursive}'
JulienBe5641aa02017-02-17 01:08:38 -0800296
297 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700298 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800299 build-timeout: '{build-timeout}'
300
301 triggers:
302 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700303 - timed: '@daily'
JulienBe5641aa02017-02-17 01:08:38 -0800304 - gerrit-trigger-release-manually:
305 server: '{server-name}'
306 project: '{project}'
307 branch: '{branch}'
308
309 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700310 - lf-infra-pre-build
JulienBe5641aa02017-02-17 01:08:38 -0800311 - provide-maven-settings:
312 global-settings-file: 'global-settings'
313 settings-file: '{mvn-settings}'
314
JulienBe2f4ee072017-02-01 21:42:32 +0100315 - inject:
316 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700317 - maven-set-release-version:
Andrew Grimberge2465882017-02-24 12:38:05 -0800318 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700319 mvn-settings: '{mvn-settings}'
320 pom:
JulienBe2f4ee072017-02-01 21:42:32 +0100321
322 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800323 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800324 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400325 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800326 properties:
327 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100328 settings: '{mvn-settings}'
329 settings-type: cfp
330 global-settings: 'global-settings'
331 global-settings-type: cfp
332
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700333 publishers:
334 - infra-shiplogs:
335 maven-version: '{maven-version}'
336
Gary Wu6c702772018-08-06 18:48:02 -0700337- job-template: &merge_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800338 # Job template for Java merge jobs
339 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800340 # The purpose of this job template is to run:
341 # 1. maven clean deploy
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800342 #
343 # Required Variables:
344 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800345
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800346 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800347
348 project-type: freestyle
349 node: '{build-node}'
Gary Wu6c702772018-08-06 18:48:02 -0700350 pattern: '**'
351 pom:
352 mvn_properties: []
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700353 mvn-params: ''
Houa Yangb7778e62019-09-03 13:23:05 -0500354 mvn-opts: ''
355 java-opts: ''
Jessica Wagantall52360d62019-11-08 15:32:58 -0800356 java-version: openjdk8
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800357
358 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700359 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800360 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800361
362 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700363 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800364 project: '{project}'
365 branch: '{branch}'
366 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800367 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800368 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800369 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800370
371 scm:
372 - gerrit-trigger-scm:
373 refspec: ''
374 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500375 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800376
377 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700378 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800379 build-timeout: '{build-timeout}'
380
381 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800382 - gerrit-trigger-patch-merged:
383 server: '{server-name}'
384 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800385 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800386 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800387
388 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700389 - lf-infra-pre-build
Jessica Wagantall52360d62019-11-08 15:32:58 -0800390 - lf-update-java-alternatives:
391 java-version: "{java-version}"
Cristina Paunab4d24a62019-09-12 20:50:02 +0300392 - provide-maven-settings:
393 global-settings-file: 'global-settings'
394 settings-file: '{mvn-settings}'
Cristina Pauna42c1f522019-09-11 17:45:06 +0300395 - conditional-step:
396 condition-kind: regex-match
397 regex: .*(amd64|arm64).*
398 label: '{project-name}'
399 steps:
400 - shell: !include-raw-escape: global-jjb/shell/docker-login.sh
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800401 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800402 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -0700403 pom: '{obj:pom}'
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700404 goals: 'clean deploy -B {mvn-params}
Andrew Grimberge55b6222017-05-03 16:19:28 -0400405 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Houa Yangb7778e62019-09-03 13:23:05 -0500406 properties:
407 - MAVEN_OPTS='{mvn-opts}'
408 java-opts:
409 - "{java-opts}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800410 settings: '{mvn-settings}'
411 settings-type: cfp
412 global-settings: 'global-settings'
413 global-settings-type: cfp
Gary Wu6c702772018-08-06 18:48:02 -0700414 properties: '{obj:mvn_properties}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800415
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700416 publishers:
417 - infra-shiplogs:
418 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100419
420- job-template:
Gary Wu6c702772018-08-06 18:48:02 -0700421 # Job template for Java merge jobs based on
422 # '{project-name}-{stream}-merge-java'
423 # The purpose of this job template is to run:
424 # 1. maven clean deploy
425 #
426 # This project supports maven properties.
427 #
428 # Required Variables:
429 # branch: git branch (eg. stable/lithium or master)
430 # maven-properties: properties passed to maven
431
432 <<: *merge_java_defaults
433 name: '{project-name}-{stream}-merge-properties-java'
434
435- job-template:
436 # Job template for Java merge jobs that takes a maven template
437 #
438 # The purpose of this job template is to run:
439 # 1. maven clean deploy -P {mvn-profile}
440 #
441 # Required Variables:
442 # branch: git branch (eg. stable/lithium or master)
443
444 <<: *merge_java_defaults
445 name: '{project-name}-{stream}-merge-profile-java'
446
447 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700448 - lf-infra-pre-build
Gary Wu6c702772018-08-06 18:48:02 -0700449 - provide-maven-settings:
450 global-settings-file: 'global-settings'
451 settings-file: '{mvn-settings}'
452
453 - docker-login
454
455 - maven-target:
456 maven-version: '{maven-version}'
457 goals: 'clean deploy -P {mvn-profile} -B
458 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
459 settings: '{mvn-settings}'
460 settings-type: cfp
461 global-settings: 'global-settings'
462 global-settings-type: cfp
463 properties:
464 - docker.pull.registry=nexus3.onap.org:10001
465 - docker.push.registry=nexus3.onap.org:10003
466
467- job-template:
468 # Job template for Java merge jobs with POM not at the root
469 #
470 # The purpose of this job template is to run:
471 # 1. maven clean deploy
472 #
473 # This job supports subprojects.
474 #
475 # Required Variables:
476 # branch: git branch (eg. stable/lithium or master)
477 # pom: name/location of the pom.xml file relative to the workspace
478 # pattern: ant file-path pattern relative to the workspace used to
479 # trigger the job
480
481 <<: *merge_java_defaults
482 name: '{project-name}-{stream}-{subproject}-merge-java'
483
Gary Wu350fbcb2018-08-07 11:13:59 -0700484- job-template: &docker_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800485 # Job template for Docker daily jobs
486 #
487 # The purpose of this job template is to run:
488 # 1. login to the docker registry
489 # 2. docker push
490 #
491 # Required Variables:
492 # branch: git branch (eg. stable/lithium or master)
493
Anaël Clossonabbafb52017-02-09 17:55:10 +0100494 name: '{project-name}-{stream}-docker-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700495 id: '{project-name}-{stream}-docker-java-daily'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100496 project-type: freestyle
Jessica Wagantall34e6d6b2018-11-08 12:43:06 -0800497 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700498 disabled: '{disabled}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100499 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700500 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100501 build-days-to-keep: '{build-days-to-keep}'
502
503 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700504 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100505 project: '{project}'
506 branch: '{branch}'
507 refspec: 'refs/heads/{branch}'
508 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800509 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800510 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700511 - maven-params:
512 mvn-params: '{mvn-params}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100513
514 scm:
515 - gerrit-trigger-scm:
516 refspec: ''
517 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500518 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100519
Anaël Clossonabbafb52017-02-09 17:55:10 +0100520 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700521 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100522 build-timeout: '{build-timeout}'
523
524 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800525 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700526 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800527 - gerrit-trigger-release-manually:
528 server: '{server-name}'
529 project: '{project}'
530 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100531
532 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700533 - lf-infra-pre-build
Anaël Clossonabbafb52017-02-09 17:55:10 +0100534 - provide-maven-settings:
535 global-settings-file: 'global-settings'
536 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100537
Anaël Closson63e090e2017-02-15 14:50:45 +0100538 - docker-login
539
Anaël Clossonabbafb52017-02-09 17:55:10 +0100540 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800541 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100542 mvn-settings: '{mvn-settings}'
543 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100544 # use default as mvn-profile if profile is not needed
545 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700546 mvn-params: '{mvn-params}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500547
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700548 publishers:
549 - infra-shiplogs:
550 maven-version: '{maven-version}'
551
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500552- job-template:
Gary Wu9e9210f2018-07-18 16:19:20 -0700553 # Job template for Docker daily jobs
554 #
555 # The purpose of this job template is to run:
556 # 1. login to the docker registry
557 # 2. docker push
558 #
559 # Required Variables:
560 # branch: git branch (eg. stable/lithium or master)
561
Gary Wu350fbcb2018-08-07 11:13:59 -0700562 <<: *docker_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700563 name: '{project-name}-{stream}-docker-java-daily'
564 id: docker-java-daily
Gary Wu9e9210f2018-07-18 16:19:20 -0700565 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700566 wrappers:
567 - infra-wrappers-docker-build:
568 build-timeout: '{build-timeout}'
569
Gary Wu9e9210f2018-07-18 16:19:20 -0700570- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +0200571 # Job template for building & pushing docker images
572 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800573 # The purpose of this job template is to run:
JulienBe91c56ec2017-06-21 23:37:39 +0200574 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800575 # 2. run a specified shell builder
576 #
577 # Required Variables:
578 # pom: name/location of the pom.xml file relative to the workspace
579 # maven-properties: properties passed to maven
580
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500581 name: '{project-name}-{stream}-docker-java-shell-daily'
582 project-type: freestyle
Jessica Wagantallfe5efea2018-08-07 16:02:39 -0700583 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700584 disabled: '{disabled}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500585 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700586 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500587 build-days-to-keep: '{build-days-to-keep}'
588
589 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700590 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500591 project: '{project}'
592 branch: '{branch}'
593 refspec: 'refs/heads/{branch}'
594 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800595 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800596 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500597
598 scm:
599 - gerrit-trigger-scm:
600 refspec: ''
601 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500602 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500603
604 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700605 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500606 build-timeout: '{build-timeout}'
607
608 triggers:
609 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700610 - timed: '@daily'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500611 - gerrit-trigger-release-manually:
612 server: '{server-name}'
613 project: '{project}'
614 branch: '{branch}'
615
616 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700617 - lf-infra-pre-build
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500618 - provide-maven-settings:
619 global-settings-file: 'global-settings'
620 settings-file: '{mvn-settings}'
621
622 - docker-login
623
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500624 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800625 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500626 goals: '{mvn-goals}'
627 settings: '{mvn-settings}'
628 settings-type: cfp
629 global-settings: 'global-settings'
630 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500631
632 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000633
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700634 publishers:
635 - infra-shiplogs:
636 maven-version: '{maven-version}'
637
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000638- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800639 # Job template for building & pushing docker images
640 #
641 # The purpose of this job template is to run:
642 # 1. login to the docker registry
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700643 # 2. run a specified shell builder
644 #
645 # Required Variables:
646 # pom: name/location of the pom.xml file relative to the workspace
647 # maven-properties: properties passed to maven
648
649 name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily'
650 project-type: freestyle
651 node: '{build-node}'
652 disabled: '{disabled}'
653 properties:
654 - infra-properties:
655 build-days-to-keep: '{build-days-to-keep}'
656
657 parameters:
658 - infra-parameters:
659 project: '{project}'
660 branch: '{branch}'
661 refspec: 'refs/heads/{branch}'
662 artifacts: '{archive-artifacts}'
663 - maven-exec:
664 maven-version: '{maven-version}'
665
666 scm:
667 - gerrit-trigger-scm:
668 refspec: ''
669 choosing-strategy: 'default'
670 submodule-recursive: '{submodule-recursive}'
671
672 wrappers:
673 - infra-wrappers:
674 build-timeout: '{build-timeout}'
675
676 triggers:
677 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700678 - timed: '@daily'
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700679 - gerrit-trigger-release-manually:
680 server: '{server-name}'
681 project: '{project}'
682 branch: '{branch}'
683
684 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700685 - lf-infra-pre-build
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700686 - provide-maven-settings:
687 global-settings-file: 'global-settings'
688 settings-file: '{mvn-settings}'
689
690 - docker-login
691
692 - maven-target:
693 maven-version: '{maven-version}'
694 pom: '{pom}'
695 goals: '{mvn-goals}'
696 settings: '{mvn-settings}'
697 settings-type: cfp
698 global-settings: 'global-settings'
699 global-settings-type: cfp
700
701 - shell: '{script}'
702
703 publishers:
704 - infra-shiplogs:
705 maven-version: '{maven-version}'
706
707- job-template:
708 # Job template for building & pushing docker images
709 #
710 # The purpose of this job template is to run:
711 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800712 # 2. inject a version.properties file and set versions
713 # 3. run a specified shell builder
714 #
715 # Required Variables:
716 # pom: name/location of the pom.xml file relative to the workspace
717 # maven-properties: properties passed to maven
718
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400719 name: '{project-name}-{stream}-docker-java-version-shell-daily'
720 project-type: freestyle
Jessica Wagantalld50aa192018-11-08 13:03:33 -0800721 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700722 disabled: '{disabled}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400723 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700724 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400725 build-days-to-keep: '{build-days-to-keep}'
726
727 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700728 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400729 project: '{project}'
730 branch: '{branch}'
731 refspec: 'refs/heads/{branch}'
732 artifacts: '{archive-artifacts}'
733 - maven-exec:
734 maven-version: '{maven-version}'
735
736 scm:
737 - gerrit-trigger-scm:
738 refspec: ''
739 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500740 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400741
742 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700743 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400744 build-timeout: '{build-timeout}'
745
746 triggers:
747 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700748 - timed: '@daily'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400749 - gerrit-trigger-release-manually:
750 server: '{server-name}'
751 project: '{project}'
752 branch: '{branch}'
753
754 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700755 - lf-infra-pre-build
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400756 - provide-maven-settings:
757 global-settings-file: 'global-settings'
758 settings-file: '{mvn-settings}'
759
760 - inject:
761 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700762 - maven-set-release-version:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400763 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700764 mvn-settings: '{mvn-settings}'
765 pom:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400766
767 - docker-login
768
769 - maven-target:
770 maven-version: '{maven-version}'
771 goals: '{mvn-goals}'
772 settings: '{mvn-settings}'
773 settings-type: cfp
774 global-settings: 'global-settings'
775 global-settings-type: cfp
776
777 - shell: '{script}'
778
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700779 publishers:
780 - infra-shiplogs:
781 maven-version: '{maven-version}'
782
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400783- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800784 # Job template for building & pushing docker images
785 #
786 # The purpose of this job template is to run:
787 # 1. login to the docker registry
788 # 2. inject a version.properties file and set versions
789 # 3. run a specified shell builder
790 #
791 # This template supports subprojects.
792 #
793 # Required Variables:
794 # pom: name/location of the pom.xml file relative to the workspace
795 # maven-properties: properties passed to maven
796
Zhaoxing49773042017-10-13 17:14:35 +0800797 name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
798 project-type: freestyle
799 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700800 disabled: '{disabled}'
Zhaoxing49773042017-10-13 17:14:35 +0800801 properties:
802 - infra-properties:
803 build-days-to-keep: '{build-days-to-keep}'
804
805 parameters:
806 - infra-parameters:
807 project: '{project}'
808 branch: '{branch}'
809 refspec: 'refs/heads/{branch}'
810 artifacts: '{archive-artifacts}'
811 - maven-exec:
812 maven-version: '{maven-version}'
813
814 scm:
815 - gerrit-trigger-scm:
816 refspec: ''
817 choosing-strategy: 'default'
818 submodule-recursive: '{submodule-recursive}'
819
820 wrappers:
821 - infra-wrappers:
822 build-timeout: '{build-timeout}'
823
824 triggers:
825 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700826 - timed: '@daily'
Zhaoxing49773042017-10-13 17:14:35 +0800827 - gerrit-trigger-release-manually:
828 server: '{server-name}'
829 project: '{project}'
830 branch: '{branch}'
831
832 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700833 - lf-infra-pre-build
Zhaoxing49773042017-10-13 17:14:35 +0800834 - provide-maven-settings:
835 global-settings-file: 'global-settings'
836 settings-file: '{mvn-settings}'
837
838 - inject:
839 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700840 - maven-set-release-version:
Zhaoxing49773042017-10-13 17:14:35 +0800841 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700842 mvn-settings: '{mvn-settings}'
Zhaoxing49773042017-10-13 17:14:35 +0800843 pom: '{pom}'
Zhaoxing49773042017-10-13 17:14:35 +0800844
845 - docker-login
846
847 - maven-target:
848 maven-version: '{maven-version}'
849 pom: '{pom}'
850 goals: '{mvn-goals}'
851 settings: '{mvn-settings}'
852 settings-type: cfp
853 global-settings: 'global-settings'
854 global-settings-type: cfp
855
856 - shell: '{script}'
857
858 publishers:
859 - infra-shiplogs:
860 maven-version: '{maven-version}'
861
Gary Wu350fbcb2018-08-07 11:13:59 -0700862- job-template: &docker_version_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800863 # Job template for building & pushing docker images
864 #
865 # The purpose of this job template is to run:
866 # 1. login to the docker registry
867 # 2. inject a version.properties file and set versions
868 # 3. run a docker push
869 #
870 # Required Variables:
871 # pom: name/location of the pom.xml file relative to the workspace
872 # profile: the docker profile defined in the pom
873 # maven-properties: properties passed to maven
874
Patrick Brady39f388a2017-03-09 11:26:59 -0800875 name: '{project-name}-{stream}-docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700876 id: '{project-name}-{stream}-docker-version-java-daily'
Patrick Brady39f388a2017-03-09 11:26:59 -0800877 project-type: freestyle
Paul Vaduva6dd88542018-12-11 16:59:12 +0100878 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700879 disabled: '{disabled}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800880 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700881 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -0800882 build-days-to-keep: '{build-days-to-keep}'
883
884 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700885 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -0800886 project: '{project}'
887 branch: '{branch}'
888 refspec: 'refs/heads/{branch}'
889 artifacts: '{archive-artifacts}'
890 - maven-exec:
891 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700892 - maven-params:
893 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800894
895 scm:
896 - gerrit-trigger-scm:
897 refspec: ''
898 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500899 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800900
901 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700902 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -0800903 build-timeout: '{build-timeout}'
904
905 triggers:
906 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700907 - timed: '@daily'
Patrick Brady39f388a2017-03-09 11:26:59 -0800908 - gerrit-trigger-release-manually:
909 server: '{server-name}'
910 project: '{project}'
911 branch: '{branch}'
912
913 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700914 - lf-infra-pre-build
Patrick Brady39f388a2017-03-09 11:26:59 -0800915 - provide-maven-settings:
916 global-settings-file: 'global-settings'
917 settings-file: '{mvn-settings}'
918
919 - inject:
920 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700921 - maven-set-release-version:
Patrick Brady39f388a2017-03-09 11:26:59 -0800922 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700923 mvn-settings: '{mvn-settings}'
924 pom:
Patrick Brady39f388a2017-03-09 11:26:59 -0800925
926 - docker-login
927
928 - maven-docker-push-daily:
929 maven-version: '{maven-version}'
930 mvn-settings: '{mvn-settings}'
931 pom: '{docker-pom}'
932 # use default as mvn-profile if profile is not needed
933 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700934 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800935
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700936 publishers:
937 - infra-shiplogs:
938 maven-version: '{maven-version}'
939
Patrick Brady39f388a2017-03-09 11:26:59 -0800940- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800941 # Job template for building & pushing docker images
942 #
943 # The purpose of this job template is to run:
Gary Wu9e9210f2018-07-18 16:19:20 -0700944 # 1. login to the docker registry
945 # 2. inject a version.properties file and set versions
946 # 3. run a docker push
947 #
948 # Required Variables:
949 # pom: name/location of the pom.xml file relative to the workspace
950 # profile: the docker profile defined in the pom
951 # maven-properties: properties passed to maven
952
Gary Wu350fbcb2018-08-07 11:13:59 -0700953 <<: *docker_version_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700954 name: '{project-name}-{stream}-docker-version-java-daily'
955 id: 'docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700956 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700957 wrappers:
958 - infra-wrappers-docker-build:
959 build-timeout: '{build-timeout}'
960
Zhaoxing49773042017-10-13 17:14:35 +0800961- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800962 # Job template for building & pushing docker images for AAI specific repos
963 #
964 # The purpose of this job template is to run:
965 # 1. login to the docker registry
966 # 2. run maven goals
967 # 3. run include-docker-push.sh
968 #
969 # Required Variables:
970 # pom: name/location of the pom.xml file relative to the workspace
971 # maven-properties: properties passed to maven
972
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000973 name: '{project-name}-{stream}-aai-docker-java-daily'
974 project-type: freestyle
Jessica Wagantallab30bf62018-11-08 12:20:48 -0800975 node: '{build-node}'
Gary Wudc3f2952017-08-23 16:48:59 -0700976 docker-image-name: ''
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700977 disabled: '{disabled}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000978 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700979 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000980 build-days-to-keep: '{build-days-to-keep}'
981
982 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700983 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000984 project: '{project}'
985 branch: '{branch}'
986 refspec: 'refs/heads/{branch}'
987 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800988 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800989 maven-version: '{maven-version}'
Gary Wudc3f2952017-08-23 16:48:59 -0700990 - docker-image-name:
991 docker-image-name: '{docker-image-name}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000992
993 scm:
994 - gerrit-trigger-scm:
995 refspec: ''
996 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500997 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000998
999 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -07001000 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001001 build-timeout: '{build-timeout}'
1002
1003 triggers:
1004 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -07001005 - timed: '@daily'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001006 - gerrit-trigger-release-manually:
1007 server: '{server-name}'
1008 project: '{project}'
1009 branch: '{branch}'
1010
1011 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001012 - lf-infra-pre-build
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001013 - provide-maven-settings:
1014 global-settings-file: 'global-settings'
1015 settings-file: '{mvn-settings}'
1016
1017 - docker-login
1018
1019 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001020 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001021 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001022 goals: 'clean install -DskipTests -B
1023 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001024 settings: '{mvn-settings}'
1025 settings-type: cfp
1026 global-settings: 'global-settings'
1027 global-settings-type: cfp
1028
1029 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001030 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001031 pom: '{pom}'
1032 goals: '{mvn-goals}'
1033 settings: '{mvn-settings}'
1034 settings-type: cfp
1035 global-settings: 'global-settings'
1036 global-settings-type: cfp
1037 properties:
1038 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001039 - docker.pull.registry=nexus3.onap.org:10001
1040 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001041
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001042 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001043
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001044 publishers:
1045 - infra-shiplogs:
1046 maven-version: '{maven-version}'
1047
Carsten Lund2d06a692017-02-23 18:23:07 +00001048- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001049 # Job template for Java merge jobs for SDC specific repos
ig61339fdb9d22017-04-03 17:47:19 +03001050 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001051 # The purpose of this job template is to run:
1052 # 1. maven clean deploy
ig61339fdb9d22017-04-03 17:47:19 +03001053 #
1054 # Required Variables:
1055 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001056
Gary Wu6c702772018-08-06 18:48:02 -07001057 <<: *merge_java_defaults
ig61339fdb9d22017-04-03 17:47:19 +03001058 name: '{project-name}-{stream}-sdc-merge-java'
1059
Paul Vaduva3aebd312019-02-01 13:35:21 +01001060 node: '{build-node}'
Jessica Wagantall9a89de42018-04-18 11:35:17 -07001061 build-timeout: 120
ig61339fdb9d22017-04-03 17:47:19 +03001062
ig61339fdb9d22017-04-03 17:47:19 +03001063 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001064 - lf-infra-pre-build
ig61339fdb9d22017-04-03 17:47:19 +03001065 - provide-maven-settings:
1066 global-settings-file: 'global-settings'
1067 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001068
1069 - docker-login
1070
Gary Wu6c702772018-08-06 18:48:02 -07001071 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001072 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001073 mvn-settings: '{mvn-settings}'
1074 pom: '{docker-pom}'
1075 # use default as mvn-profile if profile is not needed
1076 mvn-profile: '{mvn-profile}'
Gary Wu6c702772018-08-06 18:48:02 -07001077 mvn-params: ''
Bengt Thuree1515daa2019-09-10 13:39:04 +02001078
1079- job-template:
1080 # Job template for Java merge jobs on multiple architectures
1081 #
1082 # The purpose of this job template is to:
1083 # 1. Run parallel {project-name}-{stream}-verify-java jobs for each supported architecture
1084 # 2. Build and push a docker manifest list for the images created by
1085 # the previous jobs
1086
1087 name: '{project-name}-multiarch-{stream}-merge-java'
1088 node: '{build-node}'
1089 project-type: multijob
1090 disabled: '{obj:disabled}'
1091 pattern: '**'
1092
1093 parameters:
1094 - lf-infra-parameters:
1095 project: '{project}'
1096 stream: '{stream}'
1097 branch: '{branch}'
1098 - string:
1099 name: DOCKER_REGISTRY
1100 default: 'none'
1101 - string:
1102 name: DOCKERHUB_REGISTRY
1103 default: 'registry-1.docker.io'
1104
1105 properties:
1106 - throttle:
1107 max-per-node: 1
1108 option: 'project'
1109 - build-blocker:
1110 use-build-blocker: true
1111 blocking-jobs:
1112 - '{project-name}-.*-merge-.*'
1113 blocking-level: 'NODE'
1114
1115 scm:
1116 - gerrit-trigger-scm:
1117 refspec: ''
1118 choosing-strategy: 'default'
1119 submodule-recursive: '{submodule-recursive}'
1120
1121 wrappers:
1122 - infra-wrappers:
1123 build-timeout: '{build-timeout}'
1124
1125 triggers:
1126 - gerrit-trigger-patch-merged:
1127 server: '{server-name}'
1128 project: '{project}'
1129 branch: '{branch}'
1130 files: '{pattern}'
1131
1132 builders:
1133 - multijob:
1134 name: 'build docker images'
1135 condition: ALWAYS
1136 execution-type: PARALLEL
1137 projects:
1138 - name: '{project-name}-amd64-{stream}-merge-java'
1139 kill-phase-on: FAILURE
1140 current-parameters: true
1141 - name: '{project-name}-arm64-{stream}-merge-java'
1142 kill-phase-on: NEVER
1143 current-parameters: true
1144 - multijob:
1145 name: 'publish docker manifest'
1146 condition: SUCCESSFUL
1147 execution-type: PARALLEL
1148 projects:
1149 - name: '{project-name}-docker-manifest-{stream}'
1150 current-parameters: true
1151 predefined-parameters: |
1152 PARENT_JOB_NAME=$JOB_NAME
1153 DOCKERHUB_REGISTRY=docker.io