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
8c950e80
Commit
8c950e80
authored
Dec 11, 2018
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.x'
parents
f863ce32
edc1a4fb
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
97 additions
and
4 deletions
+97
-4
get-jdk-url.sh
ci/images/get-jdk-url.sh
+14
-0
setup.sh
ci/images/setup.sh
+1
-3
Dockerfile
ci/images/spring-boot-ci-image/Dockerfile
+1
-0
Dockerfile
ci/images/spring-boot-jdk11-ci-image/Dockerfile
+1
-0
pipeline.yml
ci/pipeline.yml
+29
-1
detect-jdk-updates.sh
ci/scripts/detect-jdk-updates.sh
+39
-0
detect-jdk-updates.yml
ci/tasks/detect-jdk-updates.yml
+12
-0
No files found.
ci/images/get-jdk-url.sh
0 → 100755
View file @
8c950e80
#!/bin/bash
set
-e
case
"
$1
"
in
java8
)
echo
"https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u192-b12/OpenJDK8U-jdk_x64_linux_hotspot_8u192b12.tar.gz"
;;
java11
)
echo
"https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.1%2B13/OpenJDK11U-jdk_x64_linux_hotspot_11.0.1_13.tar.gz"
;;
*
)
echo
$"Unknown java version"
exit
1
esac
\ No newline at end of file
ci/images/setup.sh
View file @
8c950e80
...
@@ -15,14 +15,12 @@ curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.2/c
...
@@ -15,14 +15,12 @@ curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.2/c
###########################################################
###########################################################
# JAVA
# JAVA
###########################################################
###########################################################
JDK_URL
=
$(
./get-jdk-url.sh
$1
)
case
"
$1
"
in
case
"
$1
"
in
java8
)
java8
)
JDK_URL
=
https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u192-b12/OpenJDK8U-jdk_x64_linux_hotspot_8u192b12.tar.gz
COMPONENTS
=
2
COMPONENTS
=
2
;;
;;
java11
)
java11
)
JDK_URL
=
https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.1%2B13/OpenJDK11U-jdk_x64_linux_hotspot_11.0.1_13.tar.gz
COMPONENTS
=
1
COMPONENTS
=
1
;;
;;
*
)
*
)
...
...
ci/images/spring-boot-ci-image/Dockerfile
View file @
8c950e80
FROM
ubuntu:bionic-20181018
FROM
ubuntu:bionic-20181018
ADD
setup.sh /setup.sh
ADD
setup.sh /setup.sh
ADD
get-jdk-url.sh /get-jdk-url.sh
RUN
./setup.sh java8
RUN
./setup.sh java8
ENV
JAVA_HOME /opt/openjdk
ENV
JAVA_HOME /opt/openjdk
...
...
ci/images/spring-boot-jdk11-ci-image/Dockerfile
View file @
8c950e80
FROM
ubuntu:bionic-20181018
FROM
ubuntu:bionic-20181018
ADD
setup.sh /setup.sh
ADD
setup.sh /setup.sh
ADD
get-jdk-url.sh /get-jdk-url.sh
RUN
./setup.sh java11
RUN
./setup.sh java11
ENV
JAVA_HOME /opt/openjdk
ENV
JAVA_HOME /opt/openjdk
...
...
ci/pipeline.yml
View file @
8c950e80
...
@@ -93,6 +93,10 @@ resources:
...
@@ -93,6 +93,10 @@ resources:
type
:
slack-notification
type
:
slack-notification
source
:
source
:
url
:
((slack-webhook-url))
url
:
((slack-webhook-url))
-
name
:
every-wednesday
type
:
time
source
:
days
:
[
Wednesday
]
jobs
:
jobs
:
-
name
:
build-spring-boot-ci-images
-
name
:
build-spring-boot-ci-images
plan
:
plan
:
...
@@ -106,6 +110,30 @@ jobs:
...
@@ -106,6 +110,30 @@ 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
-
name
:
detect-jdk-updates
plan
:
-
get
:
git-repo
-
get
:
every-wednesday
trigger
:
true
-
aggregate
:
-
task
:
detect-jdk8-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
:
java8
image
:
spring-boot-ci-image
-
task
:
detect-jdk11-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
:
java11
image
:
spring-boot-ci-image
-
name
:
build
-
name
:
build
serial
:
true
serial
:
true
public
:
true
public
:
true
...
@@ -428,6 +456,6 @@ groups:
...
@@ -428,6 +456,6 @@ groups:
-
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"
jobs
:
[
"
build-spring-boot-ci-images"
]
jobs
:
[
"
build-spring-boot-ci-images"
,
"
detect-jdk-updates"
]
-
name
:
"
Build
Pull
Requests"
-
name
:
"
Build
Pull
Requests"
jobs
:
[
"
build-pull-requests"
]
jobs
:
[
"
build-pull-requests"
]
ci/scripts/detect-jdk-updates.sh
0 → 100755
View file @
8c950e80
#!/bin/bash
set
-e
case
"
$JDK_VERSION
"
in
java8
)
BASE_URL
=
"https://api.adoptopenjdk.net/v2/info/releases/openjdk8"
;;
java11
)
BASE_URL
=
"https://api.adoptopenjdk.net/v2/info/releases/openjdk11"
;;
*
)
echo
$"Unknown java version"
exit
1
;
esac
response
=
$(
curl
-s
${
BASE_URL
}
\?
openjdk_impl
\=
hotspot
\&
os
\=
linux
\&
arch
\=
x64
\&
release
\=
latest
\&
type
\=
jdk
)
latest
=
$(
jq
-r
'.binaries[0].binary_link'
<<<
"
$response
"
)
current
=
$(
git-repo/ci/images/get-jdk-url.sh
${
JDK_VERSION
}
)
if
[[
$current
=
$latest
]]
;
then
echo
"Already up-to-date"
exit
0
;
fi
existing_issues
=
$(
curl
-s
https://api.github.com/repos/
${
GITHUB_ORGANIZATION
}
/
${
GITHUB_REPO
}
/issues
\?
labels
\=
${
JDK_VERSION
}
-image-upgrade
\&
state
\=
open
)
parsed_issues
=
$(
jq
-r
'.'
<<<
"
$existing_issues
"
)
if
[[
${
parsed_issues
}
=
[]
]]
;
then
curl
\
-s
\
-u
${
GITHUB_USERNAME
}
:
${
GITHUB_PASSWORD
}
\
-H
"Content-type:application/json"
\
-d
"{
\"
title
\"
:
\"
Upgrade
${
JDK_VERSION
}
version in CI image
\"
,
\"
body
\"
:
\"
${
latest
}
\"
,
\"
labels
\"
:[
\"
${
JDK_VERSION
}
-image-upgrade
\"
]}"
\
-f
\
-X
\
POST
"https://api.github.com/repos/
${
GITHUB_ORGANIZATION
}
/
${
GITHUB_REPO
}
/issues"
>
/dev/null
||
{
echo
"Failed to create issue"
>
&2
;
exit
1
;
}
else
echo
"Issue already exists."
fi
\ No newline at end of file
ci/tasks/detect-jdk-updates.yml
0 → 100644
View file @
8c950e80
---
platform
:
linux
inputs
:
-
name
:
git-repo
params
:
GITHUB_REPO
:
GITHUB_ORGANIZATION
:
GITHUB_PASSWORD
:
GITHUB_USERNAME
:
JDK_VERSION
:
run
:
path
:
git-repo/ci/scripts/detect-jdk-updates.sh
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