Skip to content

Commit 0d32481

Browse files
committed
Add Java 13 CI
Closes gh-16970
1 parent ad51972 commit 0d32481

File tree

3 files changed

+82
-2
lines changed

3 files changed

+82
-2
lines changed

ci/images/get-jdk-url.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ case "$1" in
1111
java12)
1212
echo "https://github.com/AdoptOpenJDK/openjdk12-binaries/releases/download/jdk-12.0.1%2B12/OpenJDK12U-jdk_x64_linux_hotspot_12.0.1_12.tar.gz"
1313
;;
14-
*)
14+
java13)
15+
echo "https://github.com/AdoptOpenJDK/openjdk13-binaries/releases/download/jdk13u-2019-07-17-05-32/OpenJDK13U-jdk_x64_linux_hotspot_2019-07-17-05-32.tar.gz"
16+
;;
17+
*)
1518
echo $"Unknown java version"
1619
exit 1
1720
esac
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM ubuntu:bionic-20181018
2+
3+
ADD setup.sh /setup.sh
4+
ADD get-jdk-url.sh /get-jdk-url.sh
5+
RUN ./setup.sh java13
6+
7+
ENV JAVA_HOME /opt/openjdk
8+
ENV PATH $JAVA_HOME/bin:$PATH
9+
ADD docker-lib.sh /docker-lib.sh
10+
11+
ENTRYPOINT [ "switch", "shell=/bin/bash", "--", "codep", "/bin/docker daemon" ]

ci/pipeline.yml

+67-1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ resources:
8383
username: ((docker-hub-username))
8484
password: ((docker-hub-password))
8585
tag: ((branch))
86+
- name: spring-boot-jdk13-ci-image
87+
type: docker-image
88+
icon: docker
89+
source:
90+
repository: ((docker-hub-organization))/spring-boot-jdk13-ci-image
91+
username: ((docker-hub-username))
92+
password: ((docker-hub-password))
93+
tag: ((branch))
8694
- name: artifactory-repo
8795
type: artifactory-resource
8896
icon: package-variant
@@ -115,6 +123,14 @@ resources:
115123
access_token: ((github-ci-status-token))
116124
branch: ((branch))
117125
context: jdk12-build
126+
- name: repo-status-jdk13-build
127+
type: github-status-resource
128+
icon: eye-check-outline
129+
source:
130+
repository: ((github-repo-name))
131+
access_token: ((github-ci-status-token))
132+
branch: ((branch))
133+
context: jdk13-build
118134
- name: slack-alert
119135
type: slack-notification
120136
icon: slack
@@ -144,6 +160,10 @@ jobs:
144160
params:
145161
build: ci-images-git-repo/ci/images
146162
dockerfile: ci-images-git-repo/ci/images/spring-boot-jdk12-ci-image/Dockerfile
163+
- put: spring-boot-jdk13-ci-image
164+
params:
165+
build: ci-images-git-repo/ci/images
166+
dockerfile: ci-images-git-repo/ci/images/spring-boot-jdk13-ci-image/Dockerfile
147167
- name: detect-jdk-updates
148168
plan:
149169
- get: git-repo
@@ -382,6 +402,52 @@ jobs:
382402
silent: true
383403
icon_emoji: ":concourse:"
384404
username: concourse-ci
405+
- name: jdk13-build
406+
serial: true
407+
public: true
408+
plan:
409+
- get: spring-boot-jdk13-ci-image
410+
- get: git-repo
411+
trigger: true
412+
- put: repo-status-jdk13-build
413+
params: { state: "pending", commit: "git-repo" }
414+
- do:
415+
- task: build-project
416+
privileged: true
417+
timeout: 1h30m
418+
image: spring-boot-jdk13-ci-image
419+
file: git-repo/ci/tasks/build-project.yml
420+
- in_parallel:
421+
- task: build-smoke-tests
422+
timeout: 1h30m
423+
image: spring-boot-jdk13-ci-image
424+
file: git-repo/ci/tasks/build-smoke-tests.yml
425+
- task: build-integration-tests
426+
timeout: 1h30m
427+
image: spring-boot-jdk13-ci-image
428+
file: git-repo/ci/tasks/build-integration-tests.yml
429+
- task: build-deployment-tests
430+
timeout: 1h30m
431+
image: spring-boot-jdk13-ci-image
432+
file: git-repo/ci/tasks/build-deployment-tests.yml
433+
on_failure:
434+
do:
435+
- put: repo-status-jdk13-build
436+
params: { state: "failure", commit: "git-repo" }
437+
- put: slack-alert
438+
params:
439+
text: ":concourse-failed: <https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} failed!>"
440+
silent: true
441+
icon_emoji: ":concourse:"
442+
username: concourse-ci
443+
- put: repo-status-jdk13-build
444+
params: { state: "success", commit: "git-repo" }
445+
- put: slack-alert
446+
params:
447+
text: ":concourse-succeeded: <https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} was successful!>"
448+
silent: true
449+
icon_emoji: ":concourse:"
450+
username: concourse-ci
385451
- name: stage-milestone
386452
serial: true
387453
plan:
@@ -556,7 +622,7 @@ jobs:
556622
body: generated-release-notes/release-notes.md
557623
groups:
558624
- name: "Build"
559-
jobs: ["build", "jdk11-build", "jdk12-build"]
625+
jobs: ["build", "jdk11-build", "jdk12-build", "jdk13-build"]
560626
- name: "Release"
561627
jobs: ["stage-milestone", "stage-rc", "stage-release", "promote-milestone", "promote-rc", "promote-release", "sync-to-maven-central"]
562628
- name: "CI Images"

0 commit comments

Comments
 (0)