This repository was archived by the owner on Feb 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff 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
517resources :
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 :
You can’t perform that action at this time.
0 commit comments