blob: 0995147dbcc59caf9c53ecec4ebbdff3e83d3168 [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: ''
Andrew Grimbergebc710a2017-01-30 12:59:38 -080021 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070022 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080023 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080024
25 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070026 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080027 project: '{project}'
28 branch: '{branch}'
29 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080030 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080031 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080032 maven-version: '{maven-version}'
Jessica Wagantalld25908c2018-03-28 12:06:39 -070033 - maven-params:
34 mvn-params: '{mvn-params}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080035
36 scm:
37 - gerrit-trigger-scm:
38 refspec: '$GERRIT_REFSPEC'
39 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050040 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080041
42 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070043 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080044 build-timeout: '{build-timeout}'
45
46 triggers:
47 - gerrit-trigger-patch-submitted:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080048 server: '{server-name}'
49 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080050 branch: '{branch}'
Gary Wu5918acd2018-08-06 16:42:21 -070051 files: '{obj:pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080052
53 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070054 - lf-infra-pre-build
Andrew Grimbergebc710a2017-01-30 12:59:38 -080055 - provide-maven-settings:
56 global-settings-file: 'global-settings'
57 settings-file: '{mvn-settings}'
Jessica Wagantall993e5362019-08-30 14:40:34 -070058 - inject:
59 properties-content: "{build-env-variables}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080060 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -080061 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -070062 pom: '{obj:pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -040063 goals: 'clean install -B
Jessica Wagantalld25908c2018-03-28 12:06:39 -070064 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn {mvn-params}'
Jessica Wagantall5b0faff2019-08-30 12:45:08 -070065 properties:
66 - MAVEN_OPTS='{mvn-opts}'
67 java-opts:
68 - "{java-opts}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080069 settings: '{mvn-settings}'
70 settings-type: cfp
71 global-settings: 'global-settings'
72 global-settings-type: cfp
73
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070074 publishers:
75 - infra-shiplogs:
76 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080077
78- job-template:
JulienBe77903ed2017-07-17 15:30:26 +020079 # Job template for Java verify jobs running checkstyle at the end
80 # When checkstyle will be fully incorporated, it is meant to replace
81 # '{project-name}-{stream}-verify-java-checkstyle'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080082 #
83 # The purpose of this job template is to run:
84 # 1. maven clean install
85 #
86 # This job publishes checkstyle results.
JulienBe77903ed2017-07-17 15:30:26 +020087 #
88 # Required Variables:
89 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080090
Gary Wu6c702772018-08-06 18:48:02 -070091 <<: *verify_java_defaults
JulienBe77903ed2017-07-17 15:30:26 +020092 name: '{project-name}-{stream}-verify-java-checkstyle'
JulienBe77903ed2017-07-17 15:30:26 +020093 publishers:
94 - infra-shiplogs:
95 maven-version: '{maven-version}'
96 - checkstyle-result
97
98- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080099 # Job template for Java verify jobs with POM not at the root
100 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800101 # The purpose of this job template is to run:
102 # 1. maven clean install
103 #
104 # This job supports subprojects.
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800105 #
106 # Required Variables:
107 # branch: git branch (eg. stable/lithium or master)
108 # pom: name/location of the pom.xml file relative to the workspace
109 # pattern: ant file-path pattern relative to the workspace used to
110 # trigger the job
111
Gary Wu6c702772018-08-06 18:48:02 -0700112 <<: *verify_java_defaults
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800113 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800114
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800115- job-template:
JulienBe2f4ee072017-02-01 21:42:32 +0100116 # Job template for Java daily release jobs
117 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800118 # The purpose of this job template is to run:
119 # 1. maven clean deploy with Sonar scans
JulienBe2f4ee072017-02-01 21:42:32 +0100120 #
121 # Required Variables:
122 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800123
JulienBe2f4ee072017-02-01 21:42:32 +0100124 name: '{project-name}-{stream}-release-java-daily'
125
126 project-type: freestyle
127 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700128 disabled: '{disabled}'
JulienBe2f4ee072017-02-01 21:42:32 +0100129 maven-deploy-properties:
130 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700131 - infra-properties:
JulienBe2f4ee072017-02-01 21:42:32 +0100132 build-days-to-keep: '{build-days-to-keep}'
133
134 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700135 - infra-parameters:
JulienBe2f4ee072017-02-01 21:42:32 +0100136 project: '{project}'
137 branch: '{branch}'
138 refspec: 'refs/heads/{branch}'
139 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800140 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800141 maven-version: '{maven-version}'
JulienBe2f4ee072017-02-01 21:42:32 +0100142
143 scm:
144 - gerrit-trigger-scm:
145 refspec: ''
146 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500147 submodule-recursive: '{submodule-recursive}'
JulienBe2f4ee072017-02-01 21:42:32 +0100148
149 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700150 - infra-wrappers:
JulienBe2f4ee072017-02-01 21:42:32 +0100151 build-timeout: '{build-timeout}'
152
153 triggers:
154 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700155 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800156 - gerrit-trigger-release-manually:
157 server: '{server-name}'
158 project: '{project}'
159 branch: '{branch}'
JulienBe2f4ee072017-02-01 21:42:32 +0100160
161 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700162 - lf-infra-pre-build
JulienBe2f4ee072017-02-01 21:42:32 +0100163 - provide-maven-settings:
164 global-settings-file: 'global-settings'
165 settings-file: '{mvn-settings}'
166
JulienBe5641aa02017-02-17 01:08:38 -0800167 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800168 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800169 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400170 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBe5641aa02017-02-17 01:08:38 -0800171 properties:
172 - '{maven-deploy-properties}'
Jessica Wagantall6223d1d2017-08-07 14:46:58 -0700173 java-opts:
174 - '-Xmx4096m -XX:MaxPermSize=512m'
JulienBe5641aa02017-02-17 01:08:38 -0800175 settings: '{mvn-settings}'
176 settings-type: cfp
177 global-settings: 'global-settings'
178 global-settings-type: cfp
179
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700180 publishers:
181 - infra-shiplogs:
182 maven-version: '{maven-version}'
183
JulienBe5641aa02017-02-17 01:08:38 -0800184- job-template:
JulienBe77903ed2017-07-17 15:30:26 +0200185 # Job template for Java daily release jobs running checkstyle at the end
186 # When checkstyle will be fully incorporated, it is meant to replace
187 # '{project-name}-{stream}-release-java-daily'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800188 #
189 # The purpose of this job template is to run:
190 # 1. maven clean deploy with Sonar scans
191 #
192 # This job publishes checkstyle results.
193 # This job uses a conditional regex match step to set versions.
JulienBe77903ed2017-07-17 15:30:26 +0200194 #
195 # Required Variables:
196 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800197
JulienBe77903ed2017-07-17 15:30:26 +0200198 name: '{project-name}-{stream}-release-java-daily-checkstyle'
199 project-type: freestyle
200 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700201 disabled: '{disabled}'
JulienBe77903ed2017-07-17 15:30:26 +0200202 maven-deploy-properties:
203 properties:
204 - infra-properties:
205 build-days-to-keep: '{build-days-to-keep}'
206 parameters:
207 - infra-parameters:
208 project: '{project}'
209 branch: '{branch}'
210 refspec: 'refs/heads/{branch}'
211 artifacts: '{archive-artifacts}'
212 - maven-exec:
213 maven-version: '{maven-version}'
214 scm:
215 - gerrit-trigger-scm:
216 refspec: ''
217 choosing-strategy: 'default'
218 submodule-recursive: '{submodule-recursive}'
219 wrappers:
220 - infra-wrappers:
221 build-timeout: '{build-timeout}'
222 triggers:
223 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700224 - timed: '@daily'
JulienBe77903ed2017-07-17 15:30:26 +0200225 - gerrit-trigger-release-manually:
226 server: '{server-name}'
227 project: '{project}'
228 branch: '{branch}'
229 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700230 - lf-infra-pre-build
JulienBe77903ed2017-07-17 15:30:26 +0200231 - provide-maven-settings:
232 global-settings-file: 'global-settings'
233 settings-file: '{mvn-settings}'
JulienBed91a33a2017-09-25 15:56:34 +0200234 - conditional-step:
235 condition-kind: regex-match
236 regex: DoSetVersion
237 label: '{setVersion}'
238 steps:
239 - inject:
240 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700241 - maven-set-release-version:
JulienBed91a33a2017-09-25 15:56:34 +0200242 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700243 mvn-settings: '{mvn-settings}'
244 pom:
JulienBe77903ed2017-07-17 15:30:26 +0200245 - maven-target:
246 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800247 goals: 'clean deploy -B
JulienBe77903ed2017-07-17 15:30:26 +0200248 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBec9d90e22017-08-08 10:44:10 +0200249 properties: '{obj:mvn_properties}'
JulienBe77903ed2017-07-17 15:30:26 +0200250 settings: '{mvn-settings}'
251 settings-type: cfp
252 global-settings: 'global-settings'
253 global-settings-type: cfp
254 publishers:
255 - infra-shiplogs:
256 maven-version: '{maven-version}'
257 - checkstyle-result-daily
258
259- job-template:
JulienBe5641aa02017-02-17 01:08:38 -0800260 # Job template for Java daily release jobs
261 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800262 # The purpose of this job template is to run:
263 # 1. maven set versions
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800264 # 2. maven clean deploy with Sonar scans
Pamela Dragosh55ceb8f2017-05-23 12:23:16 -0400265 #
266 # Required Variables:
267 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800268
JulienBe5641aa02017-02-17 01:08:38 -0800269 name: '{project-name}-{stream}-release-version-java-daily'
270
271 project-type: freestyle
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700272 disabled: '{disabled}'
JulienBe5641aa02017-02-17 01:08:38 -0800273 node: '{build-node}'
274 maven-deploy-properties:
275 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700276 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800277 build-days-to-keep: '{build-days-to-keep}'
278
279 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700280 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800281 project: '{project}'
282 branch: '{branch}'
283 refspec: 'refs/heads/{branch}'
284 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800285 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800286 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800287
288 scm:
289 - gerrit-trigger-scm:
290 refspec: ''
291 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500292 submodule-recursive: '{submodule-recursive}'
JulienBe5641aa02017-02-17 01:08:38 -0800293
294 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700295 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800296 build-timeout: '{build-timeout}'
297
298 triggers:
299 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700300 - timed: '@daily'
JulienBe5641aa02017-02-17 01:08:38 -0800301 - gerrit-trigger-release-manually:
302 server: '{server-name}'
303 project: '{project}'
304 branch: '{branch}'
305
306 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700307 - lf-infra-pre-build
JulienBe5641aa02017-02-17 01:08:38 -0800308 - provide-maven-settings:
309 global-settings-file: 'global-settings'
310 settings-file: '{mvn-settings}'
311
JulienBe2f4ee072017-02-01 21:42:32 +0100312 - inject:
313 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700314 - maven-set-release-version:
Andrew Grimberge2465882017-02-24 12:38:05 -0800315 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700316 mvn-settings: '{mvn-settings}'
317 pom:
JulienBe2f4ee072017-02-01 21:42:32 +0100318
319 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800320 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800321 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400322 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800323 properties:
324 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100325 settings: '{mvn-settings}'
326 settings-type: cfp
327 global-settings: 'global-settings'
328 global-settings-type: cfp
329
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700330 publishers:
331 - infra-shiplogs:
332 maven-version: '{maven-version}'
333
Gary Wu6c702772018-08-06 18:48:02 -0700334- job-template: &merge_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800335 # Job template for Java merge jobs
336 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800337 # The purpose of this job template is to run:
338 # 1. maven clean deploy
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800339 #
340 # Required Variables:
341 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800342
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800343 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800344
345 project-type: freestyle
346 node: '{build-node}'
Gary Wu6c702772018-08-06 18:48:02 -0700347 pattern: '**'
348 pom:
349 mvn_properties: []
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700350 mvn-params: ''
Houa Yangb7778e62019-09-03 13:23:05 -0500351 mvn-opts: ''
352 java-opts: ''
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800353
354 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700355 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800356 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800357
358 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700359 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800360 project: '{project}'
361 branch: '{branch}'
362 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800363 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800364 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800365 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800366
367 scm:
368 - gerrit-trigger-scm:
369 refspec: ''
370 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500371 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800372
373 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700374 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800375 build-timeout: '{build-timeout}'
376
377 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800378 - gerrit-trigger-patch-merged:
379 server: '{server-name}'
380 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800381 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800382 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800383
384 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700385 - lf-infra-pre-build
Cristina Paunab4d24a62019-09-12 20:50:02 +0300386 - provide-maven-settings:
387 global-settings-file: 'global-settings'
388 settings-file: '{mvn-settings}'
Cristina Pauna42c1f522019-09-11 17:45:06 +0300389 - conditional-step:
390 condition-kind: regex-match
391 regex: .*(amd64|arm64).*
392 label: '{project-name}'
393 steps:
394 - shell: !include-raw-escape: global-jjb/shell/docker-login.sh
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800395 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800396 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -0700397 pom: '{obj:pom}'
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700398 goals: 'clean deploy -B {mvn-params}
Andrew Grimberge55b6222017-05-03 16:19:28 -0400399 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Houa Yangb7778e62019-09-03 13:23:05 -0500400 properties:
401 - MAVEN_OPTS='{mvn-opts}'
402 java-opts:
403 - "{java-opts}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800404 settings: '{mvn-settings}'
405 settings-type: cfp
406 global-settings: 'global-settings'
407 global-settings-type: cfp
Gary Wu6c702772018-08-06 18:48:02 -0700408 properties: '{obj:mvn_properties}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800409
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700410 publishers:
411 - infra-shiplogs:
412 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100413
414- job-template:
Gary Wu6c702772018-08-06 18:48:02 -0700415 # Job template for Java merge jobs based on
416 # '{project-name}-{stream}-merge-java'
417 # The purpose of this job template is to run:
418 # 1. maven clean deploy
419 #
420 # This project supports maven properties.
421 #
422 # Required Variables:
423 # branch: git branch (eg. stable/lithium or master)
424 # maven-properties: properties passed to maven
425
426 <<: *merge_java_defaults
427 name: '{project-name}-{stream}-merge-properties-java'
428
429- job-template:
430 # Job template for Java merge jobs that takes a maven template
431 #
432 # The purpose of this job template is to run:
433 # 1. maven clean deploy -P {mvn-profile}
434 #
435 # Required Variables:
436 # branch: git branch (eg. stable/lithium or master)
437
438 <<: *merge_java_defaults
439 name: '{project-name}-{stream}-merge-profile-java'
440
441 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700442 - lf-infra-pre-build
Gary Wu6c702772018-08-06 18:48:02 -0700443 - provide-maven-settings:
444 global-settings-file: 'global-settings'
445 settings-file: '{mvn-settings}'
446
447 - docker-login
448
449 - maven-target:
450 maven-version: '{maven-version}'
451 goals: 'clean deploy -P {mvn-profile} -B
452 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
453 settings: '{mvn-settings}'
454 settings-type: cfp
455 global-settings: 'global-settings'
456 global-settings-type: cfp
457 properties:
458 - docker.pull.registry=nexus3.onap.org:10001
459 - docker.push.registry=nexus3.onap.org:10003
460
461- job-template:
462 # Job template for Java merge jobs with POM not at the root
463 #
464 # The purpose of this job template is to run:
465 # 1. maven clean deploy
466 #
467 # This job supports subprojects.
468 #
469 # Required Variables:
470 # branch: git branch (eg. stable/lithium or master)
471 # pom: name/location of the pom.xml file relative to the workspace
472 # pattern: ant file-path pattern relative to the workspace used to
473 # trigger the job
474
475 <<: *merge_java_defaults
476 name: '{project-name}-{stream}-{subproject}-merge-java'
477
Gary Wu350fbcb2018-08-07 11:13:59 -0700478- job-template: &docker_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800479 # Job template for Docker daily jobs
480 #
481 # The purpose of this job template is to run:
482 # 1. login to the docker registry
483 # 2. docker push
484 #
485 # Required Variables:
486 # branch: git branch (eg. stable/lithium or master)
487
Anaël Clossonabbafb52017-02-09 17:55:10 +0100488 name: '{project-name}-{stream}-docker-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700489 id: '{project-name}-{stream}-docker-java-daily'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100490 project-type: freestyle
Jessica Wagantall34e6d6b2018-11-08 12:43:06 -0800491 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700492 disabled: '{disabled}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100493 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700494 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100495 build-days-to-keep: '{build-days-to-keep}'
496
497 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700498 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100499 project: '{project}'
500 branch: '{branch}'
501 refspec: 'refs/heads/{branch}'
502 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800503 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800504 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700505 - maven-params:
506 mvn-params: '{mvn-params}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100507
508 scm:
509 - gerrit-trigger-scm:
510 refspec: ''
511 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500512 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100513
Anaël Clossonabbafb52017-02-09 17:55:10 +0100514 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700515 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100516 build-timeout: '{build-timeout}'
517
518 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800519 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700520 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800521 - gerrit-trigger-release-manually:
522 server: '{server-name}'
523 project: '{project}'
524 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100525
526 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700527 - lf-infra-pre-build
Anaël Clossonabbafb52017-02-09 17:55:10 +0100528 - provide-maven-settings:
529 global-settings-file: 'global-settings'
530 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100531
Anaël Closson63e090e2017-02-15 14:50:45 +0100532 - docker-login
533
Anaël Clossonabbafb52017-02-09 17:55:10 +0100534 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800535 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100536 mvn-settings: '{mvn-settings}'
537 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100538 # use default as mvn-profile if profile is not needed
539 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700540 mvn-params: '{mvn-params}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500541
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700542 publishers:
543 - infra-shiplogs:
544 maven-version: '{maven-version}'
545
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500546- job-template:
Gary Wu9e9210f2018-07-18 16:19:20 -0700547 # Job template for Docker daily jobs
548 #
549 # The purpose of this job template is to run:
550 # 1. login to the docker registry
551 # 2. docker push
552 #
553 # Required Variables:
554 # branch: git branch (eg. stable/lithium or master)
555
Gary Wu350fbcb2018-08-07 11:13:59 -0700556 <<: *docker_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700557 name: '{project-name}-{stream}-docker-java-daily'
558 id: docker-java-daily
Gary Wu9e9210f2018-07-18 16:19:20 -0700559 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700560 wrappers:
561 - infra-wrappers-docker-build:
562 build-timeout: '{build-timeout}'
563
Gary Wu9e9210f2018-07-18 16:19:20 -0700564- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +0200565 # Job template for building & pushing docker images
566 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800567 # The purpose of this job template is to run:
JulienBe91c56ec2017-06-21 23:37:39 +0200568 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800569 # 2. run a specified shell builder
570 #
571 # Required Variables:
572 # pom: name/location of the pom.xml file relative to the workspace
573 # maven-properties: properties passed to maven
574
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500575 name: '{project-name}-{stream}-docker-java-shell-daily'
576 project-type: freestyle
Jessica Wagantallfe5efea2018-08-07 16:02:39 -0700577 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700578 disabled: '{disabled}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500579 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700580 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500581 build-days-to-keep: '{build-days-to-keep}'
582
583 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700584 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500585 project: '{project}'
586 branch: '{branch}'
587 refspec: 'refs/heads/{branch}'
588 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800589 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800590 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500591
592 scm:
593 - gerrit-trigger-scm:
594 refspec: ''
595 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500596 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500597
598 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700599 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500600 build-timeout: '{build-timeout}'
601
602 triggers:
603 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700604 - timed: '@daily'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500605 - gerrit-trigger-release-manually:
606 server: '{server-name}'
607 project: '{project}'
608 branch: '{branch}'
609
610 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700611 - lf-infra-pre-build
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500612 - provide-maven-settings:
613 global-settings-file: 'global-settings'
614 settings-file: '{mvn-settings}'
615
616 - docker-login
617
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500618 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800619 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500620 goals: '{mvn-goals}'
621 settings: '{mvn-settings}'
622 settings-type: cfp
623 global-settings: 'global-settings'
624 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500625
626 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000627
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700628 publishers:
629 - infra-shiplogs:
630 maven-version: '{maven-version}'
631
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000632- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800633 # Job template for building & pushing docker images
634 #
635 # The purpose of this job template is to run:
636 # 1. login to the docker registry
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700637 # 2. run a specified shell builder
638 #
639 # Required Variables:
640 # pom: name/location of the pom.xml file relative to the workspace
641 # maven-properties: properties passed to maven
642
643 name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily'
644 project-type: freestyle
645 node: '{build-node}'
646 disabled: '{disabled}'
647 properties:
648 - infra-properties:
649 build-days-to-keep: '{build-days-to-keep}'
650
651 parameters:
652 - infra-parameters:
653 project: '{project}'
654 branch: '{branch}'
655 refspec: 'refs/heads/{branch}'
656 artifacts: '{archive-artifacts}'
657 - maven-exec:
658 maven-version: '{maven-version}'
659
660 scm:
661 - gerrit-trigger-scm:
662 refspec: ''
663 choosing-strategy: 'default'
664 submodule-recursive: '{submodule-recursive}'
665
666 wrappers:
667 - infra-wrappers:
668 build-timeout: '{build-timeout}'
669
670 triggers:
671 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700672 - timed: '@daily'
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700673 - gerrit-trigger-release-manually:
674 server: '{server-name}'
675 project: '{project}'
676 branch: '{branch}'
677
678 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700679 - lf-infra-pre-build
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700680 - provide-maven-settings:
681 global-settings-file: 'global-settings'
682 settings-file: '{mvn-settings}'
683
684 - docker-login
685
686 - maven-target:
687 maven-version: '{maven-version}'
688 pom: '{pom}'
689 goals: '{mvn-goals}'
690 settings: '{mvn-settings}'
691 settings-type: cfp
692 global-settings: 'global-settings'
693 global-settings-type: cfp
694
695 - shell: '{script}'
696
697 publishers:
698 - infra-shiplogs:
699 maven-version: '{maven-version}'
700
701- job-template:
702 # Job template for building & pushing docker images
703 #
704 # The purpose of this job template is to run:
705 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800706 # 2. inject a version.properties file and set versions
707 # 3. run a specified shell builder
708 #
709 # Required Variables:
710 # pom: name/location of the pom.xml file relative to the workspace
711 # maven-properties: properties passed to maven
712
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400713 name: '{project-name}-{stream}-docker-java-version-shell-daily'
714 project-type: freestyle
Jessica Wagantalld50aa192018-11-08 13:03:33 -0800715 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700716 disabled: '{disabled}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400717 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700718 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400719 build-days-to-keep: '{build-days-to-keep}'
720
721 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700722 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400723 project: '{project}'
724 branch: '{branch}'
725 refspec: 'refs/heads/{branch}'
726 artifacts: '{archive-artifacts}'
727 - maven-exec:
728 maven-version: '{maven-version}'
729
730 scm:
731 - gerrit-trigger-scm:
732 refspec: ''
733 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500734 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400735
736 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700737 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400738 build-timeout: '{build-timeout}'
739
740 triggers:
741 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700742 - timed: '@daily'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400743 - gerrit-trigger-release-manually:
744 server: '{server-name}'
745 project: '{project}'
746 branch: '{branch}'
747
748 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700749 - lf-infra-pre-build
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400750 - provide-maven-settings:
751 global-settings-file: 'global-settings'
752 settings-file: '{mvn-settings}'
753
754 - inject:
755 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700756 - maven-set-release-version:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400757 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700758 mvn-settings: '{mvn-settings}'
759 pom:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400760
761 - docker-login
762
763 - maven-target:
764 maven-version: '{maven-version}'
765 goals: '{mvn-goals}'
766 settings: '{mvn-settings}'
767 settings-type: cfp
768 global-settings: 'global-settings'
769 global-settings-type: cfp
770
771 - shell: '{script}'
772
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700773 publishers:
774 - infra-shiplogs:
775 maven-version: '{maven-version}'
776
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400777- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800778 # Job template for building & pushing docker images
779 #
780 # The purpose of this job template is to run:
781 # 1. login to the docker registry
782 # 2. inject a version.properties file and set versions
783 # 3. run a specified shell builder
784 #
785 # This template supports subprojects.
786 #
787 # Required Variables:
788 # pom: name/location of the pom.xml file relative to the workspace
789 # maven-properties: properties passed to maven
790
Zhaoxing49773042017-10-13 17:14:35 +0800791 name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
792 project-type: freestyle
793 node: 'ubuntu1604-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700794 disabled: '{disabled}'
Zhaoxing49773042017-10-13 17:14:35 +0800795 properties:
796 - infra-properties:
797 build-days-to-keep: '{build-days-to-keep}'
798
799 parameters:
800 - infra-parameters:
801 project: '{project}'
802 branch: '{branch}'
803 refspec: 'refs/heads/{branch}'
804 artifacts: '{archive-artifacts}'
805 - maven-exec:
806 maven-version: '{maven-version}'
807
808 scm:
809 - gerrit-trigger-scm:
810 refspec: ''
811 choosing-strategy: 'default'
812 submodule-recursive: '{submodule-recursive}'
813
814 wrappers:
815 - infra-wrappers:
816 build-timeout: '{build-timeout}'
817
818 triggers:
819 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700820 - timed: '@daily'
Zhaoxing49773042017-10-13 17:14:35 +0800821 - gerrit-trigger-release-manually:
822 server: '{server-name}'
823 project: '{project}'
824 branch: '{branch}'
825
826 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700827 - lf-infra-pre-build
Zhaoxing49773042017-10-13 17:14:35 +0800828 - provide-maven-settings:
829 global-settings-file: 'global-settings'
830 settings-file: '{mvn-settings}'
831
832 - inject:
833 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700834 - maven-set-release-version:
Zhaoxing49773042017-10-13 17:14:35 +0800835 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700836 mvn-settings: '{mvn-settings}'
Zhaoxing49773042017-10-13 17:14:35 +0800837 pom: '{pom}'
Zhaoxing49773042017-10-13 17:14:35 +0800838
839 - docker-login
840
841 - maven-target:
842 maven-version: '{maven-version}'
843 pom: '{pom}'
844 goals: '{mvn-goals}'
845 settings: '{mvn-settings}'
846 settings-type: cfp
847 global-settings: 'global-settings'
848 global-settings-type: cfp
849
850 - shell: '{script}'
851
852 publishers:
853 - infra-shiplogs:
854 maven-version: '{maven-version}'
855
Gary Wu350fbcb2018-08-07 11:13:59 -0700856- job-template: &docker_version_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800857 # Job template for building & pushing docker images
858 #
859 # The purpose of this job template is to run:
860 # 1. login to the docker registry
861 # 2. inject a version.properties file and set versions
862 # 3. run a docker push
863 #
864 # Required Variables:
865 # pom: name/location of the pom.xml file relative to the workspace
866 # profile: the docker profile defined in the pom
867 # maven-properties: properties passed to maven
868
Patrick Brady39f388a2017-03-09 11:26:59 -0800869 name: '{project-name}-{stream}-docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700870 id: '{project-name}-{stream}-docker-version-java-daily'
Patrick Brady39f388a2017-03-09 11:26:59 -0800871 project-type: freestyle
Paul Vaduva6dd88542018-12-11 16:59:12 +0100872 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700873 disabled: '{disabled}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800874 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700875 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -0800876 build-days-to-keep: '{build-days-to-keep}'
877
878 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700879 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -0800880 project: '{project}'
881 branch: '{branch}'
882 refspec: 'refs/heads/{branch}'
883 artifacts: '{archive-artifacts}'
884 - maven-exec:
885 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700886 - maven-params:
887 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800888
889 scm:
890 - gerrit-trigger-scm:
891 refspec: ''
892 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500893 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800894
895 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700896 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -0800897 build-timeout: '{build-timeout}'
898
899 triggers:
900 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700901 - timed: '@daily'
Patrick Brady39f388a2017-03-09 11:26:59 -0800902 - gerrit-trigger-release-manually:
903 server: '{server-name}'
904 project: '{project}'
905 branch: '{branch}'
906
907 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700908 - lf-infra-pre-build
Patrick Brady39f388a2017-03-09 11:26:59 -0800909 - provide-maven-settings:
910 global-settings-file: 'global-settings'
911 settings-file: '{mvn-settings}'
912
913 - inject:
914 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700915 - maven-set-release-version:
Patrick Brady39f388a2017-03-09 11:26:59 -0800916 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700917 mvn-settings: '{mvn-settings}'
918 pom:
Patrick Brady39f388a2017-03-09 11:26:59 -0800919
920 - docker-login
921
922 - maven-docker-push-daily:
923 maven-version: '{maven-version}'
924 mvn-settings: '{mvn-settings}'
925 pom: '{docker-pom}'
926 # use default as mvn-profile if profile is not needed
927 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700928 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800929
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700930 publishers:
931 - infra-shiplogs:
932 maven-version: '{maven-version}'
933
Patrick Brady39f388a2017-03-09 11:26:59 -0800934- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800935 # Job template for building & pushing docker images
936 #
937 # The purpose of this job template is to run:
Gary Wu9e9210f2018-07-18 16:19:20 -0700938 # 1. login to the docker registry
939 # 2. inject a version.properties file and set versions
940 # 3. run a docker push
941 #
942 # Required Variables:
943 # pom: name/location of the pom.xml file relative to the workspace
944 # profile: the docker profile defined in the pom
945 # maven-properties: properties passed to maven
946
Gary Wu350fbcb2018-08-07 11:13:59 -0700947 <<: *docker_version_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700948 name: '{project-name}-{stream}-docker-version-java-daily'
949 id: 'docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700950 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700951 wrappers:
952 - infra-wrappers-docker-build:
953 build-timeout: '{build-timeout}'
954
Zhaoxing49773042017-10-13 17:14:35 +0800955- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800956 # Job template for building & pushing docker images for AAI specific repos
957 #
958 # The purpose of this job template is to run:
959 # 1. login to the docker registry
960 # 2. run maven goals
961 # 3. run include-docker-push.sh
962 #
963 # Required Variables:
964 # pom: name/location of the pom.xml file relative to the workspace
965 # maven-properties: properties passed to maven
966
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000967 name: '{project-name}-{stream}-aai-docker-java-daily'
968 project-type: freestyle
Jessica Wagantallab30bf62018-11-08 12:20:48 -0800969 node: '{build-node}'
Gary Wudc3f2952017-08-23 16:48:59 -0700970 docker-image-name: ''
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700971 disabled: '{disabled}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000972 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700973 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000974 build-days-to-keep: '{build-days-to-keep}'
975
976 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700977 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000978 project: '{project}'
979 branch: '{branch}'
980 refspec: 'refs/heads/{branch}'
981 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800982 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800983 maven-version: '{maven-version}'
Gary Wudc3f2952017-08-23 16:48:59 -0700984 - docker-image-name:
985 docker-image-name: '{docker-image-name}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000986
987 scm:
988 - gerrit-trigger-scm:
989 refspec: ''
990 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500991 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000992
993 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700994 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000995 build-timeout: '{build-timeout}'
996
997 triggers:
998 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700999 - timed: '@daily'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001000 - gerrit-trigger-release-manually:
1001 server: '{server-name}'
1002 project: '{project}'
1003 branch: '{branch}'
1004
1005 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001006 - lf-infra-pre-build
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001007 - provide-maven-settings:
1008 global-settings-file: 'global-settings'
1009 settings-file: '{mvn-settings}'
1010
1011 - docker-login
1012
1013 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001014 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001015 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -04001016 goals: 'clean install -DskipTests -B
1017 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001018 settings: '{mvn-settings}'
1019 settings-type: cfp
1020 global-settings: 'global-settings'
1021 global-settings-type: cfp
1022
1023 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -08001024 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001025 pom: '{pom}'
1026 goals: '{mvn-goals}'
1027 settings: '{mvn-settings}'
1028 settings-type: cfp
1029 global-settings: 'global-settings'
1030 global-settings-type: cfp
1031 properties:
1032 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001033 - docker.pull.registry=nexus3.onap.org:10001
1034 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001035
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001036 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001037
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001038 publishers:
1039 - infra-shiplogs:
1040 maven-version: '{maven-version}'
1041
Carsten Lund2d06a692017-02-23 18:23:07 +00001042- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001043 # Job template for Java merge jobs for SDC specific repos
ig61339fdb9d22017-04-03 17:47:19 +03001044 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001045 # The purpose of this job template is to run:
1046 # 1. maven clean deploy
ig61339fdb9d22017-04-03 17:47:19 +03001047 #
1048 # Required Variables:
1049 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001050
Gary Wu6c702772018-08-06 18:48:02 -07001051 <<: *merge_java_defaults
ig61339fdb9d22017-04-03 17:47:19 +03001052 name: '{project-name}-{stream}-sdc-merge-java'
1053
Paul Vaduva3aebd312019-02-01 13:35:21 +01001054 node: '{build-node}'
Jessica Wagantall9a89de42018-04-18 11:35:17 -07001055 build-timeout: 120
ig61339fdb9d22017-04-03 17:47:19 +03001056
ig61339fdb9d22017-04-03 17:47:19 +03001057 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001058 - lf-infra-pre-build
ig61339fdb9d22017-04-03 17:47:19 +03001059 - provide-maven-settings:
1060 global-settings-file: 'global-settings'
1061 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001062
1063 - docker-login
1064
Gary Wu6c702772018-08-06 18:48:02 -07001065 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001066 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001067 mvn-settings: '{mvn-settings}'
1068 pom: '{docker-pom}'
1069 # use default as mvn-profile if profile is not needed
1070 mvn-profile: '{mvn-profile}'
Gary Wu6c702772018-08-06 18:48:02 -07001071 mvn-params: ''
Bengt Thuree1515daa2019-09-10 13:39:04 +02001072
1073- job-template:
1074 # Job template for Java merge jobs on multiple architectures
1075 #
1076 # The purpose of this job template is to:
1077 # 1. Run parallel {project-name}-{stream}-verify-java jobs for each supported architecture
1078 # 2. Build and push a docker manifest list for the images created by
1079 # the previous jobs
1080
1081 name: '{project-name}-multiarch-{stream}-merge-java'
1082 node: '{build-node}'
1083 project-type: multijob
1084 disabled: '{obj:disabled}'
1085 pattern: '**'
1086
1087 parameters:
1088 - lf-infra-parameters:
1089 project: '{project}'
1090 stream: '{stream}'
1091 branch: '{branch}'
1092 - string:
1093 name: DOCKER_REGISTRY
1094 default: 'none'
1095 - string:
1096 name: DOCKERHUB_REGISTRY
1097 default: 'registry-1.docker.io'
1098
1099 properties:
1100 - throttle:
1101 max-per-node: 1
1102 option: 'project'
1103 - build-blocker:
1104 use-build-blocker: true
1105 blocking-jobs:
1106 - '{project-name}-.*-merge-.*'
1107 blocking-level: 'NODE'
1108
1109 scm:
1110 - gerrit-trigger-scm:
1111 refspec: ''
1112 choosing-strategy: 'default'
1113 submodule-recursive: '{submodule-recursive}'
1114
1115 wrappers:
1116 - infra-wrappers:
1117 build-timeout: '{build-timeout}'
1118
1119 triggers:
1120 - gerrit-trigger-patch-merged:
1121 server: '{server-name}'
1122 project: '{project}'
1123 branch: '{branch}'
1124 files: '{pattern}'
1125
1126 builders:
1127 - multijob:
1128 name: 'build docker images'
1129 condition: ALWAYS
1130 execution-type: PARALLEL
1131 projects:
1132 - name: '{project-name}-amd64-{stream}-merge-java'
1133 kill-phase-on: FAILURE
1134 current-parameters: true
1135 - name: '{project-name}-arm64-{stream}-merge-java'
1136 kill-phase-on: NEVER
1137 current-parameters: true
1138 - multijob:
1139 name: 'publish docker manifest'
1140 condition: SUCCESSFUL
1141 execution-type: PARALLEL
1142 projects:
1143 - name: '{project-name}-docker-manifest-{stream}'
1144 current-parameters: true
1145 predefined-parameters: |
1146 PARENT_JOB_NAME=$JOB_NAME
1147 DOCKERHUB_REGISTRY=docker.io