mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Send Slack Notifications when build completes
Closes gh-10790
This commit is contained in:
parent
04d6bc5119
commit
1fb51dcc0d
@ -17,6 +17,11 @@ resource_types:
|
||||
source:
|
||||
repository: dpb587/github-status-resource
|
||||
tag: master
|
||||
- name: slack-notification
|
||||
type: docker-image
|
||||
source:
|
||||
repository: cfcommunity/slack-notification-resource
|
||||
tag: latest
|
||||
resources:
|
||||
- name: git-repo
|
||||
type: git
|
||||
@ -91,6 +96,10 @@ resources:
|
||||
access_token: ((github-access-token))
|
||||
branch: ((branch))
|
||||
context: jdk10-build
|
||||
- name: slack-alert
|
||||
type: slack-notification
|
||||
source:
|
||||
url: ((slack-webhook-url))
|
||||
jobs:
|
||||
- name: build-spring-boot-ci-images
|
||||
plan:
|
||||
@ -150,6 +159,12 @@ jobs:
|
||||
params:
|
||||
subject: email-details/subject
|
||||
body: email-details/body
|
||||
- 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_JOB_NAME} failed!>"
|
||||
silent: true
|
||||
icon_emoji: ":concourse:"
|
||||
username: concourse-ci
|
||||
- do:
|
||||
- task: determine-email-body
|
||||
image: spring-boot-ci-image
|
||||
@ -166,6 +181,12 @@ jobs:
|
||||
params:
|
||||
subject: email-details/subject
|
||||
body: email-details/body
|
||||
- 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_JOB_NAME} was successful!>"
|
||||
silent: true
|
||||
icon_emoji: ":concourse:"
|
||||
username: concourse-ci
|
||||
- put: artifactory-repo
|
||||
params: &artifactory-params
|
||||
repo: libs-snapshot-local
|
||||
@ -227,6 +248,12 @@ jobs:
|
||||
params:
|
||||
subject: email-details/subject
|
||||
body: email-details/body
|
||||
- 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_JOB_NAME} failed!>"
|
||||
silent: true
|
||||
icon_emoji: ":concourse:"
|
||||
username: concourse-ci
|
||||
- do:
|
||||
- task: determine-email-body
|
||||
image: spring-boot-jdk9-ci-image
|
||||
@ -243,6 +270,12 @@ jobs:
|
||||
params:
|
||||
subject: email-details/subject
|
||||
body: email-details/body
|
||||
- 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_JOB_NAME} was successful!>"
|
||||
silent: true
|
||||
icon_emoji: ":concourse:"
|
||||
username: concourse-ci
|
||||
- name: jdk10-build
|
||||
serial: true
|
||||
public: true
|
||||
@ -288,6 +321,12 @@ jobs:
|
||||
params:
|
||||
subject: email-details/subject
|
||||
body: email-details/body
|
||||
- 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_JOB_NAME} failed!>"
|
||||
silent: true
|
||||
icon_emoji: ":concourse:"
|
||||
username: concourse-ci
|
||||
- do:
|
||||
- task: determine-email-body
|
||||
image: spring-boot-jdk10-ci-image
|
||||
@ -304,6 +343,12 @@ jobs:
|
||||
params:
|
||||
subject: email-details/subject
|
||||
body: email-details/body
|
||||
- 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_JOB_NAME} was successful!>"
|
||||
silent: true
|
||||
icon_emoji: ":concourse:"
|
||||
username: concourse-ci
|
||||
- name: stage-milestone
|
||||
serial: true
|
||||
plan:
|
||||
|
Loading…
Reference in New Issue
Block a user