Skip to content

Commit 54c6184

Browse files
committed
update to add failures messages to other channels
1 parent 8a22dde commit 54c6184

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

e2e_tests_codefresh_pipeline.yaml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ steps:
3131
working_directory: "IMAGE_WORK_DIR"
3232
commands:
3333
- pytest
34-
sendSlack:
35-
title: "Alert on success"
34+
sendSlackSuccessToPagesActiveLearning:
35+
title: "Alert on success to pages active learning"
3636
type: slack-message-sender
3737
arguments:
3838
WEBHOOK_URL: "${{slack_webhook_url}}"
@@ -41,6 +41,26 @@ steps:
4141
condition:
4242
all:
4343
succeeded: e2e_test.result == 'success'
44+
sendSlackFailureToE2E:
45+
title: "Alert on failure to e2e channel"
46+
type: slack-message-sender
47+
arguments:
48+
WEBHOOK_URL: "${{slack_webhook_e2e}}"
49+
MESSAGE: "SDK Tests have failed-- ${{CF_BUILD_URL}}"
50+
when:
51+
condition:
52+
all:
53+
failed: e2e_test.result == 'failure'
54+
sendSlackFailureToDeployProd:
55+
title: "Alert on failure to deployments prod channel"
56+
type: slack-message-sender
57+
arguments:
58+
WEBHOOK_URL: "${{slack_webhook_deployments_prod}}"
59+
MESSAGE: "SDK Tests have failed-- ${{CF_BUILD_URL}}"
60+
when:
61+
condition:
62+
all:
63+
failed: e2e_test.result == 'failure'
4464
check_for_failures:
4565
image: alpine
4666
commands:

0 commit comments

Comments
 (0)