@@ -162,6 +162,12 @@ resources:
162162 source :
163163 << : *registry-image-resource-source
164164 repository : ((docker-hub-organization))/spring-boot-ci-jdk15
165+ - name : ci-image-jdk16
166+ type : registry-image
167+ icon : docker
168+ source :
169+ << : *registry-image-resource-source
170+ repository : ((docker-hub-organization))/spring-boot-ci-jdk16
165171- name : artifactory-repo
166172 type : artifactory-resource
167173 icon : package-variant
@@ -194,6 +200,14 @@ resources:
194200 access_token : ((github-ci-status-token))
195201 branch : ((branch))
196202 context : jdk15-build
203+ - name : repo-status-jdk16-build
204+ type : github-status-resource
205+ icon : eye-check-outline
206+ source :
207+ repository : ((github-repo-name))
208+ access_token : ((github-ci-status-token))
209+ branch : ((branch))
210+ context : jdk16-build
197211- name : slack-alert
198212 type : slack-notification
199213 icon : slack
@@ -243,6 +257,13 @@ jobs:
243257 image : ci-image-jdk15
244258 vars :
245259 ci-image-name : ci-image-jdk15
260+ - task : build-ci-image-jdk16
261+ privileged : true
262+ file : git-repo/ci/tasks/build-ci-image.yml
263+ output_mapping :
264+ image : ci-image-jdk16
265+ vars :
266+ ci-image-name : ci-image-jdk16
246267 - in_parallel :
247268 - put : ci-image
248269 params :
@@ -253,6 +274,9 @@ jobs:
253274 - put : ci-image-jdk15
254275 params :
255276 image : ci-image-jdk15/image.tar
277+ - put : ci-image-jdk16
278+ params :
279+ image : ci-image-jdk16/image.tar
256280- name : detect-jdk-updates
257281 plan :
258282 - get : git-repo
@@ -278,6 +302,12 @@ jobs:
278302 params :
279303 << : *github-task-params
280304 JDK_VERSION : java15
305+ - task : detect-jdk16-update
306+ image : ci-image
307+ file : git-repo/ci/tasks/detect-jdk-updates.yml
308+ params :
309+ << : *github-task-params
310+ JDK_VERSION : java16
281311- name : detect-ubuntu-image-updates
282312 plan :
283313 - get : git-repo
@@ -415,6 +445,38 @@ jobs:
415445 - put : slack-alert
416446 params :
417447 << : *slack-success-params
448+ - name : jdk16-build
449+ serial : true
450+ public : true
451+ plan :
452+ - get : ci-image-jdk16
453+ - get : git-repo
454+ trigger : true
455+ - put : repo-status-jdk16-build
456+ params : { state: "pending", commit: "git-repo" }
457+ - do :
458+ - task : build-project
459+ image : ci-image-jdk16
460+ privileged : true
461+ timeout : ((task-timeout))
462+ file : git-repo/ci/tasks/build-project.yml
463+ params :
464+ BRANCH : ((branch))
465+ TOOLCHAIN_JAVA_VERSION : 16
466+ << : *gradle-enterprise-task-params
467+ << : *docker-hub-task-params
468+ on_failure :
469+ do :
470+ - put : repo-status-jdk16-build
471+ params : { state: "failure", commit: "git-repo" }
472+ - put : slack-alert
473+ params :
474+ << : *slack-fail-params
475+ - put : repo-status-jdk16-build
476+ params : { state: "success", commit: "git-repo" }
477+ - put : slack-alert
478+ params :
479+ << : *slack-success-params
418480- name : windows-build
419481 serial : true
420482 plan :
@@ -638,7 +700,7 @@ jobs:
638700 repository : updated-homebrew-tap-repo
639701groups :
640702- name : " builds"
641- jobs : ["build", "jdk11-build", "jdk15-build", "windows-build"]
703+ jobs : ["build", "jdk11-build", "jdk15-build", "jdk16-build", " windows-build"]
642704- name : " releases"
643705 jobs : ["stage-milestone", "stage-rc", "stage-release", "promote-milestone", "promote-rc", "promote-release", "create-github-release", "publish-to-sdkman", "update-homebrew-tap"]
644706- name : " ci-images"
0 commit comments