blob: ff021db1cd52d95fe9ab8e457a8f1266ba4d8d96 [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:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -080078 - lf-infra-publish
Andrew Grimbergebc710a2017-01-30 12:59:38 -080079
80- job-template:
JulienBe77903ed2017-07-17 15:30:26 +020081 # Job template for Java verify jobs running checkstyle at the end
82 # When checkstyle will be fully incorporated, it is meant to replace
83 # '{project-name}-{stream}-verify-java-checkstyle'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080084 #
85 # The purpose of this job template is to run:
86 # 1. maven clean install
87 #
88 # This job publishes checkstyle results.
JulienBe77903ed2017-07-17 15:30:26 +020089 #
90 # Required Variables:
91 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080092
Gary Wu6c702772018-08-06 18:48:02 -070093 <<: *verify_java_defaults
JulienBe77903ed2017-07-17 15:30:26 +020094 name: '{project-name}-{stream}-verify-java-checkstyle'
Jessica Wagantall2a6a3802021-01-14 12:19:17 -080095
JulienBe77903ed2017-07-17 15:30:26 +020096 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -080097 - lf-infra-publish
JulienBe77903ed2017-07-17 15:30:26 +020098 - checkstyle-result
99
100- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800101 # Job template for Java verify jobs with POM not at the root
102 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800103 # The purpose of this job template is to run:
104 # 1. maven clean install
105 #
106 # This job supports subprojects.
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800107 #
108 # Required Variables:
109 # branch: git branch (eg. stable/lithium or master)
110 # pom: name/location of the pom.xml file relative to the workspace
111 # pattern: ant file-path pattern relative to the workspace used to
112 # trigger the job
113
Gary Wu6c702772018-08-06 18:48:02 -0700114 <<: *verify_java_defaults
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800115 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800116
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800117- job-template:
pwielebsd30b16f2019-11-18 12:17:18 +0100118 # Job template for Java integration pairwise jobs
119 #
120 # The purpose of this job template is to run:
121 # 1. maven clean install
122 #
123 # Required Variables:
124 # branch: git branch (eg. stable/lithium or master)
125
126 <<: *verify_java_defaults
127 name: '{project-name}-{stream}-integration-pairwise'
128 triggers:
129 - timed: '@daily'
130 - gerrit-trigger-patch-submitted:
131 server: '{server-name}'
132 project: '{project}'
133 branch: '{branch}'
134 files: '{obj:pattern}'
135
136- job-template:
JulienBe77903ed2017-07-17 15:30:26 +0200137 # Job template for Java daily release jobs running checkstyle at the end
138 # When checkstyle will be fully incorporated, it is meant to replace
139 # '{project-name}-{stream}-release-java-daily'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800140 #
141 # The purpose of this job template is to run:
142 # 1. maven clean deploy with Sonar scans
143 #
144 # This job publishes checkstyle results.
145 # This job uses a conditional regex match step to set versions.
JulienBe77903ed2017-07-17 15:30:26 +0200146 #
147 # Required Variables:
148 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800149
JulienBe77903ed2017-07-17 15:30:26 +0200150 name: '{project-name}-{stream}-release-java-daily-checkstyle'
151 project-type: freestyle
152 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700153 disabled: '{disabled}'
JulienBe77903ed2017-07-17 15:30:26 +0200154 maven-deploy-properties:
155 properties:
156 - infra-properties:
157 build-days-to-keep: '{build-days-to-keep}'
158 parameters:
159 - infra-parameters:
160 project: '{project}'
161 branch: '{branch}'
162 refspec: 'refs/heads/{branch}'
163 artifacts: '{archive-artifacts}'
164 - maven-exec:
165 maven-version: '{maven-version}'
166 scm:
167 - gerrit-trigger-scm:
168 refspec: ''
169 choosing-strategy: 'default'
170 submodule-recursive: '{submodule-recursive}'
171 wrappers:
172 - infra-wrappers:
173 build-timeout: '{build-timeout}'
174 triggers:
175 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700176 - timed: '@daily'
JulienBe77903ed2017-07-17 15:30:26 +0200177 - gerrit-trigger-release-manually:
178 server: '{server-name}'
179 project: '{project}'
180 branch: '{branch}'
181 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700182 - lf-infra-pre-build
JulienBe77903ed2017-07-17 15:30:26 +0200183 - provide-maven-settings:
184 global-settings-file: 'global-settings'
185 settings-file: '{mvn-settings}'
JulienBed91a33a2017-09-25 15:56:34 +0200186 - conditional-step:
187 condition-kind: regex-match
188 regex: DoSetVersion
189 label: '{setVersion}'
190 steps:
191 - inject:
192 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700193 - maven-set-release-version:
JulienBed91a33a2017-09-25 15:56:34 +0200194 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700195 mvn-settings: '{mvn-settings}'
196 pom:
JulienBe77903ed2017-07-17 15:30:26 +0200197 - maven-target:
198 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800199 goals: 'clean deploy -B
JulienBe77903ed2017-07-17 15:30:26 +0200200 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBec9d90e22017-08-08 10:44:10 +0200201 properties: '{obj:mvn_properties}'
JulienBe77903ed2017-07-17 15:30:26 +0200202 settings: '{mvn-settings}'
203 settings-type: cfp
204 global-settings: 'global-settings'
205 global-settings-type: cfp
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800206
JulienBe77903ed2017-07-17 15:30:26 +0200207 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800208 - lf-infra-publish
JulienBe77903ed2017-07-17 15:30:26 +0200209 - checkstyle-result-daily
210
211- job-template:
JulienBe5641aa02017-02-17 01:08:38 -0800212 # Job template for Java daily release jobs
213 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800214 # The purpose of this job template is to run:
215 # 1. maven set versions
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800216 # 2. maven clean deploy with Sonar scans
Pamela Dragosh55ceb8f2017-05-23 12:23:16 -0400217 #
218 # Required Variables:
219 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800220
JulienBe5641aa02017-02-17 01:08:38 -0800221 name: '{project-name}-{stream}-release-version-java-daily'
222
223 project-type: freestyle
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700224 disabled: '{disabled}'
JulienBe5641aa02017-02-17 01:08:38 -0800225 node: '{build-node}'
226 maven-deploy-properties:
227 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700228 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800229 build-days-to-keep: '{build-days-to-keep}'
230
231 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700232 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800233 project: '{project}'
234 branch: '{branch}'
235 refspec: 'refs/heads/{branch}'
236 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800237 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800238 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800239
240 scm:
241 - gerrit-trigger-scm:
242 refspec: ''
243 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500244 submodule-recursive: '{submodule-recursive}'
JulienBe5641aa02017-02-17 01:08:38 -0800245
246 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700247 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800248 build-timeout: '{build-timeout}'
249
250 triggers:
251 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700252 - timed: '@daily'
JulienBe5641aa02017-02-17 01:08:38 -0800253 - gerrit-trigger-release-manually:
254 server: '{server-name}'
255 project: '{project}'
256 branch: '{branch}'
257
258 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700259 - lf-infra-pre-build
JulienBe5641aa02017-02-17 01:08:38 -0800260 - provide-maven-settings:
261 global-settings-file: 'global-settings'
262 settings-file: '{mvn-settings}'
263
JulienBe2f4ee072017-02-01 21:42:32 +0100264 - inject:
265 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700266 - maven-set-release-version:
Andrew Grimberge2465882017-02-24 12:38:05 -0800267 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700268 mvn-settings: '{mvn-settings}'
269 pom:
JulienBe2f4ee072017-02-01 21:42:32 +0100270
271 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800272 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800273 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400274 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800275 properties:
276 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100277 settings: '{mvn-settings}'
278 settings-type: cfp
279 global-settings: 'global-settings'
280 global-settings-type: cfp
281
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700282 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800283 - lf-infra-publish
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700284
Gary Wu6c702772018-08-06 18:48:02 -0700285- job-template: &merge_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800286 # Job template for Java merge jobs
287 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800288 # The purpose of this job template is to run:
289 # 1. maven clean deploy
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800290 #
291 # Required Variables:
292 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800293
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800294 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800295
296 project-type: freestyle
297 node: '{build-node}'
Gary Wu6c702772018-08-06 18:48:02 -0700298 pattern: '**'
299 pom:
300 mvn_properties: []
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700301 mvn-params: ''
Houa Yangb7778e62019-09-03 13:23:05 -0500302 mvn-opts: ''
303 java-opts: ''
Jessica Wagantall52360d62019-11-08 15:32:58 -0800304 java-version: openjdk8
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800305
306 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700307 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800308 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800309
310 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700311 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800312 project: '{project}'
313 branch: '{branch}'
314 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800315 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800316 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800317 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800318
319 scm:
320 - gerrit-trigger-scm:
321 refspec: ''
322 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500323 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800324
325 wrappers:
Jessica Wagantallb8a59322021-01-13 10:41:34 -0800326 - lf-infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800327 build-timeout: '{build-timeout}'
Jessica Wagantallb8a59322021-01-13 10:41:34 -0800328 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800329
330 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800331 - gerrit-trigger-patch-merged:
332 server: '{server-name}'
333 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800334 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800335 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800336
337 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700338 - lf-infra-pre-build
Jessica Wagantall52360d62019-11-08 15:32:58 -0800339 - lf-update-java-alternatives:
340 java-version: "{java-version}"
Cristina Paunab4d24a62019-09-12 20:50:02 +0300341 - provide-maven-settings:
342 global-settings-file: 'global-settings'
343 settings-file: '{mvn-settings}'
Cristina Pauna42c1f522019-09-11 17:45:06 +0300344 - conditional-step:
345 condition-kind: regex-match
346 regex: .*(amd64|arm64).*
347 label: '{project-name}'
348 steps:
349 - shell: !include-raw-escape: global-jjb/shell/docker-login.sh
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800350 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800351 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -0700352 pom: '{obj:pom}'
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700353 goals: 'clean deploy -B {mvn-params}
Andrew Grimberge55b6222017-05-03 16:19:28 -0400354 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Houa Yangb7778e62019-09-03 13:23:05 -0500355 properties:
356 - MAVEN_OPTS='{mvn-opts}'
357 java-opts:
358 - "{java-opts}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800359 settings: '{mvn-settings}'
360 settings-type: cfp
361 global-settings: 'global-settings'
362 global-settings-type: cfp
Gary Wu6c702772018-08-06 18:48:02 -0700363 properties: '{obj:mvn_properties}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800364
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700365 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800366 - lf-infra-publish
Anaël Clossonabbafb52017-02-09 17:55:10 +0100367
368- job-template:
Gary Wu6c702772018-08-06 18:48:02 -0700369 # Job template for Java merge jobs based on
370 # '{project-name}-{stream}-merge-java'
371 # The purpose of this job template is to run:
372 # 1. maven clean deploy
373 #
374 # This project supports maven properties.
375 #
376 # Required Variables:
377 # branch: git branch (eg. stable/lithium or master)
378 # maven-properties: properties passed to maven
379
380 <<: *merge_java_defaults
381 name: '{project-name}-{stream}-merge-properties-java'
382
sebdet72bb3602020-06-11 17:24:40 +0200383 wrappers:
384 - lf-infra-wrappers:
385 build-timeout: '{build-timeout}'
386 jenkins-ssh-credential: '{jenkins-ssh-credential}'
387
Gary Wu6c702772018-08-06 18:48:02 -0700388- job-template:
389 # Job template for Java merge jobs that takes a maven template
390 #
391 # The purpose of this job template is to run:
392 # 1. maven clean deploy -P {mvn-profile}
393 #
394 # Required Variables:
395 # branch: git branch (eg. stable/lithium or master)
396
397 <<: *merge_java_defaults
398 name: '{project-name}-{stream}-merge-profile-java'
399
400 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700401 - lf-infra-pre-build
Gary Wu6c702772018-08-06 18:48:02 -0700402 - provide-maven-settings:
403 global-settings-file: 'global-settings'
404 settings-file: '{mvn-settings}'
405
406 - docker-login
407
408 - maven-target:
409 maven-version: '{maven-version}'
410 goals: 'clean deploy -P {mvn-profile} -B
411 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
412 settings: '{mvn-settings}'
413 settings-type: cfp
414 global-settings: 'global-settings'
415 global-settings-type: cfp
416 properties:
417 - docker.pull.registry=nexus3.onap.org:10001
418 - docker.push.registry=nexus3.onap.org:10003
419
420- job-template:
421 # Job template for Java merge jobs with POM not at the root
422 #
423 # The purpose of this job template is to run:
424 # 1. maven clean deploy
425 #
426 # This job supports subprojects.
427 #
428 # Required Variables:
429 # branch: git branch (eg. stable/lithium or master)
430 # pom: name/location of the pom.xml file relative to the workspace
431 # pattern: ant file-path pattern relative to the workspace used to
432 # trigger the job
433
434 <<: *merge_java_defaults
435 name: '{project-name}-{stream}-{subproject}-merge-java'
436
Gary Wu350fbcb2018-08-07 11:13:59 -0700437- job-template: &docker_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800438 # Job template for Docker daily jobs
439 #
440 # The purpose of this job template is to run:
441 # 1. login to the docker registry
442 # 2. docker push
443 #
444 # Required Variables:
445 # branch: git branch (eg. stable/lithium or master)
446
Anaël Clossonabbafb52017-02-09 17:55:10 +0100447 name: '{project-name}-{stream}-docker-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700448 id: '{project-name}-{stream}-docker-java-daily'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100449 project-type: freestyle
Jessica Wagantall34e6d6b2018-11-08 12:43:06 -0800450 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700451 disabled: '{disabled}'
Anil Belurd6802662020-07-28 13:45:10 +1000452 java-version: openjdk8
Anaël Clossonabbafb52017-02-09 17:55:10 +0100453 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700454 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100455 build-days-to-keep: '{build-days-to-keep}'
456
457 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700458 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100459 project: '{project}'
460 branch: '{branch}'
461 refspec: 'refs/heads/{branch}'
462 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800463 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800464 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700465 - maven-params:
466 mvn-params: '{mvn-params}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100467
468 scm:
469 - gerrit-trigger-scm:
470 refspec: ''
471 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500472 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100473
Anaël Clossonabbafb52017-02-09 17:55:10 +0100474 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700475 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100476 build-timeout: '{build-timeout}'
477
478 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800479 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700480 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800481 - gerrit-trigger-release-manually:
482 server: '{server-name}'
483 project: '{project}'
484 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100485
486 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700487 - lf-infra-pre-build
Anil Belurd6802662020-07-28 13:45:10 +1000488 - lf-update-java-alternatives:
489 java-version: "{java-version}"
490
Anaël Clossonabbafb52017-02-09 17:55:10 +0100491 - provide-maven-settings:
492 global-settings-file: 'global-settings'
493 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100494
Anaël Closson63e090e2017-02-15 14:50:45 +0100495 - docker-login
496
Anaël Clossonabbafb52017-02-09 17:55:10 +0100497 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800498 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100499 mvn-settings: '{mvn-settings}'
500 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100501 # use default as mvn-profile if profile is not needed
502 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700503 mvn-params: '{mvn-params}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500504
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700505 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800506 - lf-infra-publish
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700507
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500508- job-template:
Gary Wu9e9210f2018-07-18 16:19:20 -0700509 # Job template for Docker daily jobs
510 #
511 # The purpose of this job template is to run:
512 # 1. login to the docker registry
513 # 2. docker push
514 #
515 # Required Variables:
516 # branch: git branch (eg. stable/lithium or master)
517
Gary Wu350fbcb2018-08-07 11:13:59 -0700518 <<: *docker_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700519 name: '{project-name}-{stream}-docker-java-daily'
520 id: docker-java-daily
Gary Wu9e9210f2018-07-18 16:19:20 -0700521 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700522 wrappers:
523 - infra-wrappers-docker-build:
524 build-timeout: '{build-timeout}'
525
Gary Wu9e9210f2018-07-18 16:19:20 -0700526- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +0200527 # Job template for building & pushing docker images
528 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800529 # The purpose of this job template is to run:
JulienBe91c56ec2017-06-21 23:37:39 +0200530 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800531 # 2. run a specified shell builder
532 #
533 # Required Variables:
534 # pom: name/location of the pom.xml file relative to the workspace
535 # maven-properties: properties passed to maven
536
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500537 name: '{project-name}-{stream}-docker-java-shell-daily'
538 project-type: freestyle
Jessica Wagantallfe5efea2018-08-07 16:02:39 -0700539 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700540 disabled: '{disabled}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500541 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700542 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500543 build-days-to-keep: '{build-days-to-keep}'
544
545 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700546 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500547 project: '{project}'
548 branch: '{branch}'
549 refspec: 'refs/heads/{branch}'
550 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800551 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800552 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500553
554 scm:
555 - gerrit-trigger-scm:
556 refspec: ''
557 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500558 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500559
560 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700561 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500562 build-timeout: '{build-timeout}'
563
564 triggers:
565 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700566 - timed: '@daily'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500567 - gerrit-trigger-release-manually:
568 server: '{server-name}'
569 project: '{project}'
570 branch: '{branch}'
571
572 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700573 - lf-infra-pre-build
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500574 - provide-maven-settings:
575 global-settings-file: 'global-settings'
576 settings-file: '{mvn-settings}'
577
578 - docker-login
579
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500580 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800581 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500582 goals: '{mvn-goals}'
583 settings: '{mvn-settings}'
584 settings-type: cfp
585 global-settings: 'global-settings'
586 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500587
588 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000589
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700590 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800591 - lf-infra-publish
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700592
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000593- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800594 # Job template for building & pushing docker images
595 #
596 # The purpose of this job template is to run:
597 # 1. login to the docker registry
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700598 # 2. run a specified shell builder
599 #
600 # Required Variables:
601 # pom: name/location of the pom.xml file relative to the workspace
602 # maven-properties: properties passed to maven
603
604 name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily'
605 project-type: freestyle
606 node: '{build-node}'
607 disabled: '{disabled}'
608 properties:
609 - infra-properties:
610 build-days-to-keep: '{build-days-to-keep}'
611
612 parameters:
613 - infra-parameters:
614 project: '{project}'
615 branch: '{branch}'
616 refspec: 'refs/heads/{branch}'
617 artifacts: '{archive-artifacts}'
618 - maven-exec:
619 maven-version: '{maven-version}'
620
621 scm:
622 - gerrit-trigger-scm:
623 refspec: ''
624 choosing-strategy: 'default'
625 submodule-recursive: '{submodule-recursive}'
626
627 wrappers:
628 - infra-wrappers:
629 build-timeout: '{build-timeout}'
630
631 triggers:
632 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700633 - timed: '@daily'
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700634 - gerrit-trigger-release-manually:
635 server: '{server-name}'
636 project: '{project}'
637 branch: '{branch}'
638
639 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700640 - lf-infra-pre-build
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700641 - provide-maven-settings:
642 global-settings-file: 'global-settings'
643 settings-file: '{mvn-settings}'
644
645 - docker-login
646
647 - maven-target:
648 maven-version: '{maven-version}'
649 pom: '{pom}'
650 goals: '{mvn-goals}'
651 settings: '{mvn-settings}'
652 settings-type: cfp
653 global-settings: 'global-settings'
654 global-settings-type: cfp
655
656 - shell: '{script}'
657
658 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800659 - lf-infra-publish
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700660
661- job-template:
662 # Job template for building & pushing docker images
663 #
664 # The purpose of this job template is to run:
665 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800666 # 2. inject a version.properties file and set versions
667 # 3. run a specified shell builder
668 #
669 # Required Variables:
670 # pom: name/location of the pom.xml file relative to the workspace
671 # maven-properties: properties passed to maven
672
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400673 name: '{project-name}-{stream}-docker-java-version-shell-daily'
674 project-type: freestyle
Jessica Wagantalld50aa192018-11-08 13:03:33 -0800675 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700676 disabled: '{disabled}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400677 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700678 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400679 build-days-to-keep: '{build-days-to-keep}'
680
681 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700682 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400683 project: '{project}'
684 branch: '{branch}'
685 refspec: 'refs/heads/{branch}'
686 artifacts: '{archive-artifacts}'
687 - maven-exec:
688 maven-version: '{maven-version}'
689
690 scm:
691 - gerrit-trigger-scm:
692 refspec: ''
693 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500694 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400695
696 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700697 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400698 build-timeout: '{build-timeout}'
699
700 triggers:
701 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700702 - timed: '@daily'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400703 - gerrit-trigger-release-manually:
704 server: '{server-name}'
705 project: '{project}'
706 branch: '{branch}'
707
708 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700709 - lf-infra-pre-build
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400710 - provide-maven-settings:
711 global-settings-file: 'global-settings'
712 settings-file: '{mvn-settings}'
713
714 - inject:
715 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700716 - maven-set-release-version:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400717 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700718 mvn-settings: '{mvn-settings}'
719 pom:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400720
721 - docker-login
722
723 - maven-target:
724 maven-version: '{maven-version}'
725 goals: '{mvn-goals}'
726 settings: '{mvn-settings}'
727 settings-type: cfp
728 global-settings: 'global-settings'
729 global-settings-type: cfp
730
731 - shell: '{script}'
732
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700733 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800734 - lf-infra-publish
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700735
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400736- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800737 # Job template for building & pushing docker images
738 #
739 # The purpose of this job template is to run:
740 # 1. login to the docker registry
741 # 2. inject a version.properties file and set versions
742 # 3. run a specified shell builder
743 #
744 # This template supports subprojects.
745 #
746 # Required Variables:
747 # pom: name/location of the pom.xml file relative to the workspace
748 # maven-properties: properties passed to maven
749
Zhaoxing49773042017-10-13 17:14:35 +0800750 name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
751 project-type: freestyle
Jessica Wagantall612da802020-03-31 10:44:03 -0700752 node: 'ubuntu1804-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700753 disabled: '{disabled}'
Zhaoxing49773042017-10-13 17:14:35 +0800754 properties:
755 - infra-properties:
756 build-days-to-keep: '{build-days-to-keep}'
757
758 parameters:
759 - infra-parameters:
760 project: '{project}'
761 branch: '{branch}'
762 refspec: 'refs/heads/{branch}'
763 artifacts: '{archive-artifacts}'
764 - maven-exec:
765 maven-version: '{maven-version}'
766
767 scm:
768 - gerrit-trigger-scm:
769 refspec: ''
770 choosing-strategy: 'default'
771 submodule-recursive: '{submodule-recursive}'
772
773 wrappers:
774 - infra-wrappers:
775 build-timeout: '{build-timeout}'
776
777 triggers:
778 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700779 - timed: '@daily'
Zhaoxing49773042017-10-13 17:14:35 +0800780 - gerrit-trigger-release-manually:
781 server: '{server-name}'
782 project: '{project}'
783 branch: '{branch}'
784
785 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700786 - lf-infra-pre-build
Zhaoxing49773042017-10-13 17:14:35 +0800787 - provide-maven-settings:
788 global-settings-file: 'global-settings'
789 settings-file: '{mvn-settings}'
790
791 - inject:
792 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700793 - maven-set-release-version:
Zhaoxing49773042017-10-13 17:14:35 +0800794 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700795 mvn-settings: '{mvn-settings}'
Zhaoxing49773042017-10-13 17:14:35 +0800796 pom: '{pom}'
Zhaoxing49773042017-10-13 17:14:35 +0800797
798 - docker-login
799
800 - maven-target:
801 maven-version: '{maven-version}'
802 pom: '{pom}'
803 goals: '{mvn-goals}'
804 settings: '{mvn-settings}'
805 settings-type: cfp
806 global-settings: 'global-settings'
807 global-settings-type: cfp
808
809 - shell: '{script}'
810
811 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800812 - lf-infra-publish
Zhaoxing49773042017-10-13 17:14:35 +0800813
Gary Wu350fbcb2018-08-07 11:13:59 -0700814- job-template: &docker_version_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800815 # Job template for building & pushing docker images
816 #
817 # The purpose of this job template is to run:
818 # 1. login to the docker registry
819 # 2. inject a version.properties file and set versions
820 # 3. run a docker push
821 #
822 # Required Variables:
823 # pom: name/location of the pom.xml file relative to the workspace
824 # profile: the docker profile defined in the pom
825 # maven-properties: properties passed to maven
826
Patrick Brady39f388a2017-03-09 11:26:59 -0800827 name: '{project-name}-{stream}-docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700828 id: '{project-name}-{stream}-docker-version-java-daily'
Patrick Brady39f388a2017-03-09 11:26:59 -0800829 project-type: freestyle
Paul Vaduva6dd88542018-12-11 16:59:12 +0100830 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700831 disabled: '{disabled}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800832 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700833 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -0800834 build-days-to-keep: '{build-days-to-keep}'
835
836 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700837 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -0800838 project: '{project}'
839 branch: '{branch}'
840 refspec: 'refs/heads/{branch}'
841 artifacts: '{archive-artifacts}'
842 - maven-exec:
843 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700844 - maven-params:
845 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800846
847 scm:
848 - gerrit-trigger-scm:
849 refspec: ''
850 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500851 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800852
853 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700854 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -0800855 build-timeout: '{build-timeout}'
856
857 triggers:
858 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700859 - timed: '@daily'
Patrick Brady39f388a2017-03-09 11:26:59 -0800860 - gerrit-trigger-release-manually:
861 server: '{server-name}'
862 project: '{project}'
863 branch: '{branch}'
864
865 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700866 - lf-infra-pre-build
Patrick Brady39f388a2017-03-09 11:26:59 -0800867 - provide-maven-settings:
868 global-settings-file: 'global-settings'
869 settings-file: '{mvn-settings}'
870
871 - inject:
872 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700873 - maven-set-release-version:
Patrick Brady39f388a2017-03-09 11:26:59 -0800874 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700875 mvn-settings: '{mvn-settings}'
876 pom:
Patrick Brady39f388a2017-03-09 11:26:59 -0800877
878 - docker-login
879
880 - maven-docker-push-daily:
881 maven-version: '{maven-version}'
882 mvn-settings: '{mvn-settings}'
883 pom: '{docker-pom}'
884 # use default as mvn-profile if profile is not needed
885 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700886 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800887
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700888 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800889 - lf-infra-publish
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700890
Patrick Brady39f388a2017-03-09 11:26:59 -0800891- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800892 # Job template for building & pushing docker images
893 #
894 # The purpose of this job template is to run:
Gary Wu9e9210f2018-07-18 16:19:20 -0700895 # 1. login to the docker registry
896 # 2. inject a version.properties file and set versions
897 # 3. run a docker push
898 #
899 # Required Variables:
900 # pom: name/location of the pom.xml file relative to the workspace
901 # profile: the docker profile defined in the pom
902 # maven-properties: properties passed to maven
903
Gary Wu350fbcb2018-08-07 11:13:59 -0700904 <<: *docker_version_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700905 name: '{project-name}-{stream}-docker-version-java-daily'
906 id: 'docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700907 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700908 wrappers:
909 - infra-wrappers-docker-build:
910 build-timeout: '{build-timeout}'
911
Zhaoxing49773042017-10-13 17:14:35 +0800912- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800913 # Job template for building & pushing docker images for AAI specific repos
914 #
915 # The purpose of this job template is to run:
916 # 1. login to the docker registry
917 # 2. run maven goals
918 # 3. run include-docker-push.sh
919 #
920 # Required Variables:
921 # pom: name/location of the pom.xml file relative to the workspace
922 # maven-properties: properties passed to maven
923
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000924 name: '{project-name}-{stream}-aai-docker-java-daily'
925 project-type: freestyle
Jessica Wagantallab30bf62018-11-08 12:20:48 -0800926 node: '{build-node}'
Gary Wudc3f2952017-08-23 16:48:59 -0700927 docker-image-name: ''
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700928 disabled: '{disabled}'
Jessica Wagantall392b8f02020-10-05 12:38:33 -0700929 java-version: 'openjdk8'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000930 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700931 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000932 build-days-to-keep: '{build-days-to-keep}'
933
934 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700935 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000936 project: '{project}'
937 branch: '{branch}'
938 refspec: 'refs/heads/{branch}'
939 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800940 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800941 maven-version: '{maven-version}'
Gary Wudc3f2952017-08-23 16:48:59 -0700942 - docker-image-name:
943 docker-image-name: '{docker-image-name}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000944
945 scm:
946 - gerrit-trigger-scm:
947 refspec: ''
948 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500949 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000950
951 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700952 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000953 build-timeout: '{build-timeout}'
954
955 triggers:
956 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700957 - timed: '@daily'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000958 - gerrit-trigger-release-manually:
959 server: '{server-name}'
960 project: '{project}'
961 branch: '{branch}'
962
963 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700964 - lf-infra-pre-build
Jessica Wagantall392b8f02020-10-05 12:38:33 -0700965 - lf-update-java-alternatives:
966 java-version: "{java-version}"
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000967 - provide-maven-settings:
968 global-settings-file: 'global-settings'
969 settings-file: '{mvn-settings}'
970
971 - docker-login
972
973 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800974 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000975 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400976 goals: 'clean install -DskipTests -B
977 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000978 settings: '{mvn-settings}'
979 settings-type: cfp
980 global-settings: 'global-settings'
981 global-settings-type: cfp
982
983 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800984 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000985 pom: '{pom}'
986 goals: '{mvn-goals}'
987 settings: '{mvn-settings}'
988 settings-type: cfp
989 global-settings: 'global-settings'
990 global-settings-type: cfp
991 properties:
992 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -0500993 - docker.pull.registry=nexus3.onap.org:10001
994 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000995
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +0000996 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +0000997
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700998 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800999 - lf-infra-publish
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001000
Carsten Lund2d06a692017-02-23 18:23:07 +00001001- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001002 # Job template for Java merge jobs for SDC specific repos
ig61339fdb9d22017-04-03 17:47:19 +03001003 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001004 # The purpose of this job template is to run:
1005 # 1. maven clean deploy
ig61339fdb9d22017-04-03 17:47:19 +03001006 #
1007 # Required Variables:
1008 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001009
Gary Wu6c702772018-08-06 18:48:02 -07001010 <<: *merge_java_defaults
ig61339fdb9d22017-04-03 17:47:19 +03001011 name: '{project-name}-{stream}-sdc-merge-java'
1012
Paul Vaduva3aebd312019-02-01 13:35:21 +01001013 node: '{build-node}'
Jessica Wagantall9a89de42018-04-18 11:35:17 -07001014 build-timeout: 120
ig61339fdb9d22017-04-03 17:47:19 +03001015
ig61339fdb9d22017-04-03 17:47:19 +03001016 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001017 - lf-infra-pre-build
sebdet7ac81602020-09-16 14:12:44 +02001018 - lf-update-java-alternatives:
1019 java-version: "{java-version}"
ig61339fdb9d22017-04-03 17:47:19 +03001020 - provide-maven-settings:
1021 global-settings-file: 'global-settings'
1022 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001023
1024 - docker-login
1025
Gary Wu6c702772018-08-06 18:48:02 -07001026 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001027 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001028 mvn-settings: '{mvn-settings}'
1029 pom: '{docker-pom}'
1030 # use default as mvn-profile if profile is not needed
1031 mvn-profile: '{mvn-profile}'
Gary Wu6c702772018-08-06 18:48:02 -07001032 mvn-params: ''
Bengt Thuree1515daa2019-09-10 13:39:04 +02001033
1034- job-template:
1035 # Job template for Java merge jobs on multiple architectures
1036 #
1037 # The purpose of this job template is to:
1038 # 1. Run parallel {project-name}-{stream}-verify-java jobs for each supported architecture
1039 # 2. Build and push a docker manifest list for the images created by
1040 # the previous jobs
1041
1042 name: '{project-name}-multiarch-{stream}-merge-java'
1043 node: '{build-node}'
1044 project-type: multijob
1045 disabled: '{obj:disabled}'
1046 pattern: '**'
1047
1048 parameters:
1049 - lf-infra-parameters:
1050 project: '{project}'
1051 stream: '{stream}'
1052 branch: '{branch}'
1053 - string:
1054 name: DOCKER_REGISTRY
1055 default: 'none'
1056 - string:
1057 name: DOCKERHUB_REGISTRY
1058 default: 'registry-1.docker.io'
1059
1060 properties:
1061 - throttle:
1062 max-per-node: 1
1063 option: 'project'
1064 - build-blocker:
1065 use-build-blocker: true
1066 blocking-jobs:
1067 - '{project-name}-.*-merge-.*'
1068 blocking-level: 'NODE'
1069
1070 scm:
1071 - gerrit-trigger-scm:
1072 refspec: ''
1073 choosing-strategy: 'default'
1074 submodule-recursive: '{submodule-recursive}'
1075
1076 wrappers:
1077 - infra-wrappers:
1078 build-timeout: '{build-timeout}'
1079
1080 triggers:
1081 - gerrit-trigger-patch-merged:
1082 server: '{server-name}'
1083 project: '{project}'
1084 branch: '{branch}'
1085 files: '{pattern}'
1086
1087 builders:
1088 - multijob:
1089 name: 'build docker images'
1090 condition: ALWAYS
1091 execution-type: PARALLEL
1092 projects:
1093 - name: '{project-name}-amd64-{stream}-merge-java'
1094 kill-phase-on: FAILURE
1095 current-parameters: true
1096 - name: '{project-name}-arm64-{stream}-merge-java'
1097 kill-phase-on: NEVER
1098 current-parameters: true
1099 - multijob:
1100 name: 'publish docker manifest'
1101 condition: SUCCESSFUL
1102 execution-type: PARALLEL
1103 projects:
1104 - name: '{project-name}-docker-manifest-{stream}'
1105 current-parameters: true
1106 predefined-parameters: |
1107 PARENT_JOB_NAME=$JOB_NAME
1108 DOCKERHUB_REGISTRY=docker.io