Skip to content

Commit 9a94fb3

Browse files
committed
Add ci build for Java 11
Closes gh-14028
1 parent 4fdb504 commit 9a94fb3

File tree

2 files changed

+97
-1
lines changed

2 files changed

+97
-1
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
FROM openjdk:11-ea-24-jdk
2+
3+
RUN apt-get update && \
4+
apt-get install -y git && \
5+
apt-get install -y libxml2-utils && \
6+
apt-get install -y jq
7+
8+
ADD https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.2/concourse-java.sh /opt/
9+
10+
ENV DOCKER_VERSION=17.05.0-ce \
11+
ENTRYKIT_VERSION=0.4.0
12+
13+
RUN apt-get update && \
14+
apt-get install -y curl && \
15+
apt-get install -y libudev1 && \
16+
apt-get install -y iptables && \
17+
curl https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz | tar zx && \
18+
mv /docker/* /bin/ && chmod +x /bin/docker*
19+
20+
# Install entrykit
21+
RUN curl -L https://github.com/progrium/entrykit/releases/download/v${ENTRYKIT_VERSION}/entrykit_${ENTRYKIT_VERSION}_Linux_x86_64.tgz | tar zx && \
22+
chmod +x entrykit && \
23+
mv entrykit /bin/entrykit && \
24+
entrykit --symlink
25+
26+
ADD https://raw.githubusercontent.com/spring-projects/spring-boot/master/ci/images/docker-lib.sh /docker-lib.sh
27+
28+
ENTRYPOINT [ \
29+
"switch", \
30+
"shell=/bin/sh", "--", \
31+
"codep", \
32+
"/bin/docker daemon" \
33+
]

ci/pipeline.yml

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ resources:
6161
username: ((docker-hub-username))
6262
password: ((docker-hub-password))
6363
tag: ((branch))
64+
- name: spring-boot-jdk11-ci-image
65+
type: docker-image
66+
source:
67+
repository: ((docker-hub-organization))/spring-boot-jdk11-ci-image
68+
username: ((docker-hub-username))
69+
password: ((docker-hub-password))
70+
tag: ((branch))
6471
- name: artifactory-repo
6572
type: artifactory-resource
6673
source:
@@ -89,6 +96,13 @@ resources:
8996
access_token: ((github-access-token))
9097
branch: ((branch))
9198
context: jdk10-build
99+
- name: repo-status-jdk11-build
100+
type: github-status-resource
101+
source:
102+
repository: ((github-repo-name))
103+
access_token: ((github-access-token))
104+
branch: ((branch))
105+
context: jdk11-build
92106
- name: slack-alert
93107
type: slack-notification
94108
source:
@@ -107,6 +121,9 @@ jobs:
107121
- put: spring-boot-jdk10-ci-image
108122
params:
109123
build: ci-images-git-repo/ci/images/spring-boot-jdk10-ci-image
124+
- put: spring-boot-jdk11-ci-image
125+
params:
126+
build: ci-images-git-repo/ci/images/spring-boot-jdk11-ci-image
110127
- name: build
111128
serial: true
112129
public: true
@@ -301,6 +318,52 @@ jobs:
301318
silent: true
302319
icon_emoji: ":concourse:"
303320
username: concourse-ci
321+
- name: jdk11-build
322+
serial: true
323+
public: true
324+
plan:
325+
- get: spring-boot-jdk11-ci-image
326+
- get: git-repo
327+
trigger: true
328+
- put: repo-status-jdk11-build
329+
params: { state: "pending", commit: "git-repo" }
330+
- do:
331+
- task: build-project
332+
privileged: true
333+
timeout: 1h30m
334+
image: spring-boot-jdk11-ci-image
335+
file: git-repo/ci/tasks/build-project.yml
336+
- aggregate:
337+
- task: build-samples
338+
timeout: 1h30m
339+
image: spring-boot-jdk11-ci-image
340+
file: git-repo/ci/tasks/build-samples.yml
341+
- task: build-integration-tests
342+
timeout: 1h30m
343+
image: spring-boot-jdk11-ci-image
344+
file: git-repo/ci/tasks/build-integration-tests.yml
345+
- task: build-deployment-tests
346+
timeout: 1h30m
347+
image: spring-boot-jdk11-ci-image
348+
file: git-repo/ci/tasks/build-deployment-tests.yml
349+
on_failure:
350+
do:
351+
- put: repo-status-jdk11-build
352+
params: { state: "failure", commit: "git-repo" }
353+
- put: slack-alert
354+
params:
355+
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!>"
356+
silent: true
357+
icon_emoji: ":concourse:"
358+
username: concourse-ci
359+
- put: repo-status-jdk11-build
360+
params: { state: "success", commit: "git-repo" }
361+
- put: slack-alert
362+
params:
363+
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!>"
364+
silent: true
365+
icon_emoji: ":concourse:"
366+
username: concourse-ci
304367
- name: stage-milestone
305368
serial: true
306369
plan:
@@ -436,7 +499,7 @@ jobs:
436499
BINTRAY_REPO: ((bintray-repo))
437500
groups:
438501
- name: "Build"
439-
jobs: ["build", "jdk9-build", "jdk10-build"]
502+
jobs: ["build", "jdk9-build", "jdk10-build", "jdk11-build"]
440503
- name: "Release"
441504
jobs: ["stage-milestone", "stage-rc", "stage-release", "promote-milestone", "promote-rc", "promote-release", "sync-to-maven-central"]
442505
- name: "CI Images"

0 commit comments

Comments
 (0)