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
9aae0728
Commit
9aae0728
authored
Apr 08, 2020
by
Scott Frederick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add build scan URI to Slack notifications from CI
Fixes gh-19703
parent
8e695b0c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
9 deletions
+51
-9
pipeline.yml
ci/pipeline.yml
+43
-9
build-project.yml
ci/tasks/build-project.yml
+1
-0
settings.gradle
settings.gradle
+7
-0
No files found.
ci/pipeline.yml
View file @
9aae0728
...
@@ -276,7 +276,11 @@ jobs:
...
@@ -276,7 +276,11 @@ jobs:
params
:
{
state
:
"
failure"
,
commit
:
"
git-repo"
}
params
:
{
state
:
"
failure"
,
commit
:
"
git-repo"
}
-
put
:
slack-alert
-
put
:
slack-alert
params
:
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!>"
text
:
>
:concourse-failed: ${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} failed!
[<https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|build log>]
[<$TEXT_FILE_CONTENT|build scan>]
text_file
:
git-repo/build/build-scan-uri.txt
silent
:
true
silent
:
true
icon_emoji
:
"
:concourse:"
icon_emoji
:
"
:concourse:"
username
:
concourse-ci
username
:
concourse-ci
...
@@ -302,13 +306,19 @@ jobs:
...
@@ -302,13 +306,19 @@ jobs:
do
:
do
:
-
put
:
slack-alert
-
put
:
slack-alert
params
:
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!>"
text
:
>
:concourse-failed: ${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} failed!
[<https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|build log>]
silent
:
true
silent
:
true
icon_emoji
:
"
:concourse:"
icon_emoji
:
"
:concourse:"
username
:
concourse-ci
username
:
concourse-ci
-
put
:
slack-alert
-
put
:
slack-alert
params
:
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!>"
text
:
>
:concourse-succeeded: ${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} was successful!
[<https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|build log>]
[<$TEXT_FILE_CONTENT|build scan>]
text_file
:
git-repo/build/build-scan-uri.txt
silent
:
true
silent
:
true
icon_emoji
:
"
:concourse:"
icon_emoji
:
"
:concourse:"
username
:
concourse-ci
username
:
concourse-ci
...
@@ -366,7 +376,11 @@ jobs:
...
@@ -366,7 +376,11 @@ jobs:
params
:
{
state
:
"
failure"
,
commit
:
"
git-repo"
}
params
:
{
state
:
"
failure"
,
commit
:
"
git-repo"
}
-
put
:
slack-alert
-
put
:
slack-alert
params
:
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!>"
text
:
>
:concourse-failed: ${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} failed!
[<https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|build log>]
[<$TEXT_FILE_CONTENT|build scan>]
text_file
:
git-repo/build/build-scan-uri.txt
silent
:
true
silent
:
true
icon_emoji
:
"
:concourse:"
icon_emoji
:
"
:concourse:"
username
:
concourse-ci
username
:
concourse-ci
...
@@ -374,7 +388,11 @@ jobs:
...
@@ -374,7 +388,11 @@ jobs:
params
:
{
state
:
"
success"
,
commit
:
"
git-repo"
}
params
:
{
state
:
"
success"
,
commit
:
"
git-repo"
}
-
put
:
slack-alert
-
put
:
slack-alert
params
:
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!>"
text
:
>
:concourse-succeeded: ${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} was successful!
[<https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|build log>]
[<$TEXT_FILE_CONTENT|build scan>]
text_file
:
git-repo/build/build-scan-uri.txt
silent
:
true
silent
:
true
icon_emoji
:
"
:concourse:"
icon_emoji
:
"
:concourse:"
username
:
concourse-ci
username
:
concourse-ci
...
@@ -404,7 +422,11 @@ jobs:
...
@@ -404,7 +422,11 @@ jobs:
params
:
{
state
:
"
failure"
,
commit
:
"
git-repo"
}
params
:
{
state
:
"
failure"
,
commit
:
"
git-repo"
}
-
put
:
slack-alert
-
put
:
slack-alert
params
:
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!>"
text
:
>
:concourse-failed: ${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} failed!
[<https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|build log>]
[<$TEXT_FILE_CONTENT|build scan>]
text_file
:
git-repo/build/build-scan-uri.txt
silent
:
true
silent
:
true
icon_emoji
:
"
:concourse:"
icon_emoji
:
"
:concourse:"
username
:
concourse-ci
username
:
concourse-ci
...
@@ -412,7 +434,11 @@ jobs:
...
@@ -412,7 +434,11 @@ jobs:
params
:
{
state
:
"
success"
,
commit
:
"
git-repo"
}
params
:
{
state
:
"
success"
,
commit
:
"
git-repo"
}
-
put
:
slack-alert
-
put
:
slack-alert
params
:
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!>"
text
:
>
:concourse-succeeded: ${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} was successful!
[<https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|build log>]
[<$TEXT_FILE_CONTENT|build scan>]
text_file
:
git-repo/build/build-scan-uri.txt
silent
:
true
silent
:
true
icon_emoji
:
"
:concourse:"
icon_emoji
:
"
:concourse:"
username
:
concourse-ci
username
:
concourse-ci
...
@@ -439,13 +465,21 @@ jobs:
...
@@ -439,13 +465,21 @@ jobs:
do
:
do
:
-
put
:
slack-alert
-
put
:
slack-alert
params
:
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!>"
text
:
>
:concourse-failed: ${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} failed!
[<https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|build log>]
[<$TEXT_FILE_CONTENT|build scan>]
text_file
:
git-repo/build/build-scan-uri.txt
silent
:
true
silent
:
true
icon_emoji
:
"
:concourse:"
icon_emoji
:
"
:concourse:"
username
:
concourse-ci
username
:
concourse-ci
-
put
:
slack-alert
-
put
:
slack-alert
params
:
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!>"
text
:
>
:concourse-succeeded: ${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} was successful!
[<https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|build log>]
[<$TEXT_FILE_CONTENT|build scan>]
text_file
:
git-repo/build/build-scan-uri.txt
silent
:
true
silent
:
true
icon_emoji
:
"
:concourse:"
icon_emoji
:
"
:concourse:"
username
:
concourse-ci
username
:
concourse-ci
...
...
ci/tasks/build-project.yml
View file @
9aae0728
...
@@ -4,6 +4,7 @@ inputs:
...
@@ -4,6 +4,7 @@ inputs:
-
name
:
git-repo
-
name
:
git-repo
outputs
:
outputs
:
-
name
:
distribution-repository
-
name
:
distribution-repository
-
name
:
git-repo
caches
:
caches
:
-
path
:
gradle
-
path
:
gradle
-
path
:
embedmongo
-
path
:
embedmongo
...
...
settings.gradle
View file @
9aae0728
...
@@ -34,6 +34,13 @@ settings.gradle.projectsLoaded {
...
@@ -34,6 +34,13 @@ settings.gradle.projectsLoaded {
if
(
settings
.
gradle
.
rootProject
.
hasProperty
(
'buildJavaHome'
))
{
if
(
settings
.
gradle
.
rootProject
.
hasProperty
(
'buildJavaHome'
))
{
value
(
'Build Java home'
,
settings
.
gradle
.
rootProject
.
getProperty
(
'buildJavaHome'
))
value
(
'Build Java home'
,
settings
.
gradle
.
rootProject
.
getProperty
(
'buildJavaHome'
))
}
}
settings
.
gradle
.
rootProject
.
getBuildDir
().
mkdirs
()
new
File
(
settings
.
gradle
.
rootProject
.
getBuildDir
(),
"build-scan-uri.txt"
).
text
=
"(build scan not generated)"
buildScanPublished
{
scan
->
new
File
(
settings
.
gradle
.
rootProject
.
getBuildDir
(),
"build-scan-uri.txt"
).
text
=
"${scan.buildScanUri}\n"
}
}
}
}
}
}
}
...
...
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