Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 797a576

Browse files
committed
Bring back Slack notification for failed builds
1 parent 1767db5 commit 797a576

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

ci/pipeline.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,29 @@ anchors:
22
docker-hub-task-params: &docker-hub-task-params
33
DOCKER_HUB_USERNAME: ((docker-hub-username))
44
DOCKER_HUB_PASSWORD: ((docker-hub-password))
5+
slack-fail-params: &slack-fail-params
6+
text: >
7+
: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!>
8+
silent: true
9+
icon_emoji: ":concourse:"
10+
username: concourse-ci
11+
resource_types:
12+
- name: slack-notification
13+
type: docker-image
14+
source:
15+
repository: cfcommunity/slack-notification-resource
16+
tag: latest
517
resources:
618
- name: spring-native
719
type: git
820
source:
921
uri: https://github.com/spring-projects-experimental/spring-native
1022
branch: master
23+
- name: slack-alert
24+
type: slack-notification
25+
icon: slack
26+
source:
27+
url: ((slack-webhook-url))
1128
- name: every-day
1229
type: time
1330
source: {interval: 24h}
@@ -97,6 +114,11 @@ jobs:
97114
- name: spring-native
98115
run:
99116
path: spring-native/ci/build-samples.sh
117+
on_failure:
118+
do:
119+
- put: slack-alert
120+
params:
121+
<<: *slack-fail-params
100122
- name: build-master-java8-samples
101123
public: true
102124
plan:

0 commit comments

Comments
 (0)