blob: f2e08881b2b2fbc1e2464f1da5950c6dae693442 [file] [log] [blame]
Andrew Grimbergebc710a2017-01-30 12:59:38 -08001---
Gary Wu6c702772018-08-06 18:48:02 -07002- job-template: &verify_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -08003 # Job template for Java verify jobs
4 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08005 # The purpose of this job template is to run:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08006 # 1. maven clean install
Pamela Dragoshc6ff9c72017-02-16 11:11:45 -05007 #
8 # Required Variables:
9 # branch: git branch (eg. stable/lithium or master)
10
Andrew Grimbergce2286c2017-01-31 05:50:39 -080011 name: '{project-name}-{stream}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080012
13 project-type: freestyle
14 concurrent: true
15 node: '{build-node}'
Jessica Wagantall993e5362019-08-30 14:40:34 -070016 build-env-variables: ''
Gary Wu5918acd2018-08-06 16:42:21 -070017 pattern: '**'
Gary Wu6c702772018-08-06 18:48:02 -070018 pom:
Jessica Wagantall5b0faff2019-08-30 12:45:08 -070019 mvn-opts: ''
20 java-opts: ''
Jessica Wagantall52360d62019-11-08 15:32:58 -080021 java-version: openjdk8
Andrew Grimbergebc710a2017-01-30 12:59:38 -080022 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070023 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080024 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080025
26 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070027 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080028 project: '{project}'
29 branch: '{branch}'
30 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080031 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080032 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080033 maven-version: '{maven-version}'
Jessica Wagantalld25908c2018-03-28 12:06:39 -070034 - maven-params:
35 mvn-params: '{mvn-params}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080036
37 scm:
38 - gerrit-trigger-scm:
39 refspec: '$GERRIT_REFSPEC'
40 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050041 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080042
43 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070044 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080045 build-timeout: '{build-timeout}'
46
47 triggers:
48 - gerrit-trigger-patch-submitted:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080049 server: '{server-name}'
50 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080051 branch: '{branch}'
Gary Wu5918acd2018-08-06 16:42:21 -070052 files: '{obj:pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080053
54 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070055 - lf-infra-pre-build
Jessica Wagantall52360d62019-11-08 15:32:58 -080056 - lf-update-java-alternatives:
57 java-version: "{java-version}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080058 - provide-maven-settings:
59 global-settings-file: 'global-settings'
60 settings-file: '{mvn-settings}'
Jessica Wagantall993e5362019-08-30 14:40:34 -070061 - inject:
62 properties-content: "{build-env-variables}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080063 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -080064 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -070065 pom: '{obj:pom}'
Andrew Grimberge55b6222017-05-03 16:19:28 -040066 goals: 'clean install -B
Jessica Wagantalld25908c2018-03-28 12:06:39 -070067 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn {mvn-params}'
Jessica Wagantall5b0faff2019-08-30 12:45:08 -070068 properties:
69 - MAVEN_OPTS='{mvn-opts}'
70 java-opts:
71 - "{java-opts}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080072 settings: '{mvn-settings}'
73 settings-type: cfp
74 global-settings: 'global-settings'
75 global-settings-type: cfp
76
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070077 publishers:
78 - infra-shiplogs:
79 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080080
81- job-template:
JulienBe77903ed2017-07-17 15:30:26 +020082 # Job template for Java verify jobs running checkstyle at the end
83 # When checkstyle will be fully incorporated, it is meant to replace
84 # '{project-name}-{stream}-verify-java-checkstyle'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080085 #
86 # The purpose of this job template is to run:
87 # 1. maven clean install
88 #
89 # This job publishes checkstyle results.
JulienBe77903ed2017-07-17 15:30:26 +020090 #
91 # Required Variables:
92 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080093
Gary Wu6c702772018-08-06 18:48:02 -070094 <<: *verify_java_defaults
JulienBe77903ed2017-07-17 15:30:26 +020095 name: '{project-name}-{stream}-verify-java-checkstyle'
JulienBe77903ed2017-07-17 15:30:26 +020096 publishers:
97 - infra-shiplogs:
98 maven-version: '{maven-version}'
99 - checkstyle-result
100
101- job-template:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800102 # Job template for Java verify jobs with POM not at the root
103 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800104 # The purpose of this job template is to run:
105 # 1. maven clean install
106 #
107 # This job supports subprojects.
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800108 #
109 # Required Variables:
110 # branch: git branch (eg. stable/lithium or master)
111 # pom: name/location of the pom.xml file relative to the workspace
112 # pattern: ant file-path pattern relative to the workspace used to
113 # trigger the job
114
Gary Wu6c702772018-08-06 18:48:02 -0700115 <<: *verify_java_defaults
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800116 name: '{project-name}-{stream}-{subproject}-verify-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800117
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800118- job-template:
pwielebsd30b16f2019-11-18 12:17:18 +0100119 # Job template for Java integration pairwise jobs
120 #
121 # The purpose of this job template is to run:
122 # 1. maven clean install
123 #
124 # Required Variables:
125 # branch: git branch (eg. stable/lithium or master)
126
127 <<: *verify_java_defaults
128 name: '{project-name}-{stream}-integration-pairwise'
129 triggers:
130 - timed: '@daily'
131 - gerrit-trigger-patch-submitted:
132 server: '{server-name}'
133 project: '{project}'
134 branch: '{branch}'
135 files: '{obj:pattern}'
136
137- job-template:
JulienBe77903ed2017-07-17 15:30:26 +0200138 # Job template for Java daily release jobs running checkstyle at the end
139 # When checkstyle will be fully incorporated, it is meant to replace
140 # '{project-name}-{stream}-release-java-daily'
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800141 #
142 # The purpose of this job template is to run:
143 # 1. maven clean deploy with Sonar scans
144 #
145 # This job publishes checkstyle results.
146 # This job uses a conditional regex match step to set versions.
JulienBe77903ed2017-07-17 15:30:26 +0200147 #
148 # Required Variables:
149 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800150
JulienBe77903ed2017-07-17 15:30:26 +0200151 name: '{project-name}-{stream}-release-java-daily-checkstyle'
152 project-type: freestyle
153 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700154 disabled: '{disabled}'
JulienBe77903ed2017-07-17 15:30:26 +0200155 maven-deploy-properties:
156 properties:
157 - infra-properties:
158 build-days-to-keep: '{build-days-to-keep}'
159 parameters:
160 - infra-parameters:
161 project: '{project}'
162 branch: '{branch}'
163 refspec: 'refs/heads/{branch}'
164 artifacts: '{archive-artifacts}'
165 - maven-exec:
166 maven-version: '{maven-version}'
167 scm:
168 - gerrit-trigger-scm:
169 refspec: ''
170 choosing-strategy: 'default'
171 submodule-recursive: '{submodule-recursive}'
172 wrappers:
173 - infra-wrappers:
174 build-timeout: '{build-timeout}'
175 triggers:
176 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700177 - timed: '@daily'
JulienBe77903ed2017-07-17 15:30:26 +0200178 - gerrit-trigger-release-manually:
179 server: '{server-name}'
180 project: '{project}'
181 branch: '{branch}'
182 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700183 - lf-infra-pre-build
JulienBe77903ed2017-07-17 15:30:26 +0200184 - provide-maven-settings:
185 global-settings-file: 'global-settings'
186 settings-file: '{mvn-settings}'
JulienBed91a33a2017-09-25 15:56:34 +0200187 - conditional-step:
188 condition-kind: regex-match
189 regex: DoSetVersion
190 label: '{setVersion}'
191 steps:
192 - inject:
193 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700194 - maven-set-release-version:
JulienBed91a33a2017-09-25 15:56:34 +0200195 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700196 mvn-settings: '{mvn-settings}'
197 pom:
JulienBe77903ed2017-07-17 15:30:26 +0200198 - maven-target:
199 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800200 goals: 'clean deploy -B
JulienBe77903ed2017-07-17 15:30:26 +0200201 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
JulienBec9d90e22017-08-08 10:44:10 +0200202 properties: '{obj:mvn_properties}'
JulienBe77903ed2017-07-17 15:30:26 +0200203 settings: '{mvn-settings}'
204 settings-type: cfp
205 global-settings: 'global-settings'
206 global-settings-type: cfp
207 publishers:
208 - infra-shiplogs:
209 maven-version: '{maven-version}'
210 - checkstyle-result-daily
211
212- job-template:
JulienBe5641aa02017-02-17 01:08:38 -0800213 # Job template for Java daily release jobs
214 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800215 # The purpose of this job template is to run:
216 # 1. maven set versions
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800217 # 2. maven clean deploy with Sonar scans
Pamela Dragosh55ceb8f2017-05-23 12:23:16 -0400218 #
219 # Required Variables:
220 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800221
JulienBe5641aa02017-02-17 01:08:38 -0800222 name: '{project-name}-{stream}-release-version-java-daily'
223
224 project-type: freestyle
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700225 disabled: '{disabled}'
JulienBe5641aa02017-02-17 01:08:38 -0800226 node: '{build-node}'
227 maven-deploy-properties:
228 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700229 - infra-properties:
JulienBe5641aa02017-02-17 01:08:38 -0800230 build-days-to-keep: '{build-days-to-keep}'
231
232 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700233 - infra-parameters:
JulienBe5641aa02017-02-17 01:08:38 -0800234 project: '{project}'
235 branch: '{branch}'
236 refspec: 'refs/heads/{branch}'
237 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800238 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800239 maven-version: '{maven-version}'
JulienBe5641aa02017-02-17 01:08:38 -0800240
241 scm:
242 - gerrit-trigger-scm:
243 refspec: ''
244 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500245 submodule-recursive: '{submodule-recursive}'
JulienBe5641aa02017-02-17 01:08:38 -0800246
247 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700248 - infra-wrappers:
JulienBe5641aa02017-02-17 01:08:38 -0800249 build-timeout: '{build-timeout}'
250
251 triggers:
252 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700253 - timed: '@daily'
JulienBe5641aa02017-02-17 01:08:38 -0800254 - gerrit-trigger-release-manually:
255 server: '{server-name}'
256 project: '{project}'
257 branch: '{branch}'
258
259 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700260 - lf-infra-pre-build
JulienBe5641aa02017-02-17 01:08:38 -0800261 - provide-maven-settings:
262 global-settings-file: 'global-settings'
263 settings-file: '{mvn-settings}'
264
JulienBe2f4ee072017-02-01 21:42:32 +0100265 - inject:
266 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700267 - maven-set-release-version:
Andrew Grimberge2465882017-02-24 12:38:05 -0800268 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700269 mvn-settings: '{mvn-settings}'
270 pom:
JulienBe2f4ee072017-02-01 21:42:32 +0100271
272 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800273 maven-version: '{maven-version}'
Jessica Wagantallb0e72cd2018-01-29 16:07:22 -0800274 goals: 'clean deploy -B
Andrew Grimberge55b6222017-05-03 16:19:28 -0400275 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Andrew Grimberg24443ee2017-02-02 08:29:12 -0800276 properties:
277 - '{maven-deploy-properties}'
JulienBe2f4ee072017-02-01 21:42:32 +0100278 settings: '{mvn-settings}'
279 settings-type: cfp
280 global-settings: 'global-settings'
281 global-settings-type: cfp
282
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700283 publishers:
284 - infra-shiplogs:
285 maven-version: '{maven-version}'
286
Gary Wu6c702772018-08-06 18:48:02 -0700287- job-template: &merge_java_defaults
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800288 # Job template for Java merge jobs
289 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800290 # The purpose of this job template is to run:
291 # 1. maven clean deploy
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800292 #
293 # Required Variables:
294 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800295
Andrew Grimbergce2286c2017-01-31 05:50:39 -0800296 name: '{project-name}-{stream}-merge-java'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800297
298 project-type: freestyle
299 node: '{build-node}'
Gary Wu6c702772018-08-06 18:48:02 -0700300 pattern: '**'
301 pom:
302 mvn_properties: []
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700303 mvn-params: ''
Houa Yangb7778e62019-09-03 13:23:05 -0500304 mvn-opts: ''
305 java-opts: ''
Jessica Wagantall52360d62019-11-08 15:32:58 -0800306 java-version: openjdk8
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800307
308 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700309 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800310 build-days-to-keep: '{build-days-to-keep}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800311
312 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700313 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800314 project: '{project}'
315 branch: '{branch}'
316 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -0800317 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800318 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800319 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800320
321 scm:
322 - gerrit-trigger-scm:
323 refspec: ''
324 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500325 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800326
327 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700328 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800329 build-timeout: '{build-timeout}'
330
331 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800332 - gerrit-trigger-patch-merged:
333 server: '{server-name}'
334 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800335 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800336 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800337
338 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700339 - lf-infra-pre-build
Jessica Wagantall52360d62019-11-08 15:32:58 -0800340 - lf-update-java-alternatives:
341 java-version: "{java-version}"
Cristina Paunab4d24a62019-09-12 20:50:02 +0300342 - provide-maven-settings:
343 global-settings-file: 'global-settings'
344 settings-file: '{mvn-settings}'
Cristina Pauna42c1f522019-09-11 17:45:06 +0300345 - conditional-step:
346 condition-kind: regex-match
347 regex: .*(amd64|arm64).*
348 label: '{project-name}'
349 steps:
350 - shell: !include-raw-escape: global-jjb/shell/docker-login.sh
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800351 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800352 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -0700353 pom: '{obj:pom}'
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700354 goals: 'clean deploy -B {mvn-params}
Andrew Grimberge55b6222017-05-03 16:19:28 -0400355 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Houa Yangb7778e62019-09-03 13:23:05 -0500356 properties:
357 - MAVEN_OPTS='{mvn-opts}'
358 java-opts:
359 - "{java-opts}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800360 settings: '{mvn-settings}'
361 settings-type: cfp
362 global-settings: 'global-settings'
363 global-settings-type: cfp
Gary Wu6c702772018-08-06 18:48:02 -0700364 properties: '{obj:mvn_properties}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800365
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700366 publishers:
367 - infra-shiplogs:
368 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100369
370- job-template:
Gary Wu6c702772018-08-06 18:48:02 -0700371 # Job template for Java merge jobs based on
372 # '{project-name}-{stream}-merge-java'
373 # The purpose of this job template is to run:
374 # 1. maven clean deploy
375 #
376 # This project supports maven properties.
377 #
378 # Required Variables:
379 # branch: git branch (eg. stable/lithium or master)
380 # maven-properties: properties passed to maven
381
382 <<: *merge_java_defaults
383 name: '{project-name}-{stream}-merge-properties-java'
384
sebdet72bb3602020-06-11 17:24:40 +0200385 wrappers:
386 - lf-infra-wrappers:
387 build-timeout: '{build-timeout}'
388 jenkins-ssh-credential: '{jenkins-ssh-credential}'
389
Gary Wu6c702772018-08-06 18:48:02 -0700390- job-template:
391 # Job template for Java merge jobs that takes a maven template
392 #
393 # The purpose of this job template is to run:
394 # 1. maven clean deploy -P {mvn-profile}
395 #
396 # Required Variables:
397 # branch: git branch (eg. stable/lithium or master)
398
399 <<: *merge_java_defaults
400 name: '{project-name}-{stream}-merge-profile-java'
401
402 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700403 - lf-infra-pre-build
Gary Wu6c702772018-08-06 18:48:02 -0700404 - provide-maven-settings:
405 global-settings-file: 'global-settings'
406 settings-file: '{mvn-settings}'
407
408 - docker-login
409
410 - maven-target:
411 maven-version: '{maven-version}'
412 goals: 'clean deploy -P {mvn-profile} -B
413 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
414 settings: '{mvn-settings}'
415 settings-type: cfp
416 global-settings: 'global-settings'
417 global-settings-type: cfp
418 properties:
419 - docker.pull.registry=nexus3.onap.org:10001
420 - docker.push.registry=nexus3.onap.org:10003
421
422- job-template:
423 # Job template for Java merge jobs with POM not at the root
424 #
425 # The purpose of this job template is to run:
426 # 1. maven clean deploy
427 #
428 # This job supports subprojects.
429 #
430 # Required Variables:
431 # branch: git branch (eg. stable/lithium or master)
432 # pom: name/location of the pom.xml file relative to the workspace
433 # pattern: ant file-path pattern relative to the workspace used to
434 # trigger the job
435
436 <<: *merge_java_defaults
437 name: '{project-name}-{stream}-{subproject}-merge-java'
438
Gary Wu350fbcb2018-08-07 11:13:59 -0700439- job-template: &docker_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800440 # Job template for Docker daily jobs
441 #
442 # The purpose of this job template is to run:
443 # 1. login to the docker registry
444 # 2. docker push
445 #
446 # Required Variables:
447 # branch: git branch (eg. stable/lithium or master)
448
Anaël Clossonabbafb52017-02-09 17:55:10 +0100449 name: '{project-name}-{stream}-docker-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700450 id: '{project-name}-{stream}-docker-java-daily'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100451 project-type: freestyle
Jessica Wagantall34e6d6b2018-11-08 12:43:06 -0800452 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700453 disabled: '{disabled}'
Anil Belurd6802662020-07-28 13:45:10 +1000454 java-version: openjdk8
Anaël Clossonabbafb52017-02-09 17:55:10 +0100455 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700456 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100457 build-days-to-keep: '{build-days-to-keep}'
458
459 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700460 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100461 project: '{project}'
462 branch: '{branch}'
463 refspec: 'refs/heads/{branch}'
464 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800465 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800466 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700467 - maven-params:
468 mvn-params: '{mvn-params}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100469
470 scm:
471 - gerrit-trigger-scm:
472 refspec: ''
473 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500474 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100475
Anaël Clossonabbafb52017-02-09 17:55:10 +0100476 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700477 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100478 build-timeout: '{build-timeout}'
479
480 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800481 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700482 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800483 - gerrit-trigger-release-manually:
484 server: '{server-name}'
485 project: '{project}'
486 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100487
488 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700489 - lf-infra-pre-build
Anil Belurd6802662020-07-28 13:45:10 +1000490 - lf-update-java-alternatives:
491 java-version: "{java-version}"
492
Anaël Clossonabbafb52017-02-09 17:55:10 +0100493 - provide-maven-settings:
494 global-settings-file: 'global-settings'
495 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100496
Anaël Closson63e090e2017-02-15 14:50:45 +0100497 - docker-login
498
Anaël Clossonabbafb52017-02-09 17:55:10 +0100499 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800500 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100501 mvn-settings: '{mvn-settings}'
502 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100503 # use default as mvn-profile if profile is not needed
504 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700505 mvn-params: '{mvn-params}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500506
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700507 publishers:
508 - infra-shiplogs:
509 maven-version: '{maven-version}'
510
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500511- job-template:
Gary Wu9e9210f2018-07-18 16:19:20 -0700512 # Job template for Docker daily jobs
513 #
514 # The purpose of this job template is to run:
515 # 1. login to the docker registry
516 # 2. docker push
517 #
518 # Required Variables:
519 # branch: git branch (eg. stable/lithium or master)
520
Gary Wu350fbcb2018-08-07 11:13:59 -0700521 <<: *docker_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700522 name: '{project-name}-{stream}-docker-java-daily'
523 id: docker-java-daily
Gary Wu9e9210f2018-07-18 16:19:20 -0700524 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700525 wrappers:
526 - infra-wrappers-docker-build:
527 build-timeout: '{build-timeout}'
528
Gary Wu9e9210f2018-07-18 16:19:20 -0700529- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +0200530 # Job template for building & pushing docker images
531 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800532 # The purpose of this job template is to run:
JulienBe91c56ec2017-06-21 23:37:39 +0200533 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800534 # 2. run a specified shell builder
535 #
536 # Required Variables:
537 # pom: name/location of the pom.xml file relative to the workspace
538 # maven-properties: properties passed to maven
539
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500540 name: '{project-name}-{stream}-docker-java-shell-daily'
541 project-type: freestyle
Jessica Wagantallfe5efea2018-08-07 16:02:39 -0700542 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700543 disabled: '{disabled}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500544 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700545 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500546 build-days-to-keep: '{build-days-to-keep}'
547
548 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700549 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500550 project: '{project}'
551 branch: '{branch}'
552 refspec: 'refs/heads/{branch}'
553 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800554 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800555 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500556
557 scm:
558 - gerrit-trigger-scm:
559 refspec: ''
560 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500561 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500562
563 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700564 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500565 build-timeout: '{build-timeout}'
566
567 triggers:
568 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700569 - timed: '@daily'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500570 - gerrit-trigger-release-manually:
571 server: '{server-name}'
572 project: '{project}'
573 branch: '{branch}'
574
575 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700576 - lf-infra-pre-build
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500577 - provide-maven-settings:
578 global-settings-file: 'global-settings'
579 settings-file: '{mvn-settings}'
580
581 - docker-login
582
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500583 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800584 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500585 goals: '{mvn-goals}'
586 settings: '{mvn-settings}'
587 settings-type: cfp
588 global-settings: 'global-settings'
589 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500590
591 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000592
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700593 publishers:
594 - infra-shiplogs:
595 maven-version: '{maven-version}'
596
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000597- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800598 # Job template for building & pushing docker images
599 #
600 # The purpose of this job template is to run:
601 # 1. login to the docker registry
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700602 # 2. run a specified shell builder
603 #
604 # Required Variables:
605 # pom: name/location of the pom.xml file relative to the workspace
606 # maven-properties: properties passed to maven
607
608 name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily'
609 project-type: freestyle
610 node: '{build-node}'
611 disabled: '{disabled}'
612 properties:
613 - infra-properties:
614 build-days-to-keep: '{build-days-to-keep}'
615
616 parameters:
617 - infra-parameters:
618 project: '{project}'
619 branch: '{branch}'
620 refspec: 'refs/heads/{branch}'
621 artifacts: '{archive-artifacts}'
622 - maven-exec:
623 maven-version: '{maven-version}'
624
625 scm:
626 - gerrit-trigger-scm:
627 refspec: ''
628 choosing-strategy: 'default'
629 submodule-recursive: '{submodule-recursive}'
630
631 wrappers:
632 - infra-wrappers:
633 build-timeout: '{build-timeout}'
634
635 triggers:
636 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700637 - timed: '@daily'
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700638 - gerrit-trigger-release-manually:
639 server: '{server-name}'
640 project: '{project}'
641 branch: '{branch}'
642
643 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700644 - lf-infra-pre-build
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700645 - provide-maven-settings:
646 global-settings-file: 'global-settings'
647 settings-file: '{mvn-settings}'
648
649 - docker-login
650
651 - maven-target:
652 maven-version: '{maven-version}'
653 pom: '{pom}'
654 goals: '{mvn-goals}'
655 settings: '{mvn-settings}'
656 settings-type: cfp
657 global-settings: 'global-settings'
658 global-settings-type: cfp
659
660 - shell: '{script}'
661
662 publishers:
663 - infra-shiplogs:
664 maven-version: '{maven-version}'
665
666- job-template:
667 # Job template for building & pushing docker images
668 #
669 # The purpose of this job template is to run:
670 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800671 # 2. inject a version.properties file and set versions
672 # 3. run a specified shell builder
673 #
674 # Required Variables:
675 # pom: name/location of the pom.xml file relative to the workspace
676 # maven-properties: properties passed to maven
677
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400678 name: '{project-name}-{stream}-docker-java-version-shell-daily'
679 project-type: freestyle
Jessica Wagantalld50aa192018-11-08 13:03:33 -0800680 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700681 disabled: '{disabled}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400682 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700683 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400684 build-days-to-keep: '{build-days-to-keep}'
685
686 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700687 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400688 project: '{project}'
689 branch: '{branch}'
690 refspec: 'refs/heads/{branch}'
691 artifacts: '{archive-artifacts}'
692 - maven-exec:
693 maven-version: '{maven-version}'
694
695 scm:
696 - gerrit-trigger-scm:
697 refspec: ''
698 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500699 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400700
701 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700702 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400703 build-timeout: '{build-timeout}'
704
705 triggers:
706 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700707 - timed: '@daily'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400708 - gerrit-trigger-release-manually:
709 server: '{server-name}'
710 project: '{project}'
711 branch: '{branch}'
712
713 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700714 - lf-infra-pre-build
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400715 - provide-maven-settings:
716 global-settings-file: 'global-settings'
717 settings-file: '{mvn-settings}'
718
719 - inject:
720 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700721 - maven-set-release-version:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400722 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700723 mvn-settings: '{mvn-settings}'
724 pom:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400725
726 - docker-login
727
728 - maven-target:
729 maven-version: '{maven-version}'
730 goals: '{mvn-goals}'
731 settings: '{mvn-settings}'
732 settings-type: cfp
733 global-settings: 'global-settings'
734 global-settings-type: cfp
735
736 - shell: '{script}'
737
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700738 publishers:
739 - infra-shiplogs:
740 maven-version: '{maven-version}'
741
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400742- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800743 # Job template for building & pushing docker images
744 #
745 # The purpose of this job template is to run:
746 # 1. login to the docker registry
747 # 2. inject a version.properties file and set versions
748 # 3. run a specified shell builder
749 #
750 # This template supports subprojects.
751 #
752 # Required Variables:
753 # pom: name/location of the pom.xml file relative to the workspace
754 # maven-properties: properties passed to maven
755
Zhaoxing49773042017-10-13 17:14:35 +0800756 name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
757 project-type: freestyle
Jessica Wagantall612da802020-03-31 10:44:03 -0700758 node: 'ubuntu1804-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700759 disabled: '{disabled}'
Zhaoxing49773042017-10-13 17:14:35 +0800760 properties:
761 - infra-properties:
762 build-days-to-keep: '{build-days-to-keep}'
763
764 parameters:
765 - infra-parameters:
766 project: '{project}'
767 branch: '{branch}'
768 refspec: 'refs/heads/{branch}'
769 artifacts: '{archive-artifacts}'
770 - maven-exec:
771 maven-version: '{maven-version}'
772
773 scm:
774 - gerrit-trigger-scm:
775 refspec: ''
776 choosing-strategy: 'default'
777 submodule-recursive: '{submodule-recursive}'
778
779 wrappers:
780 - infra-wrappers:
781 build-timeout: '{build-timeout}'
782
783 triggers:
784 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700785 - timed: '@daily'
Zhaoxing49773042017-10-13 17:14:35 +0800786 - gerrit-trigger-release-manually:
787 server: '{server-name}'
788 project: '{project}'
789 branch: '{branch}'
790
791 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700792 - lf-infra-pre-build
Zhaoxing49773042017-10-13 17:14:35 +0800793 - provide-maven-settings:
794 global-settings-file: 'global-settings'
795 settings-file: '{mvn-settings}'
796
797 - inject:
798 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700799 - maven-set-release-version:
Zhaoxing49773042017-10-13 17:14:35 +0800800 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700801 mvn-settings: '{mvn-settings}'
Zhaoxing49773042017-10-13 17:14:35 +0800802 pom: '{pom}'
Zhaoxing49773042017-10-13 17:14:35 +0800803
804 - docker-login
805
806 - maven-target:
807 maven-version: '{maven-version}'
808 pom: '{pom}'
809 goals: '{mvn-goals}'
810 settings: '{mvn-settings}'
811 settings-type: cfp
812 global-settings: 'global-settings'
813 global-settings-type: cfp
814
815 - shell: '{script}'
816
817 publishers:
818 - infra-shiplogs:
819 maven-version: '{maven-version}'
820
Gary Wu350fbcb2018-08-07 11:13:59 -0700821- job-template: &docker_version_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800822 # Job template for building & pushing docker images
823 #
824 # The purpose of this job template is to run:
825 # 1. login to the docker registry
826 # 2. inject a version.properties file and set versions
827 # 3. run a docker push
828 #
829 # Required Variables:
830 # pom: name/location of the pom.xml file relative to the workspace
831 # profile: the docker profile defined in the pom
832 # maven-properties: properties passed to maven
833
Patrick Brady39f388a2017-03-09 11:26:59 -0800834 name: '{project-name}-{stream}-docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700835 id: '{project-name}-{stream}-docker-version-java-daily'
Patrick Brady39f388a2017-03-09 11:26:59 -0800836 project-type: freestyle
Paul Vaduva6dd88542018-12-11 16:59:12 +0100837 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700838 disabled: '{disabled}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800839 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700840 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -0800841 build-days-to-keep: '{build-days-to-keep}'
842
843 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700844 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -0800845 project: '{project}'
846 branch: '{branch}'
847 refspec: 'refs/heads/{branch}'
848 artifacts: '{archive-artifacts}'
849 - maven-exec:
850 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700851 - maven-params:
852 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800853
854 scm:
855 - gerrit-trigger-scm:
856 refspec: ''
857 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500858 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800859
860 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700861 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -0800862 build-timeout: '{build-timeout}'
863
864 triggers:
865 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700866 - timed: '@daily'
Patrick Brady39f388a2017-03-09 11:26:59 -0800867 - gerrit-trigger-release-manually:
868 server: '{server-name}'
869 project: '{project}'
870 branch: '{branch}'
871
872 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700873 - lf-infra-pre-build
Patrick Brady39f388a2017-03-09 11:26:59 -0800874 - provide-maven-settings:
875 global-settings-file: 'global-settings'
876 settings-file: '{mvn-settings}'
877
878 - inject:
879 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700880 - maven-set-release-version:
Patrick Brady39f388a2017-03-09 11:26:59 -0800881 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700882 mvn-settings: '{mvn-settings}'
883 pom:
Patrick Brady39f388a2017-03-09 11:26:59 -0800884
885 - docker-login
886
887 - maven-docker-push-daily:
888 maven-version: '{maven-version}'
889 mvn-settings: '{mvn-settings}'
890 pom: '{docker-pom}'
891 # use default as mvn-profile if profile is not needed
892 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700893 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800894
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700895 publishers:
896 - infra-shiplogs:
897 maven-version: '{maven-version}'
898
Patrick Brady39f388a2017-03-09 11:26:59 -0800899- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800900 # Job template for building & pushing docker images
901 #
902 # The purpose of this job template is to run:
Gary Wu9e9210f2018-07-18 16:19:20 -0700903 # 1. login to the docker registry
904 # 2. inject a version.properties file and set versions
905 # 3. run a docker push
906 #
907 # Required Variables:
908 # pom: name/location of the pom.xml file relative to the workspace
909 # profile: the docker profile defined in the pom
910 # maven-properties: properties passed to maven
911
Gary Wu350fbcb2018-08-07 11:13:59 -0700912 <<: *docker_version_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700913 name: '{project-name}-{stream}-docker-version-java-daily'
914 id: 'docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700915 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700916 wrappers:
917 - infra-wrappers-docker-build:
918 build-timeout: '{build-timeout}'
919
Zhaoxing49773042017-10-13 17:14:35 +0800920- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800921 # Job template for building & pushing docker images for AAI specific repos
922 #
923 # The purpose of this job template is to run:
924 # 1. login to the docker registry
925 # 2. run maven goals
926 # 3. run include-docker-push.sh
927 #
928 # Required Variables:
929 # pom: name/location of the pom.xml file relative to the workspace
930 # maven-properties: properties passed to maven
931
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000932 name: '{project-name}-{stream}-aai-docker-java-daily'
933 project-type: freestyle
Jessica Wagantallab30bf62018-11-08 12:20:48 -0800934 node: '{build-node}'
Gary Wudc3f2952017-08-23 16:48:59 -0700935 docker-image-name: ''
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700936 disabled: '{disabled}'
Jessica Wagantall392b8f02020-10-05 12:38:33 -0700937 java-version: 'openjdk8'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000938 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700939 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000940 build-days-to-keep: '{build-days-to-keep}'
941
942 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700943 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000944 project: '{project}'
945 branch: '{branch}'
946 refspec: 'refs/heads/{branch}'
947 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800948 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800949 maven-version: '{maven-version}'
Gary Wudc3f2952017-08-23 16:48:59 -0700950 - docker-image-name:
951 docker-image-name: '{docker-image-name}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000952
953 scm:
954 - gerrit-trigger-scm:
955 refspec: ''
956 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500957 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000958
959 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700960 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000961 build-timeout: '{build-timeout}'
962
963 triggers:
964 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700965 - timed: '@daily'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000966 - gerrit-trigger-release-manually:
967 server: '{server-name}'
968 project: '{project}'
969 branch: '{branch}'
970
971 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700972 - lf-infra-pre-build
Jessica Wagantall392b8f02020-10-05 12:38:33 -0700973 - lf-update-java-alternatives:
974 java-version: "{java-version}"
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000975 - provide-maven-settings:
976 global-settings-file: 'global-settings'
977 settings-file: '{mvn-settings}'
978
979 - docker-login
980
981 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800982 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000983 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400984 goals: 'clean install -DskipTests -B
985 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000986 settings: '{mvn-settings}'
987 settings-type: cfp
988 global-settings: 'global-settings'
989 global-settings-type: cfp
990
991 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800992 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000993 pom: '{pom}'
994 goals: '{mvn-goals}'
995 settings: '{mvn-settings}'
996 settings-type: cfp
997 global-settings: 'global-settings'
998 global-settings-type: cfp
999 properties:
1000 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001001 - docker.pull.registry=nexus3.onap.org:10001
1002 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001003
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001004 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001005
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001006 publishers:
1007 - infra-shiplogs:
1008 maven-version: '{maven-version}'
1009
Carsten Lund2d06a692017-02-23 18:23:07 +00001010- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001011 # Job template for Java merge jobs for SDC specific repos
ig61339fdb9d22017-04-03 17:47:19 +03001012 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001013 # The purpose of this job template is to run:
1014 # 1. maven clean deploy
ig61339fdb9d22017-04-03 17:47:19 +03001015 #
1016 # Required Variables:
1017 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001018
Gary Wu6c702772018-08-06 18:48:02 -07001019 <<: *merge_java_defaults
ig61339fdb9d22017-04-03 17:47:19 +03001020 name: '{project-name}-{stream}-sdc-merge-java'
1021
Paul Vaduva3aebd312019-02-01 13:35:21 +01001022 node: '{build-node}'
Jessica Wagantall9a89de42018-04-18 11:35:17 -07001023 build-timeout: 120
ig61339fdb9d22017-04-03 17:47:19 +03001024
ig61339fdb9d22017-04-03 17:47:19 +03001025 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001026 - lf-infra-pre-build
sebdet7ac81602020-09-16 14:12:44 +02001027 - lf-update-java-alternatives:
1028 java-version: "{java-version}"
ig61339fdb9d22017-04-03 17:47:19 +03001029 - provide-maven-settings:
1030 global-settings-file: 'global-settings'
1031 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001032
1033 - docker-login
1034
Gary Wu6c702772018-08-06 18:48:02 -07001035 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001036 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001037 mvn-settings: '{mvn-settings}'
1038 pom: '{docker-pom}'
1039 # use default as mvn-profile if profile is not needed
1040 mvn-profile: '{mvn-profile}'
Gary Wu6c702772018-08-06 18:48:02 -07001041 mvn-params: ''
Bengt Thuree1515daa2019-09-10 13:39:04 +02001042
1043- job-template:
1044 # Job template for Java merge jobs on multiple architectures
1045 #
1046 # The purpose of this job template is to:
1047 # 1. Run parallel {project-name}-{stream}-verify-java jobs for each supported architecture
1048 # 2. Build and push a docker manifest list for the images created by
1049 # the previous jobs
1050
1051 name: '{project-name}-multiarch-{stream}-merge-java'
1052 node: '{build-node}'
1053 project-type: multijob
1054 disabled: '{obj:disabled}'
1055 pattern: '**'
1056
1057 parameters:
1058 - lf-infra-parameters:
1059 project: '{project}'
1060 stream: '{stream}'
1061 branch: '{branch}'
1062 - string:
1063 name: DOCKER_REGISTRY
1064 default: 'none'
1065 - string:
1066 name: DOCKERHUB_REGISTRY
1067 default: 'registry-1.docker.io'
1068
1069 properties:
1070 - throttle:
1071 max-per-node: 1
1072 option: 'project'
1073 - build-blocker:
1074 use-build-blocker: true
1075 blocking-jobs:
1076 - '{project-name}-.*-merge-.*'
1077 blocking-level: 'NODE'
1078
1079 scm:
1080 - gerrit-trigger-scm:
1081 refspec: ''
1082 choosing-strategy: 'default'
1083 submodule-recursive: '{submodule-recursive}'
1084
1085 wrappers:
1086 - infra-wrappers:
1087 build-timeout: '{build-timeout}'
1088
1089 triggers:
1090 - gerrit-trigger-patch-merged:
1091 server: '{server-name}'
1092 project: '{project}'
1093 branch: '{branch}'
1094 files: '{pattern}'
1095
1096 builders:
1097 - multijob:
1098 name: 'build docker images'
1099 condition: ALWAYS
1100 execution-type: PARALLEL
1101 projects:
1102 - name: '{project-name}-amd64-{stream}-merge-java'
1103 kill-phase-on: FAILURE
1104 current-parameters: true
1105 - name: '{project-name}-arm64-{stream}-merge-java'
1106 kill-phase-on: NEVER
1107 current-parameters: true
1108 - multijob:
1109 name: 'publish docker manifest'
1110 condition: SUCCESSFUL
1111 execution-type: PARALLEL
1112 projects:
1113 - name: '{project-name}-docker-manifest-{stream}'
1114 current-parameters: true
1115 predefined-parameters: |
1116 PARENT_JOB_NAME=$JOB_NAME
1117 DOCKERHUB_REGISTRY=docker.io