blob: 813eccc0341c1ffe6dd2b577b089ff95a6036f8b [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:
Jessica Wagantallb8a59322021-01-13 10:41:34 -0800328 - lf-infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800329 build-timeout: '{build-timeout}'
Jessica Wagantallb8a59322021-01-13 10:41:34 -0800330 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800331
332 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800333 - gerrit-trigger-patch-merged:
334 server: '{server-name}'
335 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800336 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -0800337 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800338
339 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700340 - lf-infra-pre-build
Jessica Wagantall52360d62019-11-08 15:32:58 -0800341 - lf-update-java-alternatives:
342 java-version: "{java-version}"
Cristina Paunab4d24a62019-09-12 20:50:02 +0300343 - provide-maven-settings:
344 global-settings-file: 'global-settings'
345 settings-file: '{mvn-settings}'
Cristina Pauna42c1f522019-09-11 17:45:06 +0300346 - conditional-step:
347 condition-kind: regex-match
348 regex: .*(amd64|arm64).*
349 label: '{project-name}'
350 steps:
351 - shell: !include-raw-escape: global-jjb/shell/docker-login.sh
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800352 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800353 maven-version: '{maven-version}'
Gary Wu6c702772018-08-06 18:48:02 -0700354 pom: '{obj:pom}'
Jessica Wagantall17d0a6e2018-09-14 03:11:01 -0700355 goals: 'clean deploy -B {mvn-params}
Andrew Grimberge55b6222017-05-03 16:19:28 -0400356 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Houa Yangb7778e62019-09-03 13:23:05 -0500357 properties:
358 - MAVEN_OPTS='{mvn-opts}'
359 java-opts:
360 - "{java-opts}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800361 settings: '{mvn-settings}'
362 settings-type: cfp
363 global-settings: 'global-settings'
364 global-settings-type: cfp
Gary Wu6c702772018-08-06 18:48:02 -0700365 properties: '{obj:mvn_properties}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800366
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700367 publishers:
368 - infra-shiplogs:
369 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100370
371- job-template:
Gary Wu6c702772018-08-06 18:48:02 -0700372 # Job template for Java merge jobs based on
373 # '{project-name}-{stream}-merge-java'
374 # The purpose of this job template is to run:
375 # 1. maven clean deploy
376 #
377 # This project supports maven properties.
378 #
379 # Required Variables:
380 # branch: git branch (eg. stable/lithium or master)
381 # maven-properties: properties passed to maven
382
383 <<: *merge_java_defaults
384 name: '{project-name}-{stream}-merge-properties-java'
385
sebdet72bb3602020-06-11 17:24:40 +0200386 wrappers:
387 - lf-infra-wrappers:
388 build-timeout: '{build-timeout}'
389 jenkins-ssh-credential: '{jenkins-ssh-credential}'
390
Gary Wu6c702772018-08-06 18:48:02 -0700391- job-template:
392 # Job template for Java merge jobs that takes a maven template
393 #
394 # The purpose of this job template is to run:
395 # 1. maven clean deploy -P {mvn-profile}
396 #
397 # Required Variables:
398 # branch: git branch (eg. stable/lithium or master)
399
400 <<: *merge_java_defaults
401 name: '{project-name}-{stream}-merge-profile-java'
402
403 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700404 - lf-infra-pre-build
Gary Wu6c702772018-08-06 18:48:02 -0700405 - provide-maven-settings:
406 global-settings-file: 'global-settings'
407 settings-file: '{mvn-settings}'
408
409 - docker-login
410
411 - maven-target:
412 maven-version: '{maven-version}'
413 goals: 'clean deploy -P {mvn-profile} -B
414 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
415 settings: '{mvn-settings}'
416 settings-type: cfp
417 global-settings: 'global-settings'
418 global-settings-type: cfp
419 properties:
420 - docker.pull.registry=nexus3.onap.org:10001
421 - docker.push.registry=nexus3.onap.org:10003
422
423- job-template:
424 # Job template for Java merge jobs with POM not at the root
425 #
426 # The purpose of this job template is to run:
427 # 1. maven clean deploy
428 #
429 # This job supports subprojects.
430 #
431 # Required Variables:
432 # branch: git branch (eg. stable/lithium or master)
433 # pom: name/location of the pom.xml file relative to the workspace
434 # pattern: ant file-path pattern relative to the workspace used to
435 # trigger the job
436
437 <<: *merge_java_defaults
438 name: '{project-name}-{stream}-{subproject}-merge-java'
439
Gary Wu350fbcb2018-08-07 11:13:59 -0700440- job-template: &docker_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800441 # Job template for Docker daily jobs
442 #
443 # The purpose of this job template is to run:
444 # 1. login to the docker registry
445 # 2. docker push
446 #
447 # Required Variables:
448 # branch: git branch (eg. stable/lithium or master)
449
Anaël Clossonabbafb52017-02-09 17:55:10 +0100450 name: '{project-name}-{stream}-docker-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700451 id: '{project-name}-{stream}-docker-java-daily'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100452 project-type: freestyle
Jessica Wagantall34e6d6b2018-11-08 12:43:06 -0800453 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700454 disabled: '{disabled}'
Anil Belurd6802662020-07-28 13:45:10 +1000455 java-version: openjdk8
Anaël Clossonabbafb52017-02-09 17:55:10 +0100456 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700457 - infra-properties:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100458 build-days-to-keep: '{build-days-to-keep}'
459
460 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700461 - infra-parameters:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100462 project: '{project}'
463 branch: '{branch}'
464 refspec: 'refs/heads/{branch}'
465 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800466 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800467 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700468 - maven-params:
469 mvn-params: '{mvn-params}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100470
471 scm:
472 - gerrit-trigger-scm:
473 refspec: ''
474 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500475 submodule-recursive: '{submodule-recursive}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100476
Anaël Clossonabbafb52017-02-09 17:55:10 +0100477 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700478 - infra-wrappers:
Anaël Clossonabbafb52017-02-09 17:55:10 +0100479 build-timeout: '{build-timeout}'
480
481 triggers:
JulienBe0d8c2c32017-02-16 11:50:48 -0800482 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700483 - timed: '@daily'
JulienBe0d8c2c32017-02-16 11:50:48 -0800484 - gerrit-trigger-release-manually:
485 server: '{server-name}'
486 project: '{project}'
487 branch: '{branch}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100488
489 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700490 - lf-infra-pre-build
Anil Belurd6802662020-07-28 13:45:10 +1000491 - lf-update-java-alternatives:
492 java-version: "{java-version}"
493
Anaël Clossonabbafb52017-02-09 17:55:10 +0100494 - provide-maven-settings:
495 global-settings-file: 'global-settings'
496 settings-file: '{mvn-settings}'
Anaël Closson7313fea2017-02-14 15:56:21 +0100497
Anaël Closson63e090e2017-02-15 14:50:45 +0100498 - docker-login
499
Anaël Clossonabbafb52017-02-09 17:55:10 +0100500 - maven-docker-push-daily:
Andrew Grimberge2465882017-02-24 12:38:05 -0800501 maven-version: '{maven-version}'
Anaël Clossonabbafb52017-02-09 17:55:10 +0100502 mvn-settings: '{mvn-settings}'
503 pom: '{docker-pom}'
Anaël Closson30a5c772017-02-16 15:02:56 +0100504 # use default as mvn-profile if profile is not needed
505 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700506 mvn-params: '{mvn-params}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500507
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700508 publishers:
509 - infra-shiplogs:
510 maven-version: '{maven-version}'
511
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500512- job-template:
Gary Wu9e9210f2018-07-18 16:19:20 -0700513 # Job template for Docker daily jobs
514 #
515 # The purpose of this job template is to run:
516 # 1. login to the docker registry
517 # 2. docker push
518 #
519 # Required Variables:
520 # branch: git branch (eg. stable/lithium or master)
521
Gary Wu350fbcb2018-08-07 11:13:59 -0700522 <<: *docker_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700523 name: '{project-name}-{stream}-docker-java-daily'
524 id: docker-java-daily
Gary Wu9e9210f2018-07-18 16:19:20 -0700525 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700526 wrappers:
527 - infra-wrappers-docker-build:
528 build-timeout: '{build-timeout}'
529
Gary Wu9e9210f2018-07-18 16:19:20 -0700530- job-template:
JulienBe91c56ec2017-06-21 23:37:39 +0200531 # Job template for building & pushing docker images
532 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800533 # The purpose of this job template is to run:
JulienBe91c56ec2017-06-21 23:37:39 +0200534 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800535 # 2. run a specified shell builder
536 #
537 # Required Variables:
538 # pom: name/location of the pom.xml file relative to the workspace
539 # maven-properties: properties passed to maven
540
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500541 name: '{project-name}-{stream}-docker-java-shell-daily'
542 project-type: freestyle
Jessica Wagantallfe5efea2018-08-07 16:02:39 -0700543 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700544 disabled: '{disabled}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500545 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700546 - infra-properties:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500547 build-days-to-keep: '{build-days-to-keep}'
548
549 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700550 - infra-parameters:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500551 project: '{project}'
552 branch: '{branch}'
553 refspec: 'refs/heads/{branch}'
554 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800555 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800556 maven-version: '{maven-version}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500557
558 scm:
559 - gerrit-trigger-scm:
560 refspec: ''
561 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500562 submodule-recursive: '{submodule-recursive}'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500563
564 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700565 - infra-wrappers:
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500566 build-timeout: '{build-timeout}'
567
568 triggers:
569 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700570 - timed: '@daily'
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500571 - gerrit-trigger-release-manually:
572 server: '{server-name}'
573 project: '{project}'
574 branch: '{branch}'
575
576 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700577 - lf-infra-pre-build
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500578 - provide-maven-settings:
579 global-settings-file: 'global-settings'
580 settings-file: '{mvn-settings}'
581
582 - docker-login
583
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500584 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800585 maven-version: '{maven-version}'
Pamela Dragosh366fbc32017-02-19 20:09:09 -0500586 goals: '{mvn-goals}'
587 settings: '{mvn-settings}'
588 settings-type: cfp
589 global-settings: 'global-settings'
590 global-settings-type: cfp
Pamela Dragoshaccf6452017-02-17 08:09:31 -0500591
592 - shell: '{script}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000593
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700594 publishers:
595 - infra-shiplogs:
596 maven-version: '{maven-version}'
597
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000598- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800599 # Job template for building & pushing docker images
600 #
601 # The purpose of this job template is to run:
602 # 1. login to the docker registry
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700603 # 2. run a specified shell builder
604 #
605 # Required Variables:
606 # pom: name/location of the pom.xml file relative to the workspace
607 # maven-properties: properties passed to maven
608
609 name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily'
610 project-type: freestyle
611 node: '{build-node}'
612 disabled: '{disabled}'
613 properties:
614 - infra-properties:
615 build-days-to-keep: '{build-days-to-keep}'
616
617 parameters:
618 - infra-parameters:
619 project: '{project}'
620 branch: '{branch}'
621 refspec: 'refs/heads/{branch}'
622 artifacts: '{archive-artifacts}'
623 - maven-exec:
624 maven-version: '{maven-version}'
625
626 scm:
627 - gerrit-trigger-scm:
628 refspec: ''
629 choosing-strategy: 'default'
630 submodule-recursive: '{submodule-recursive}'
631
632 wrappers:
633 - infra-wrappers:
634 build-timeout: '{build-timeout}'
635
636 triggers:
637 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700638 - timed: '@daily'
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700639 - gerrit-trigger-release-manually:
640 server: '{server-name}'
641 project: '{project}'
642 branch: '{branch}'
643
644 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700645 - lf-infra-pre-build
Jessica Wagantall35b36e42018-08-07 16:10:25 -0700646 - provide-maven-settings:
647 global-settings-file: 'global-settings'
648 settings-file: '{mvn-settings}'
649
650 - docker-login
651
652 - maven-target:
653 maven-version: '{maven-version}'
654 pom: '{pom}'
655 goals: '{mvn-goals}'
656 settings: '{mvn-settings}'
657 settings-type: cfp
658 global-settings: 'global-settings'
659 global-settings-type: cfp
660
661 - shell: '{script}'
662
663 publishers:
664 - infra-shiplogs:
665 maven-version: '{maven-version}'
666
667- job-template:
668 # Job template for building & pushing docker images
669 #
670 # The purpose of this job template is to run:
671 # 1. login to the docker registry
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800672 # 2. inject a version.properties file and set versions
673 # 3. run a specified shell builder
674 #
675 # Required Variables:
676 # pom: name/location of the pom.xml file relative to the workspace
677 # maven-properties: properties passed to maven
678
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400679 name: '{project-name}-{stream}-docker-java-version-shell-daily'
680 project-type: freestyle
Jessica Wagantalld50aa192018-11-08 13:03:33 -0800681 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700682 disabled: '{disabled}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400683 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700684 - infra-properties:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400685 build-days-to-keep: '{build-days-to-keep}'
686
687 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700688 - infra-parameters:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400689 project: '{project}'
690 branch: '{branch}'
691 refspec: 'refs/heads/{branch}'
692 artifacts: '{archive-artifacts}'
693 - maven-exec:
694 maven-version: '{maven-version}'
695
696 scm:
697 - gerrit-trigger-scm:
698 refspec: ''
699 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500700 submodule-recursive: '{submodule-recursive}'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400701
702 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700703 - infra-wrappers:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400704 build-timeout: '{build-timeout}'
705
706 triggers:
707 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700708 - timed: '@daily'
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400709 - gerrit-trigger-release-manually:
710 server: '{server-name}'
711 project: '{project}'
712 branch: '{branch}'
713
714 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700715 - lf-infra-pre-build
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400716 - provide-maven-settings:
717 global-settings-file: 'global-settings'
718 settings-file: '{mvn-settings}'
719
720 - inject:
721 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700722 - maven-set-release-version:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400723 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700724 mvn-settings: '{mvn-settings}'
725 pom:
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400726
727 - docker-login
728
729 - maven-target:
730 maven-version: '{maven-version}'
731 goals: '{mvn-goals}'
732 settings: '{mvn-settings}'
733 settings-type: cfp
734 global-settings: 'global-settings'
735 global-settings-type: cfp
736
737 - shell: '{script}'
738
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700739 publishers:
740 - infra-shiplogs:
741 maven-version: '{maven-version}'
742
Pamela Dragosh2814e4d2017-03-15 12:52:55 -0400743- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800744 # Job template for building & pushing docker images
745 #
746 # The purpose of this job template is to run:
747 # 1. login to the docker registry
748 # 2. inject a version.properties file and set versions
749 # 3. run a specified shell builder
750 #
751 # This template supports subprojects.
752 #
753 # Required Variables:
754 # pom: name/location of the pom.xml file relative to the workspace
755 # maven-properties: properties passed to maven
756
Zhaoxing49773042017-10-13 17:14:35 +0800757 name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily'
758 project-type: freestyle
Jessica Wagantall612da802020-03-31 10:44:03 -0700759 node: 'ubuntu1804-docker-8c-8g'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700760 disabled: '{disabled}'
Zhaoxing49773042017-10-13 17:14:35 +0800761 properties:
762 - infra-properties:
763 build-days-to-keep: '{build-days-to-keep}'
764
765 parameters:
766 - infra-parameters:
767 project: '{project}'
768 branch: '{branch}'
769 refspec: 'refs/heads/{branch}'
770 artifacts: '{archive-artifacts}'
771 - maven-exec:
772 maven-version: '{maven-version}'
773
774 scm:
775 - gerrit-trigger-scm:
776 refspec: ''
777 choosing-strategy: 'default'
778 submodule-recursive: '{submodule-recursive}'
779
780 wrappers:
781 - infra-wrappers:
782 build-timeout: '{build-timeout}'
783
784 triggers:
785 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700786 - timed: '@daily'
Zhaoxing49773042017-10-13 17:14:35 +0800787 - gerrit-trigger-release-manually:
788 server: '{server-name}'
789 project: '{project}'
790 branch: '{branch}'
791
792 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700793 - lf-infra-pre-build
Zhaoxing49773042017-10-13 17:14:35 +0800794 - provide-maven-settings:
795 global-settings-file: 'global-settings'
796 settings-file: '{mvn-settings}'
797
798 - inject:
799 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700800 - maven-set-release-version:
Zhaoxing49773042017-10-13 17:14:35 +0800801 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700802 mvn-settings: '{mvn-settings}'
Zhaoxing49773042017-10-13 17:14:35 +0800803 pom: '{pom}'
Zhaoxing49773042017-10-13 17:14:35 +0800804
805 - docker-login
806
807 - maven-target:
808 maven-version: '{maven-version}'
809 pom: '{pom}'
810 goals: '{mvn-goals}'
811 settings: '{mvn-settings}'
812 settings-type: cfp
813 global-settings: 'global-settings'
814 global-settings-type: cfp
815
816 - shell: '{script}'
817
818 publishers:
819 - infra-shiplogs:
820 maven-version: '{maven-version}'
821
Gary Wu350fbcb2018-08-07 11:13:59 -0700822- job-template: &docker_version_java_defaults
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800823 # Job template for building & pushing docker images
824 #
825 # The purpose of this job template is to run:
826 # 1. login to the docker registry
827 # 2. inject a version.properties file and set versions
828 # 3. run a docker push
829 #
830 # Required Variables:
831 # pom: name/location of the pom.xml file relative to the workspace
832 # profile: the docker profile defined in the pom
833 # maven-properties: properties passed to maven
834
Patrick Brady39f388a2017-03-09 11:26:59 -0800835 name: '{project-name}-{stream}-docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700836 id: '{project-name}-{stream}-docker-version-java-daily'
Patrick Brady39f388a2017-03-09 11:26:59 -0800837 project-type: freestyle
Paul Vaduva6dd88542018-12-11 16:59:12 +0100838 node: '{build-node}'
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700839 disabled: '{disabled}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800840 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700841 - infra-properties:
Patrick Brady39f388a2017-03-09 11:26:59 -0800842 build-days-to-keep: '{build-days-to-keep}'
843
844 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700845 - infra-parameters:
Patrick Brady39f388a2017-03-09 11:26:59 -0800846 project: '{project}'
847 branch: '{branch}'
848 refspec: 'refs/heads/{branch}'
849 artifacts: '{archive-artifacts}'
850 - maven-exec:
851 maven-version: '{maven-version}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700852 - maven-params:
853 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800854
855 scm:
856 - gerrit-trigger-scm:
857 refspec: ''
858 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500859 submodule-recursive: '{submodule-recursive}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800860
861 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700862 - infra-wrappers:
Patrick Brady39f388a2017-03-09 11:26:59 -0800863 build-timeout: '{build-timeout}'
864
865 triggers:
866 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700867 - timed: '@daily'
Patrick Brady39f388a2017-03-09 11:26:59 -0800868 - gerrit-trigger-release-manually:
869 server: '{server-name}'
870 project: '{project}'
871 branch: '{branch}'
872
873 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700874 - lf-infra-pre-build
Patrick Brady39f388a2017-03-09 11:26:59 -0800875 - provide-maven-settings:
876 global-settings-file: 'global-settings'
877 settings-file: '{mvn-settings}'
878
879 - inject:
880 properties-file: version.properties
Gary Wu350fbcb2018-08-07 11:13:59 -0700881 - maven-set-release-version:
Patrick Brady39f388a2017-03-09 11:26:59 -0800882 maven-version: '{maven-version}'
Gary Wu350fbcb2018-08-07 11:13:59 -0700883 mvn-settings: '{mvn-settings}'
884 pom:
Patrick Brady39f388a2017-03-09 11:26:59 -0800885
886 - docker-login
887
888 - maven-docker-push-daily:
889 maven-version: '{maven-version}'
890 mvn-settings: '{mvn-settings}'
891 pom: '{docker-pom}'
892 # use default as mvn-profile if profile is not needed
893 mvn-profile: '{mvn-profile}'
Jessica Wagantallf8f030a2018-05-07 11:13:19 -0700894 mvn-params: '{mvn-params}'
Patrick Brady39f388a2017-03-09 11:26:59 -0800895
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700896 publishers:
897 - infra-shiplogs:
898 maven-version: '{maven-version}'
899
Patrick Brady39f388a2017-03-09 11:26:59 -0800900- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800901 # Job template for building & pushing docker images
902 #
903 # The purpose of this job template is to run:
Gary Wu9e9210f2018-07-18 16:19:20 -0700904 # 1. login to the docker registry
905 # 2. inject a version.properties file and set versions
906 # 3. run a docker push
907 #
908 # Required Variables:
909 # pom: name/location of the pom.xml file relative to the workspace
910 # profile: the docker profile defined in the pom
911 # maven-properties: properties passed to maven
912
Gary Wu350fbcb2018-08-07 11:13:59 -0700913 <<: *docker_version_java_defaults
Gary Wu9e9210f2018-07-18 16:19:20 -0700914 name: '{project-name}-{stream}-docker-version-java-daily'
915 id: 'docker-version-java-daily'
Gary Wu9e9210f2018-07-18 16:19:20 -0700916 node: '{build-node}'
Gary Wu9e9210f2018-07-18 16:19:20 -0700917 wrappers:
918 - infra-wrappers-docker-build:
919 build-timeout: '{build-timeout}'
920
Zhaoxing49773042017-10-13 17:14:35 +0800921- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -0800922 # Job template for building & pushing docker images for AAI specific repos
923 #
924 # The purpose of this job template is to run:
925 # 1. login to the docker registry
926 # 2. run maven goals
927 # 3. run include-docker-push.sh
928 #
929 # Required Variables:
930 # pom: name/location of the pom.xml file relative to the workspace
931 # maven-properties: properties passed to maven
932
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000933 name: '{project-name}-{stream}-aai-docker-java-daily'
934 project-type: freestyle
Jessica Wagantallab30bf62018-11-08 12:20:48 -0800935 node: '{build-node}'
Gary Wudc3f2952017-08-23 16:48:59 -0700936 docker-image-name: ''
Jessica Wagantall27a8a392018-03-16 17:22:11 -0700937 disabled: '{disabled}'
Jessica Wagantall392b8f02020-10-05 12:38:33 -0700938 java-version: 'openjdk8'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000939 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700940 - infra-properties:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000941 build-days-to-keep: '{build-days-to-keep}'
942
943 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700944 - infra-parameters:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000945 project: '{project}'
946 branch: '{branch}'
947 refspec: 'refs/heads/{branch}'
948 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -0800949 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800950 maven-version: '{maven-version}'
Gary Wudc3f2952017-08-23 16:48:59 -0700951 - docker-image-name:
952 docker-image-name: '{docker-image-name}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000953
954 scm:
955 - gerrit-trigger-scm:
956 refspec: ''
957 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500958 submodule-recursive: '{submodule-recursive}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000959
960 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700961 - infra-wrappers:
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000962 build-timeout: '{build-timeout}'
963
964 triggers:
965 # 12 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700966 - timed: '@daily'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000967 - gerrit-trigger-release-manually:
968 server: '{server-name}'
969 project: '{project}'
970 branch: '{branch}'
971
972 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700973 - lf-infra-pre-build
Jessica Wagantall392b8f02020-10-05 12:38:33 -0700974 - lf-update-java-alternatives:
975 java-version: "{java-version}"
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000976 - provide-maven-settings:
977 global-settings-file: 'global-settings'
978 settings-file: '{mvn-settings}'
979
980 - docker-login
981
982 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800983 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000984 pom: 'pom.xml'
Andrew Grimberge55b6222017-05-03 16:19:28 -0400985 goals: 'clean install -DskipTests -B
986 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000987 settings: '{mvn-settings}'
988 settings-type: cfp
989 global-settings: 'global-settings'
990 global-settings-type: cfp
991
992 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800993 maven-version: '{maven-version}'
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +0000994 pom: '{pom}'
995 goals: '{mvn-goals}'
996 settings: '{mvn-settings}'
997 settings-type: cfp
998 global-settings: 'global-settings'
999 global-settings-type: cfp
1000 properties:
1001 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -05001002 - docker.pull.registry=nexus3.onap.org:10001
1003 - docker.push.registry=nexus3.onap.org:10003
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001004
Venkata Harish K Kajurbf07d0a2017-03-26 11:58:15 +00001005 - shell: !include-raw-escape: include-docker-push.sh
Carsten Lund2d06a692017-02-23 18:23:07 +00001006
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -07001007 publishers:
1008 - infra-shiplogs:
1009 maven-version: '{maven-version}'
1010
Carsten Lund2d06a692017-02-23 18:23:07 +00001011- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001012 # Job template for Java merge jobs for SDC specific repos
ig61339fdb9d22017-04-03 17:47:19 +03001013 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001014 # The purpose of this job template is to run:
1015 # 1. maven clean deploy
ig61339fdb9d22017-04-03 17:47:19 +03001016 #
1017 # Required Variables:
1018 # branch: git branch (eg. stable/lithium or master)
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08001019
Gary Wu6c702772018-08-06 18:48:02 -07001020 <<: *merge_java_defaults
ig61339fdb9d22017-04-03 17:47:19 +03001021 name: '{project-name}-{stream}-sdc-merge-java'
1022
Paul Vaduva3aebd312019-02-01 13:35:21 +01001023 node: '{build-node}'
Jessica Wagantall9a89de42018-04-18 11:35:17 -07001024 build-timeout: 120
ig61339fdb9d22017-04-03 17:47:19 +03001025
ig61339fdb9d22017-04-03 17:47:19 +03001026 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -07001027 - lf-infra-pre-build
sebdet7ac81602020-09-16 14:12:44 +02001028 - lf-update-java-alternatives:
1029 java-version: "{java-version}"
ig61339fdb9d22017-04-03 17:47:19 +03001030 - provide-maven-settings:
1031 global-settings-file: 'global-settings'
1032 settings-file: '{mvn-settings}'
ig61339fdb9d22017-04-03 17:47:19 +03001033
1034 - docker-login
1035
Gary Wu6c702772018-08-06 18:48:02 -07001036 - maven-docker-push-daily:
ig61339fdb9d22017-04-03 17:47:19 +03001037 maven-version: '{maven-version}'
ig6133cb3f8232017-04-05 14:22:42 +03001038 mvn-settings: '{mvn-settings}'
1039 pom: '{docker-pom}'
1040 # use default as mvn-profile if profile is not needed
1041 mvn-profile: '{mvn-profile}'
Gary Wu6c702772018-08-06 18:48:02 -07001042 mvn-params: ''
Bengt Thuree1515daa2019-09-10 13:39:04 +02001043
1044- job-template:
1045 # Job template for Java merge jobs on multiple architectures
1046 #
1047 # The purpose of this job template is to:
1048 # 1. Run parallel {project-name}-{stream}-verify-java jobs for each supported architecture
1049 # 2. Build and push a docker manifest list for the images created by
1050 # the previous jobs
1051
1052 name: '{project-name}-multiarch-{stream}-merge-java'
1053 node: '{build-node}'
1054 project-type: multijob
1055 disabled: '{obj:disabled}'
1056 pattern: '**'
1057
1058 parameters:
1059 - lf-infra-parameters:
1060 project: '{project}'
1061 stream: '{stream}'
1062 branch: '{branch}'
1063 - string:
1064 name: DOCKER_REGISTRY
1065 default: 'none'
1066 - string:
1067 name: DOCKERHUB_REGISTRY
1068 default: 'registry-1.docker.io'
1069
1070 properties:
1071 - throttle:
1072 max-per-node: 1
1073 option: 'project'
1074 - build-blocker:
1075 use-build-blocker: true
1076 blocking-jobs:
1077 - '{project-name}-.*-merge-.*'
1078 blocking-level: 'NODE'
1079
1080 scm:
1081 - gerrit-trigger-scm:
1082 refspec: ''
1083 choosing-strategy: 'default'
1084 submodule-recursive: '{submodule-recursive}'
1085
1086 wrappers:
1087 - infra-wrappers:
1088 build-timeout: '{build-timeout}'
1089
1090 triggers:
1091 - gerrit-trigger-patch-merged:
1092 server: '{server-name}'
1093 project: '{project}'
1094 branch: '{branch}'
1095 files: '{pattern}'
1096
1097 builders:
1098 - multijob:
1099 name: 'build docker images'
1100 condition: ALWAYS
1101 execution-type: PARALLEL
1102 projects:
1103 - name: '{project-name}-amd64-{stream}-merge-java'
1104 kill-phase-on: FAILURE
1105 current-parameters: true
1106 - name: '{project-name}-arm64-{stream}-merge-java'
1107 kill-phase-on: NEVER
1108 current-parameters: true
1109 - multijob:
1110 name: 'publish docker manifest'
1111 condition: SUCCESSFUL
1112 execution-type: PARALLEL
1113 projects:
1114 - name: '{project-name}-docker-manifest-{stream}'
1115 current-parameters: true
1116 predefined-parameters: |
1117 PARENT_JOB_NAME=$JOB_NAME
1118 DOCKERHUB_REGISTRY=docker.io