Skip to content

Commit f22d076

Browse files
committed
Remove slack notifications from pipelines
1 parent 03f681c commit f22d076

File tree

4 files changed

+1
-79
lines changed

4 files changed

+1
-79
lines changed

ci/config-concourse.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
artifactory-server: https://repo.spring.io
22
build-name: spring-cloud-app-broker
3-
ab-slack-success-channel: "#sc-app-broker"
4-
ab-slack-failure-channel: "#sc-app-broker"
53
github-repo: https://github.com/spring-cloud/spring-cloud-app-broker

ci/pipeline.yml

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
11
---
2-
aliases:
3-
- &slack-success-notification
4-
put: alert
5-
params:
6-
icon_emoji: ":concourse:"
7-
username: concourse
8-
channel: ((ab-slack-success-channel))
9-
text: "`$BUILD_PIPELINE_NAME ((branch))` pipeline has succeeded with build <${ATC_EXTERNAL_URL}/builds/$BUILD_ID|$BUILD_NAME>!"
10-
- &slack-failure-notification
11-
put: alert
12-
params:
13-
icon_emoji: ":animal-1252:"
14-
username: concourse
15-
channel: ((ab-slack-failure-channel))
16-
text: "<!here> Build <${ATC_EXTERNAL_URL}/builds/$BUILD_ID|$BUILD_NAME> of job `$BUILD_JOB_NAME` in the `$BUILD_PIPELINE_NAME ((branch))` pipeline has failed!"
17-
182
jobs:
193
- name: build-ci-images
204
plan:
@@ -42,7 +26,6 @@ jobs:
4226
params:
4327
image: image/image.tar
4428
no_get: true
45-
on_failure: *slack-failure-notification
4629

4730
- name: build
4831
serial: true
@@ -77,10 +60,6 @@ jobs:
7760
- /**/*-docs.zip
7861
properties:
7962
zip.type: docs
80-
on_failure:
81-
*slack-failure-notification
82-
on_error:
83-
*slack-failure-notification
8463

8564
- name: run-acceptance-tests
8665
serial: true
@@ -104,17 +83,11 @@ jobs:
10483
ci-image-tag: ((ci-image-tag))
10584
on_success:
10685
in_parallel:
107-
- *slack-success-notification
10886
- put: cf-environment
10987
params:
11088
action: release
11189
resource: cf-environment
11290

113-
on_failure:
114-
*slack-failure-notification
115-
on_error:
116-
*slack-failure-notification
117-
11891
- name: stage-milestone
11992
serial: true
12093
plan:
@@ -231,14 +204,6 @@ resource_types:
231204
password: ((broadcom-jfrog-artifactory-robot-account.password))
232205
tag: 0.0.14
233206

234-
- name: slack-notification
235-
type: registry-image
236-
source:
237-
repository: ((app-broker-virtual-docker-registry))/cfcommunity/slack-notification-resource
238-
username: ((broadcom-jfrog-artifactory-robot-account.username))
239-
password: ((broadcom-jfrog-artifactory-robot-account.password))
240-
tag: latest
241-
242207
- name: shepherd
243208
type: registry-image
244209
source:
@@ -317,11 +282,6 @@ resources:
317282
password: ((artifactory-password))
318283
build_name: ((build-name))
319284

320-
- name: alert
321-
type: slack-notification
322-
source:
323-
url: ((scs-slack-webhook))
324-
325285
- name: cf-environment
326286
type: shepherd
327287
source:

ci/pr-pipeline.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
11
---
2-
aliases:
3-
- &slack-success-notification
4-
put: alert
5-
params:
6-
icon_emoji: ":concourse:"
7-
username: concourse
8-
channel: ((ab-slack-success-channel))
9-
text: "`$BUILD_PIPELINE_NAME` pipeline has succeeded with build <${ATC_EXTERNAL_URL}/builds/$BUILD_ID|$BUILD_NAME>!"
10-
11-
- &slack-failure-notification
12-
put: alert
13-
params:
14-
icon_emoji: ":animal-1252:"
15-
username: concourse
16-
channel: ((ab-slack-failure-channel))
17-
text: "<!here> Build <${ATC_EXTERNAL_URL}/builds/$BUILD_ID|$BUILD_NAME> of job `$BUILD_JOB_NAME` in the `$BUILD_PIPELINE_NAME` pipeline has failed!"
18-
192
jobs:
203
- name: build
214
plan:
@@ -51,13 +34,10 @@ jobs:
5134
git-repo: pull-request
5235
on_success:
5336
in_parallel:
54-
- *slack-success-notification
5537
- put: cf-environment
5638
params:
5739
action: release
5840
resource: cf-environment
59-
on_failure: *slack-failure-notification
60-
on_error: *slack-failure-notification
6141

6242
resource_types:
6343
- name: pull-request
@@ -68,14 +48,6 @@ resource_types:
6848
password: ((broadcom-jfrog-artifactory-robot-account.password))
6949
tag: latest
7050

71-
- name: slack-notification
72-
type: registry-image
73-
source:
74-
repository: ((app-broker-virtual-docker-registry))/cfcommunity/slack-notification-resource
75-
username: ((broadcom-jfrog-artifactory-robot-account.username))
76-
password: ((broadcom-jfrog-artifactory-robot-account.password))
77-
tag: latest
78-
7951
- name: shepherd
8052
type: registry-image
8153
source:
@@ -95,11 +67,6 @@ resources:
9567
disable_forks: true
9668
required_review_approvals: 1
9769

98-
- name: alert
99-
type: slack-notification
100-
source:
101-
url: ((scs-slack-webhook))
102-
10370
- name: cf-environment
10471
type: shepherd
10572
source:

scripts/set-pipelines.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ readonly FLY_TARGET="${FLY_TARGET:-"app-broker"}"
66
readonly PIPELINE_NAME_SUFFIX="${PIPELINE_NAME_SUFFIX:-""}"
77
readonly PIPELINE_TYPE=${1:-""}
88

9-
[[ "$PIPELINE_NAME_SUFFIX" ]] && DISABLE_SLACK_ALERTING="true" || DISABLE_SLACK_ALERTING="false"
10-
119
set_branch_pipeline() {
1210
local -r pipeline_name="app-broker${PIPELINE_NAME_SUFFIX:+"-$PIPELINE_NAME_SUFFIX"}"
1311
local -r branches=("2.4.x" "2.3.x" "2.2.x" "2.1.x" "2.0.x" "1.6.x")
@@ -20,8 +18,7 @@ set_branch_pipeline() {
2018
--config pipeline.yml \
2119
--load-vars-from config-concourse.yml \
2220
--instance-var "branch=$branch" \
23-
--var "ci-image-tag=$branch" \
24-
--var "disable-slack-alerting=$DISABLE_SLACK_ALERTING" \`
21+
--var "ci-image-tag=$branch" \`
2522
done
2623
}
2724

0 commit comments

Comments
 (0)