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
dec5a8cc
Commit
dec5a8cc
authored
Mar 25, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.x'
parents
b055410a
274e9ede
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
94 additions
and
2 deletions
+94
-2
get-jdk-url.sh
ci/images/get-jdk-url.sh
+3
-0
Dockerfile
ci/images/spring-boot-jdk12-ci-image/Dockerfile
+11
-0
pipeline.yml
ci/pipeline.yml
+74
-1
detect-jdk-updates.sh
ci/scripts/detect-jdk-updates.sh
+4
-0
TestJarCreator.java
.../java/org/springframework/boot/loader/TestJarCreator.java
+2
-1
No files found.
ci/images/get-jdk-url.sh
View file @
dec5a8cc
...
@@ -8,6 +8,9 @@ case "$1" in
...
@@ -8,6 +8,9 @@ case "$1" in
java11
)
java11
)
echo
"https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.2%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.2_9.tar.gz"
echo
"https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.2%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.2_9.tar.gz"
;;
;;
java12
)
echo
"https://github.com/AdoptOpenJDK/openjdk12-binaries/releases/download/jdk-12%2B33/OpenJDK12U-jdk_x64_linux_hotspot_12_33.tar.gz"
;;
*
)
*
)
echo
$"Unknown java version"
echo
$"Unknown java version"
exit
1
exit
1
...
...
ci/images/spring-boot-jdk12-ci-image/Dockerfile
0 → 100644
View file @
dec5a8cc
FROM
ubuntu:bionic-20181018
ADD
setup.sh /setup.sh
ADD
get-jdk-url.sh /get-jdk-url.sh
RUN
./setup.sh java12
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 @
dec5a8cc
...
@@ -68,6 +68,13 @@ resources:
...
@@ -68,6 +68,13 @@ resources:
username
:
((docker-hub-username))
username
:
((docker-hub-username))
password
:
((docker-hub-password))
password
:
((docker-hub-password))
tag
:
((branch))
tag
:
((branch))
-
name
:
spring-boot-jdk12-ci-image
type
:
docker-image
source
:
repository
:
((docker-hub-organization))/spring-boot-jdk12-ci-image
username
:
((docker-hub-username))
password
:
((docker-hub-password))
tag
:
((branch))
-
name
:
artifactory-repo
-
name
:
artifactory-repo
type
:
artifactory-resource
type
:
artifactory-resource
source
:
source
:
...
@@ -89,6 +96,13 @@ resources:
...
@@ -89,6 +96,13 @@ resources:
access_token
:
((github-access-token))
access_token
:
((github-access-token))
branch
:
((branch))
branch
:
((branch))
context
:
jdk11-build
context
:
jdk11-build
-
name
:
repo-status-jdk12-build
type
:
github-status-resource
source
:
repository
:
((github-repo-name))
access_token
:
((github-access-token))
branch
:
((branch))
context
:
jdk12-build
-
name
:
slack-alert
-
name
:
slack-alert
type
:
slack-notification
type
:
slack-notification
source
:
source
:
...
@@ -112,6 +126,10 @@ jobs:
...
@@ -112,6 +126,10 @@ jobs:
params
:
params
:
build
:
ci-images-git-repo/ci/images
build
:
ci-images-git-repo/ci/images
dockerfile
:
ci-images-git-repo/ci/images/spring-boot-jdk11-ci-image/Dockerfile
dockerfile
:
ci-images-git-repo/ci/images/spring-boot-jdk11-ci-image/Dockerfile
-
put
:
spring-boot-jdk12-ci-image
params
:
build
:
ci-images-git-repo/ci/images
dockerfile
:
ci-images-git-repo/ci/images/spring-boot-jdk12-ci-image/Dockerfile
-
name
:
detect-jdk-updates
-
name
:
detect-jdk-updates
plan
:
plan
:
-
get
:
git-repo
-
get
:
git-repo
...
@@ -137,6 +155,15 @@ jobs:
...
@@ -137,6 +155,15 @@ jobs:
GITHUB_USERNAME
:
((github-username))
GITHUB_USERNAME
:
((github-username))
JDK_VERSION
:
java11
JDK_VERSION
:
java11
image
:
spring-boot-ci-image
image
:
spring-boot-ci-image
-
task
:
detect-jdk12-update
file
:
git-repo/ci/tasks/detect-jdk-updates.yml
params
:
GITHUB_REPO
:
spring-boot
GITHUB_ORGANIZATION
:
spring-projects
GITHUB_PASSWORD
:
((github-password))
GITHUB_USERNAME
:
((github-username))
JDK_VERSION
:
java12
image
:
spring-boot-ci-image
-
name
:
build
-
name
:
build
serial
:
true
serial
:
true
public
:
true
public
:
true
...
@@ -287,6 +314,52 @@ jobs:
...
@@ -287,6 +314,52 @@ jobs:
silent
:
true
silent
:
true
icon_emoji
:
"
:concourse:"
icon_emoji
:
"
:concourse:"
username
:
concourse-ci
username
:
concourse-ci
-
name
:
jdk12-build
serial
:
true
public
:
true
plan
:
-
get
:
spring-boot-jdk12-ci-image
-
get
:
git-repo
trigger
:
true
-
put
:
repo-status-jdk12-build
params
:
{
state
:
"
pending"
,
commit
:
"
git-repo"
}
-
do
:
-
task
:
build-project
privileged
:
true
timeout
:
1h30m
image
:
spring-boot-jdk12-ci-image
file
:
git-repo/ci/tasks/build-project.yml
-
aggregate
:
-
task
:
build-samples
timeout
:
1h30m
image
:
spring-boot-jdk12-ci-image
file
:
git-repo/ci/tasks/build-samples.yml
-
task
:
build-integration-tests
timeout
:
1h30m
image
:
spring-boot-jdk12-ci-image
file
:
git-repo/ci/tasks/build-integration-tests.yml
-
task
:
build-deployment-tests
timeout
:
1h30m
image
:
spring-boot-jdk12-ci-image
file
:
git-repo/ci/tasks/build-deployment-tests.yml
on_failure
:
do
:
-
put
:
repo-status-jdk12-build
params
:
{
state
:
"
failure"
,
commit
:
"
git-repo"
}
-
put
:
slack-alert
params
:
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!>"
silent
:
true
icon_emoji
:
"
:concourse:"
username
:
concourse-ci
-
put
:
repo-status-jdk12-build
params
:
{
state
:
"
success"
,
commit
:
"
git-repo"
}
-
put
:
slack-alert
params
:
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!>"
silent
:
true
icon_emoji
:
"
:concourse:"
username
:
concourse-ci
-
name
:
stage-milestone
-
name
:
stage-milestone
serial
:
true
serial
:
true
plan
:
plan
:
...
@@ -457,7 +530,7 @@ jobs:
...
@@ -457,7 +530,7 @@ jobs:
body
:
generated-release-notes/release-notes.md
body
:
generated-release-notes/release-notes.md
groups
:
groups
:
-
name
:
"
Build"
-
name
:
"
Build"
jobs
:
[
"
build"
,
"
jdk11-build"
]
jobs
:
[
"
build"
,
"
jdk11-build"
,
"
jdk12-build"
]
-
name
:
"
Release"
-
name
:
"
Release"
jobs
:
[
"
stage-milestone"
,
"
stage-rc"
,
"
stage-release"
,
"
promote-milestone"
,
"
promote-rc"
,
"
promote-release"
,
"
sync-to-maven-central"
]
jobs
:
[
"
stage-milestone"
,
"
stage-rc"
,
"
stage-release"
,
"
promote-milestone"
,
"
promote-rc"
,
"
promote-release"
,
"
sync-to-maven-central"
]
-
name
:
"
CI
Images"
-
name
:
"
CI
Images"
...
...
ci/scripts/detect-jdk-updates.sh
View file @
dec5a8cc
...
@@ -10,6 +10,10 @@ case "$JDK_VERSION" in
...
@@ -10,6 +10,10 @@ case "$JDK_VERSION" in
BASE_URL
=
"https://api.adoptopenjdk.net/v2/info/releases/openjdk11"
BASE_URL
=
"https://api.adoptopenjdk.net/v2/info/releases/openjdk11"
ISSUE_TITLE
=
"Upgrade Java 11 version in CI image"
ISSUE_TITLE
=
"Upgrade Java 11 version in CI image"
;;
;;
java12
)
BASE_URL
=
"https://api.adoptopenjdk.net/v2/info/releases/openjdk12"
ISSUE_TITLE
=
"Upgrade Java 12 version in CI image"
;;
*
)
*
)
echo
$"Unknown java version"
echo
$"Unknown java version"
exit
1
;
exit
1
;
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/TestJarCreator.java
View file @
dec5a8cc
/*
/*
* Copyright 2012-201
8
the original author or authors.
* Copyright 2012-201
9
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -95,6 +95,7 @@ public abstract class TestJarCreator {
...
@@ -95,6 +95,7 @@ public abstract class TestJarCreator {
writeEntry
(
jarOutputStream
,
"META-INF/versions/9/multi-release.dat"
,
9
);
writeEntry
(
jarOutputStream
,
"META-INF/versions/9/multi-release.dat"
,
9
);
writeEntry
(
jarOutputStream
,
"META-INF/versions/10/multi-release.dat"
,
10
);
writeEntry
(
jarOutputStream
,
"META-INF/versions/10/multi-release.dat"
,
10
);
writeEntry
(
jarOutputStream
,
"META-INF/versions/11/multi-release.dat"
,
11
);
writeEntry
(
jarOutputStream
,
"META-INF/versions/11/multi-release.dat"
,
11
);
writeEntry
(
jarOutputStream
,
"META-INF/versions/12/multi-release.dat"
,
12
);
}
}
else
{
else
{
writeEntry
(
jarOutputStream
,
"3.dat"
,
3
);
writeEntry
(
jarOutputStream
,
"3.dat"
,
3
);
...
...
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