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
41f26d3e
Commit
41f26d3e
authored
Apr 07, 2020
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.x' into 2.2.x
Closes gh-20862
parents
1960c90d
1a3df294
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
5 deletions
+17
-5
pipeline.yml
ci/pipeline.yml
+5
-0
detect-docker-updates.sh
ci/scripts/detect-docker-updates.sh
+3
-1
detect-jdk-updates.sh
ci/scripts/detect-jdk-updates.sh
+3
-2
detect-ubuntu-image-updates.sh
ci/scripts/detect-ubuntu-image-updates.sh
+3
-2
detect-docker-updates.yml
ci/tasks/detect-docker-updates.yml
+1
-0
detect-jdk-updates.yml
ci/tasks/detect-jdk-updates.yml
+1
-0
detect-ubuntu-image-updates.yml
ci/tasks/detect-ubuntu-image-updates.yml
+1
-0
No files found.
ci/pipeline.yml
View file @
41f26d3e
...
@@ -183,6 +183,7 @@ jobs:
...
@@ -183,6 +183,7 @@ jobs:
GITHUB_PASSWORD
:
((github-password))
GITHUB_PASSWORD
:
((github-password))
GITHUB_USERNAME
:
((github-username))
GITHUB_USERNAME
:
((github-username))
JDK_VERSION
:
java8
JDK_VERSION
:
java8
MILESTONE
:
((branch))
image
:
spring-boot-ci-image
image
:
spring-boot-ci-image
-
task
:
detect-jdk11-update
-
task
:
detect-jdk11-update
file
:
git-repo/ci/tasks/detect-jdk-updates.yml
file
:
git-repo/ci/tasks/detect-jdk-updates.yml
...
@@ -192,6 +193,7 @@ jobs:
...
@@ -192,6 +193,7 @@ jobs:
GITHUB_PASSWORD
:
((github-password))
GITHUB_PASSWORD
:
((github-password))
GITHUB_USERNAME
:
((github-username))
GITHUB_USERNAME
:
((github-username))
JDK_VERSION
:
java11
JDK_VERSION
:
java11
MILESTONE
:
((branch))
image
:
spring-boot-ci-image
image
:
spring-boot-ci-image
-
task
:
detect-jdk14-update
-
task
:
detect-jdk14-update
file
:
git-repo/ci/tasks/detect-jdk-updates.yml
file
:
git-repo/ci/tasks/detect-jdk-updates.yml
...
@@ -201,6 +203,7 @@ jobs:
...
@@ -201,6 +203,7 @@ jobs:
GITHUB_PASSWORD
:
((github-password))
GITHUB_PASSWORD
:
((github-password))
GITHUB_USERNAME
:
((github-username))
GITHUB_USERNAME
:
((github-username))
JDK_VERSION
:
java14
JDK_VERSION
:
java14
MILESTONE
:
((branch))
image
:
spring-boot-ci-image
image
:
spring-boot-ci-image
-
name
:
detect-ubuntu-image-updates
-
name
:
detect-ubuntu-image-updates
plan
:
plan
:
...
@@ -216,6 +219,7 @@ jobs:
...
@@ -216,6 +219,7 @@ jobs:
GITHUB_ORGANIZATION
:
spring-projects
GITHUB_ORGANIZATION
:
spring-projects
GITHUB_PASSWORD
:
((github-password))
GITHUB_PASSWORD
:
((github-password))
GITHUB_USERNAME
:
((github-username))
GITHUB_USERNAME
:
((github-username))
MILESTONE
:
((branch))
image
:
spring-boot-ci-image
image
:
spring-boot-ci-image
-
name
:
detect-docker-updates
-
name
:
detect-docker-updates
plan
:
plan
:
...
@@ -230,6 +234,7 @@ jobs:
...
@@ -230,6 +234,7 @@ jobs:
params
:
params
:
GITHUB_REPO
:
spring-boot
GITHUB_REPO
:
spring-boot
GITHUB_ORGANIZATION
:
spring-projects
GITHUB_ORGANIZATION
:
spring-projects
MILESTONE
:
((branch))
image
:
spring-boot-ci-image
image
:
spring-boot-ci-image
-
put
:
git-repo-ci-docker
-
put
:
git-repo-ci-docker
params
:
params
:
...
...
ci/scripts/detect-docker-updates.sh
View file @
41f26d3e
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
latest_version
=
$(
curl
-I
-s
https://github.com/docker/docker-ce/releases/latest |
grep
"location:"
|
awk
'{n=split($0, parts, "/"); print substr(parts[n],2);}'
|
awk
'{$1=$1;print}'
|
tr
-d
'\r'
|
tr
-d
'\n'
)
latest_version
=
$(
curl
-I
-s
https://github.com/docker/docker-ce/releases/latest |
grep
"location:"
|
awk
'{n=split($0, parts, "/"); print substr(parts[n],2);}'
|
awk
'{$1=$1;print}'
|
tr
-d
'\r'
|
tr
-d
'\n'
)
title_prefix
=
"Upgrade CI to Docker"
title_prefix
=
"Upgrade CI to Docker"
existing_upgrade_issues
=
$(
curl
-s
https://api.github.com/repos/spring-projects/spring-boot/issues
\?
labels
\=
type
:%20task
\&
state
\=
open
\&
creator
\=
spring-buildmaster | jq
-c
--arg
TITLE_PREFIX
"
$title_prefix
"
'.[] | select(.pull_request != null) | select(.title | startswith($TITLE_PREFIX))'
)
milestone_number
=
$(
curl
-s
https://api.github.com/repos/
${
GITHUB_ORGANIZATION
}
/
${
GITHUB_REPO
}
/milestones
\?
state
\=
open | jq
-c
--arg
MILESTONE
"
$MILESTONE
"
'.[] | select(.title==$MILESTONE)'
| jq
-r
'.number'
)
existing_upgrade_issues
=
$(
curl
-s
https://api.github.com/repos/
${
GITHUB_ORGANIZATION
}
/
${
GITHUB_REPO
}
/issues
\?
labels
\=
type
:%20task
\&
state
\=
open
\&
creator
\=
spring-buildmaster
\&
milestone
\=
${
milestone_number
}
| jq
-c
--arg
TITLE_PREFIX
"
$title_prefix
"
'.[] | select(.pull_request != null) | select(.title | startswith($TITLE_PREFIX))'
)
if
[[
${
existing_upgrade_issues
}
=
""
]]
;
then
if
[[
${
existing_upgrade_issues
}
=
""
]]
;
then
git clone git-repo git-repo-updated
>
/dev/null
git clone git-repo git-repo-updated
>
/dev/null
...
...
ci/scripts/detect-jdk-updates.sh
View file @
41f26d3e
...
@@ -28,7 +28,8 @@ if [[ $current = $latest ]]; then
...
@@ -28,7 +28,8 @@ if [[ $current = $latest ]]; then
exit
0
;
exit
0
;
fi
fi
existing_tasks
=
$(
curl
-s
https://api.github.com/repos/
${
GITHUB_ORGANIZATION
}
/
${
GITHUB_REPO
}
/issues
\?
labels
\=
type
:%20task
\&
state
\=
open
\&
creator
\=
spring-buildmaster
)
milestone_number
=
$(
curl
-s
https://api.github.com/repos/
${
GITHUB_ORGANIZATION
}
/
${
GITHUB_REPO
}
/milestones
\?
state
\=
open | jq
-c
--arg
MILESTONE
"
$MILESTONE
"
'.[] | select(.title==$MILESTONE)'
| jq
-r
'.number'
)
existing_tasks
=
$(
curl
-s
https://api.github.com/repos/
${
GITHUB_ORGANIZATION
}
/
${
GITHUB_REPO
}
/issues
\?
labels
\=
type
:%20task
\&
state
\=
open
\&
creator
\=
spring-buildmaster
\&
milestone
\=
${
milestone_number
}
)
existing_jdk_issues
=
$(
echo
"
$existing_tasks
"
| jq
-c
--arg
TITLE
"
$ISSUE_TITLE
"
'.[] | select(.title==$TITLE)'
)
existing_jdk_issues
=
$(
echo
"
$existing_tasks
"
| jq
-c
--arg
TITLE
"
$ISSUE_TITLE
"
'.[] | select(.title==$TITLE)'
)
if
[[
${
existing_jdk_issues
}
=
""
]]
;
then
if
[[
${
existing_jdk_issues
}
=
""
]]
;
then
...
@@ -36,7 +37,7 @@ if [[ ${existing_jdk_issues} = "" ]]; then
...
@@ -36,7 +37,7 @@ if [[ ${existing_jdk_issues} = "" ]]; then
-s
\
-s
\
-u
${
GITHUB_USERNAME
}
:
${
GITHUB_PASSWORD
}
\
-u
${
GITHUB_USERNAME
}
:
${
GITHUB_PASSWORD
}
\
-H
"Content-type:application/json"
\
-H
"Content-type:application/json"
\
-d
"{
\"
title
\"
:
\"
${
ISSUE_TITLE
}
\"
,
\"
body
\"
:
\"
${
latest
}
\"
,
\"
labels
\"
:[
\"
status: waiting-for-triage
\"
,
\"
type: task
\"
]}"
\
-d
"{
\"
title
\"
:
\"
${
ISSUE_TITLE
}
\"
,
\"
milestone
\"
:
\"
${
milestone_number
}
\"
,
\"
body
\"
:
\"
${
latest
}
\"
,
\"
labels
\"
:[
\"
status: waiting-for-triage
\"
,
\"
type: task
\"
]}"
\
-f
\
-f
\
-X
\
-X
\
POST
"https://api.github.com/repos/
${
GITHUB_ORGANIZATION
}
/
${
GITHUB_REPO
}
/issues"
>
/dev/null
||
{
echo
"Failed to create issue"
>
&2
;
exit
1
;
}
POST
"https://api.github.com/repos/
${
GITHUB_ORGANIZATION
}
/
${
GITHUB_REPO
}
/issues"
>
/dev/null
||
{
echo
"Failed to create issue"
>
&2
;
exit
1
;
}
...
...
ci/scripts/detect-ubuntu-image-updates.sh
View file @
41f26d3e
...
@@ -11,7 +11,8 @@ if [[ $current = $latest ]]; then
...
@@ -11,7 +11,8 @@ if [[ $current = $latest ]]; then
exit
0
;
exit
0
;
fi
fi
existing_tasks
=
$(
curl
-s
https://api.github.com/repos/
${
GITHUB_ORGANIZATION
}
/
${
GITHUB_REPO
}
/issues
\?
labels
\=
type
:%20task
\&
state
\=
open
\&
creator
\=
spring-buildmaster
)
milestone_number
=
$(
curl
-s
https://api.github.com/repos/
${
GITHUB_ORGANIZATION
}
/
${
GITHUB_REPO
}
/milestones
\?
state
\=
open | jq
-c
--arg
MILESTONE
"
$MILESTONE
"
'.[] | select(.title==$MILESTONE)'
| jq
-r
'.number'
)
existing_tasks
=
$(
curl
-s
https://api.github.com/repos/
${
GITHUB_ORGANIZATION
}
/
${
GITHUB_REPO
}
/issues
\?
labels
\=
type
:%20task
\&
state
\=
open
\&
creator
\=
spring-buildmaster
\&
milestone
\=
${
milestone_number
}
)
existing_upgrade_issues
=
$(
echo
"
$existing_tasks
"
| jq
-c
--arg
TITLE
"
$ISSUE_TITLE
"
'.[] | select(.title==$TITLE)'
)
existing_upgrade_issues
=
$(
echo
"
$existing_tasks
"
| jq
-c
--arg
TITLE
"
$ISSUE_TITLE
"
'.[] | select(.title==$TITLE)'
)
if
[[
${
existing_upgrade_issues
}
=
""
]]
;
then
if
[[
${
existing_upgrade_issues
}
=
""
]]
;
then
...
@@ -19,7 +20,7 @@ if [[ ${existing_upgrade_issues} = "" ]]; then
...
@@ -19,7 +20,7 @@ if [[ ${existing_upgrade_issues} = "" ]]; then
-s
\
-s
\
-u
${
GITHUB_USERNAME
}
:
${
GITHUB_PASSWORD
}
\
-u
${
GITHUB_USERNAME
}
:
${
GITHUB_PASSWORD
}
\
-H
"Content-type:application/json"
\
-H
"Content-type:application/json"
\
-d
"{
\"
title
\"
:
\"
${
ISSUE_TITLE
}
\"
,
\"
body
\"
:
\"
Upgrade to ubuntu:
${
ubuntu
}
-
${
latest
}
\"
,
\"
labels
\"
:[
\"
status: waiting-for-triage
\"
,
\"
type: task
\"
]}"
\
-d
"{
\"
title
\"
:
\"
${
ISSUE_TITLE
}
\"
,
\"
milestone
\"
:
\"
${
milestone_number
}
\"
,
\"
body
\"
:
\"
Upgrade to ubuntu:
${
ubuntu
}
-
${
latest
}
\"
,
\"
labels
\"
:[
\"
status: waiting-for-triage
\"
,
\"
type: task
\"
]}"
\
-f
\
-f
\
-X
\
-X
\
POST
"https://api.github.com/repos/
${
GITHUB_ORGANIZATION
}
/
${
GITHUB_REPO
}
/issues"
>
/dev/null
||
{
echo
"Failed to create issue"
>
&2
;
exit
1
;
}
POST
"https://api.github.com/repos/
${
GITHUB_ORGANIZATION
}
/
${
GITHUB_REPO
}
/issues"
>
/dev/null
||
{
echo
"Failed to create issue"
>
&2
;
exit
1
;
}
...
...
ci/tasks/detect-docker-updates.yml
View file @
41f26d3e
...
@@ -9,5 +9,6 @@ outputs:
...
@@ -9,5 +9,6 @@ outputs:
params
:
params
:
GITHUB_REPO
:
GITHUB_REPO
:
GITHUB_ORGANIZATION
:
GITHUB_ORGANIZATION
:
MILESTONE
:
run
:
run
:
path
:
git-repo/ci/scripts/detect-docker-updates.sh
path
:
git-repo/ci/scripts/detect-docker-updates.sh
ci/tasks/detect-jdk-updates.yml
View file @
41f26d3e
...
@@ -8,5 +8,6 @@ params:
...
@@ -8,5 +8,6 @@ params:
GITHUB_PASSWORD
:
GITHUB_PASSWORD
:
GITHUB_USERNAME
:
GITHUB_USERNAME
:
JDK_VERSION
:
JDK_VERSION
:
MILESTONE
:
run
:
run
:
path
:
git-repo/ci/scripts/detect-jdk-updates.sh
path
:
git-repo/ci/scripts/detect-jdk-updates.sh
ci/tasks/detect-ubuntu-image-updates.yml
View file @
41f26d3e
...
@@ -7,5 +7,6 @@ params:
...
@@ -7,5 +7,6 @@ params:
GITHUB_ORGANIZATION
:
GITHUB_ORGANIZATION
:
GITHUB_PASSWORD
:
GITHUB_PASSWORD
:
GITHUB_USERNAME
:
GITHUB_USERNAME
:
MILESTONE
:
run
:
run
:
path
:
git-repo/ci/scripts/detect-ubuntu-image-updates.sh
path
:
git-repo/ci/scripts/detect-ubuntu-image-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