You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/yaml-examples/examples/sending-the-notification-to-slack.md
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,25 @@
1
1
---
2
-
title:"Sendingthe notification to Slack"
3
-
description:""
2
+
title:"Sendinga notification to Slack"
3
+
description:"Connect your Codefresh pipelines to Slack"
4
4
group:yaml-examples
5
5
sub_group:examples
6
6
redirect_from:
7
7
-/docs/sending-the-notification-to-slack/
8
8
toc:true
9
9
---
10
-
Just use freestyle step with`tuttum/curl` docker image to send the notification to slack channel.
10
+
11
+
There are many ways to integrate slack with Codefresh
12
+
13
+
1. You can use the[global slack integration]({{site.baseurl}}/docs/integrations/notifications/slack-integration/)
14
+
1. You can use individual pipeline plugins such[slack-message-sender](https://codefresh.io/steps/step/slack-message-sender) and[slack-notifier](https://codefresh.io/steps/step/slack-notifier)
15
+
1. You use can simple POST requests with Curl (explained in this page)
16
+
17
+
##Custom webhook to Slack
18
+
19
+
Use a container image with a[freestyle step]({{site.baseurl}}/docs/codefresh-yaml/steps/freestyle/) such as`tuttum/curl` to send a notification to a Slack channel.
11
20
12
21
{:start="1"}
13
-
1. Get the {% raw %}```${{SLACK_WEB_URL}}```{% endraw %} and put it in the Environment Variables.
22
+
1. Get the {% raw %}```${{SLACK_WEB_URL}}```{% endraw %} and put it in the Environment Variables or use[shared configuration]({{site.baseurl}}/docs/configure-ci-cd-pipeline/shared-configuration/)
14
23
15
24
{{site.data.callout.callout_info}}
16
25
You can find how to integrate with slack here[https://api.slack.com/incoming-webhooks](https://api.slack.com/incoming-webhooks){:target="_blank"}
@@ -26,3 +35,11 @@ slack_notify:
26
35
commands:
27
36
- curl -X POST --data-urlencode 'payload={"text":"Test slack integration via yaml"}' {% raw %}${{SLACK_WEB_URL}}{% endraw %}