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
24e957b0
Commit
24e957b0
authored
Mar 05, 2021
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish "Add Java 16 CI pipeline"
See gh-25519
parent
d89739cc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
setup.sh
ci/images/setup.sh
+1
-0
pipeline.yml
ci/pipeline.yml
+8
-1
build-project.sh
ci/scripts/build-project.sh
+1
-2
get-toolchain-java-version.sh
ci/scripts/get-toolchain-java-version.sh
+0
-4
No files found.
ci/images/setup.sh
View file @
24e957b0
...
@@ -27,6 +27,7 @@ test -f /opt/openjdk/bin/java
...
@@ -27,6 +27,7 @@ test -f /opt/openjdk/bin/java
test
-f
/opt/openjdk/bin/javac
test
-f
/opt/openjdk/bin/javac
if
[[
$#
-eq
2
]]
;
then
if
[[
$#
-eq
2
]]
;
then
cd
/
TOOLCHAIN_JDK_URL
=
$(
./get-jdk-url.sh
$2
)
TOOLCHAIN_JDK_URL
=
$(
./get-jdk-url.sh
$2
)
mkdir
-p
/opt/openjdk-toolchain
mkdir
-p
/opt/openjdk-toolchain
...
...
ci/pipeline.yml
View file @
24e957b0
...
@@ -457,7 +457,14 @@ jobs:
...
@@ -457,7 +457,14 @@ jobs:
-
do
:
-
do
:
-
task
:
build-project
-
task
:
build-project
image
:
ci-image-jdk16
image
:
ci-image-jdk16
<<
:
*build-project-task-params
privileged
:
true
timeout
:
((task-timeout))
file
:
git-repo/ci/tasks/build-project.yml
params
:
BRANCH
:
((branch))
TOOLCHAIN_JAVA_VERSION
:
16
<<
:
*gradle-enterprise-task-params
<<
:
*docker-hub-task-params
on_failure
:
on_failure
:
do
:
do
:
-
put
:
repo-status-jdk16-build
-
put
:
repo-status-jdk16-build
...
...
ci/scripts/build-project.sh
View file @
24e957b0
...
@@ -6,8 +6,7 @@ repository=$(pwd)/distribution-repository
...
@@ -6,8 +6,7 @@ repository=$(pwd)/distribution-repository
pushd
git-repo
>
/dev/null
pushd
git-repo
>
/dev/null
if
[[
-d
/opt/openjdk-toolchain
]]
;
then
if
[[
-d
/opt/openjdk-toolchain
]]
;
then
toolchain_java_version
=
$(
./
$(
dirname
$0
)
/get-toolchain-java-version.sh
)
./gradlew
-Dorg
.gradle.internal.launcher.welcomeMessageEnabled
=
false
--no-daemon
--max-workers
=
4
-PdeploymentRepository
=
${
repository
}
build publishAllPublicationsToDeploymentRepository
-PtoolchainVersion
=
${
TOOLCHAIN_JAVA_VERSION
}
-Porg
.gradle.java.installations.auto-detect
=
false
-Porg
.gradle.java.installations.auto-download
=
false
-Porg
.gradle.java.installations.paths
=
/opt/openjdk-toolchain/
./gradlew
-Dorg
.gradle.internal.launcher.welcomeMessageEnabled
=
false
--no-daemon
--max-workers
=
4
-PdeploymentRepository
=
${
repository
}
build publishAllPublicationsToDeploymentRepository
-PtoolchainVersion
=
${
toolchain_java_version
}
-Porg
.gradle.java.installations.auto-detect
=
false
-Porg
.gradle.java.installations.auto-download
=
false
-Porg
.gradle.java.installations.paths
=
/opt/openjdk-toolchain/
else
else
./gradlew
-Dorg
.gradle.internal.launcher.welcomeMessageEnabled
=
false
--no-daemon
--max-workers
=
4
-PdeploymentRepository
=
${
repository
}
build publishAllPublicationsToDeploymentRepository
./gradlew
-Dorg
.gradle.internal.launcher.welcomeMessageEnabled
=
false
--no-daemon
--max-workers
=
4
-PdeploymentRepository
=
${
repository
}
build publishAllPublicationsToDeploymentRepository
fi
fi
...
...
ci/scripts/get-toolchain-java-version.sh
deleted
100755 → 0
View file @
d89739cc
#!/bin/bash
set
-e
/opt/openjdk-toolchain/bin/java
-XshowSettings
:properties
-version
2>&1 |
grep
"java.specification.version"
|
awk
'{split($0,parts,"="); print parts[2]}'
|
awk
'{$1=$1;print}'
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