Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
85218db2
Commit
85218db2
authored
Jun 05, 2020
by
dreis2211
Committed by
Stephane Nicoll
Jun 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Java 15 CI
See gh-21713
parent
3d27391d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
6 deletions
+74
-6
get-jdk-url.sh
ci/images/get-jdk-url.sh
+3
-0
Dockerfile
ci/images/spring-boot-jdk15-ci-image/Dockerfile
+12
-0
pipeline.yml
ci/pipeline.yml
+51
-2
detect-jdk-updates.sh
ci/scripts/detect-jdk-updates.sh
+8
-4
No files found.
ci/images/get-jdk-url.sh
View file @
85218db2
...
...
@@ -11,6 +11,9 @@ case "$1" in
java14
)
echo
"https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk-14.0.1%2B7/OpenJDK14U-jdk_x64_linux_hotspot_14.0.1_7.tar.gz"
;;
java15
)
echo
"https://github.com/AdoptOpenJDK/openjdk15-binaries/releases/download/jdk-2020-05-26-19-22/OpenJDK-jdk_x64_linux_hotspot_2020-05-26-11-00.tar.gz"
;;
*
)
echo
$"Unknown java version"
exit
1
...
...
ci/images/spring-boot-jdk15-ci-image/Dockerfile
0 → 100644
View file @
85218db2
FROM
ubuntu:bionic-20200403
ADD
setup.sh /setup.sh
ADD
get-jdk-url.sh /get-jdk-url.sh
ADD
get-docker-url.sh /get-docker-url.sh
RUN
./setup.sh java15
ENV
JAVA_HOME /opt/openjdk
ENV
PATH $JAVA_HOME/bin:$PATH
ADD
docker-lib.sh /docker-lib.sh
ENTRYPOINT
[ "switch", "shell=/bin/bash", "--", "codep", "/bin/docker daemon" ]
ci/pipeline.yml
View file @
85218db2
...
...
@@ -151,6 +151,12 @@ resources:
source
:
<<
:
*docker-resource-source
repository
:
((docker-hub-organization))/spring-boot-jdk14-ci-image
-
name
:
spring-boot-jdk15-ci-image
type
:
docker-image
icon
:
docker
source
:
<<
:
*docker-resource-source
repository
:
((docker-hub-organization))/spring-boot-jdk15-ci-image
-
name
:
artifactory-repo
type
:
artifactory-resource
icon
:
package-variant
...
...
@@ -183,6 +189,14 @@ resources:
access_token
:
((github-ci-status-token))
branch
:
((branch))
context
:
jdk14-build
-
name
:
repo-status-jdk15-build
type
:
github-status-resource
icon
:
eye-check-outline
source
:
repository
:
((github-repo-name))
access_token
:
((github-ci-status-token))
branch
:
((branch))
context
:
jdk15-build
-
name
:
slack-alert
type
:
slack-notification
icon
:
slack
...
...
@@ -217,6 +231,10 @@ jobs:
params
:
build
:
ci-images-git-repo/ci/images
dockerfile
:
ci-images-git-repo/ci/images/spring-boot-jdk14-ci-image/Dockerfile
-
put
:
spring-boot-jdk15-ci-image
params
:
build
:
ci-images-git-repo/ci/images
dockerfile
:
ci-images-git-repo/ci/images/spring-boot-jdk15-ci-image/Dockerfile
-
name
:
detect-jdk-updates
plan
:
-
get
:
git-repo
...
...
@@ -242,6 +260,12 @@ jobs:
params
:
<<
:
*github-task-params
JDK_VERSION
:
java14
-
task
:
detect-jdk15-update
image
:
spring-boot-ci-image
file
:
git-repo/ci/tasks/detect-jdk-updates.yml
params
:
<<
:
*github-task-params
JDK_VERSION
:
java15
-
name
:
detect-ubuntu-image-updates
plan
:
-
get
:
git-repo
...
...
@@ -378,7 +402,32 @@ jobs:
params
:
{
state
:
"
success"
,
commit
:
"
git-repo"
}
-
put
:
slack-alert
params
:
<<
:
*slack-success-params
<<
:
*slack-success-params
-
name
:
jdk15-build
serial
:
true
public
:
true
plan
:
-
get
:
spring-boot-jdk15-ci-image
-
get
:
git-repo
trigger
:
true
-
put
:
repo-status-jdk15-build
params
:
{
state
:
"
pending"
,
commit
:
"
git-repo"
}
-
do
:
-
task
:
build-project
image
:
spring-boot-jdk15-ci-image
<<
:
*build-project-task-params
on_failure
:
do
:
-
put
:
repo-status-jdk15-build
params
:
{
state
:
"
failure"
,
commit
:
"
git-repo"
}
-
put
:
slack-alert
params
:
<<
:
*slack-fail-params
-
put
:
repo-status-jdk15-build
params
:
{
state
:
"
success"
,
commit
:
"
git-repo"
}
-
put
:
slack-alert
params
:
<<
:
*slack-success-params
-
name
:
windows-build
serial
:
true
plan
:
...
...
@@ -568,7 +617,7 @@ jobs:
body
:
generated-release-notes/release-notes.md
groups
:
-
name
:
"
Build"
jobs
:
[
"
build"
,
"
jdk11-build"
,
"
jdk14-build"
,
"
windows-build"
]
jobs
:
[
"
build"
,
"
jdk11-build"
,
"
jdk14-build"
,
"
jdk15-build"
,
"
windows-build"
]
-
name
:
"
Release"
jobs
:
[
"
stage-milestone"
,
"
stage-rc"
,
"
stage-release"
,
"
promote-milestone"
,
"
promote-rc"
,
"
promote-release"
,
"
sync-to-maven-central"
]
-
name
:
"
CI
Images"
...
...
ci/scripts/detect-jdk-updates.sh
View file @
85218db2
...
...
@@ -2,15 +2,19 @@
case
"
$JDK_VERSION
"
in
java8
)
BASE_URL
=
"https://api.adoptopenjdk.net/v3/assets/feature_releases/8"
BASE_URL
=
"https://api.adoptopenjdk.net/v3/assets/feature_releases/8
/ga
"
ISSUE_TITLE
=
"Upgrade Java 8 version in CI image"
;;
java11
)
BASE_URL
=
"https://api.adoptopenjdk.net/v3/assets/feature_releases/11"
BASE_URL
=
"https://api.adoptopenjdk.net/v3/assets/feature_releases/11
/ga
"
ISSUE_TITLE
=
"Upgrade Java 11 version in CI image"
;;
java14
)
BASE_URL
=
"https://api.adoptopenjdk.net/v3/assets/feature_releases/14"
BASE_URL
=
"https://api.adoptopenjdk.net/v3/assets/feature_releases/14/ga"
ISSUE_TITLE
=
"Upgrade Java 14 version in CI image"
;;
java15
)
BASE_URL
=
"https://api.adoptopenjdk.net/v3/assets/feature_releases/15/ea"
ISSUE_TITLE
=
"Upgrade Java 14 version in CI image"
;;
*
)
...
...
@@ -18,7 +22,7 @@ case "$JDK_VERSION" in
exit
1
;
esac
response
=
$(
curl
-s
${
BASE_URL
}
\
/
ga
\
?
architecture
\=
x64
\&
heap_size
\=
normal
\&
image_type
\=
jdk
\&
jvm_impl
\=
hotspot
\&
os
\=
linux
\&
sort_order
\=
DESC
\&
vendor
\=
adoptopenjdk
)
response
=
$(
curl
-s
${
BASE_URL
}
\?
architecture
\=
x64
\&
heap_size
\=
normal
\&
image_type
\=
jdk
\&
jvm_impl
\=
hotspot
\&
os
\=
linux
\&
sort_order
\=
DESC
\&
vendor
\=
adoptopenjdk
)
latest
=
$(
jq
-r
'.[0].binaries[0].package.link'
<<<
"
$response
"
)
current
=
$(
git-repo/ci/images/get-jdk-url.sh
${
JDK_VERSION
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment