Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf78b48d

Browse files
revamped slack example
1 parent0de1de5 commitf78b48d

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

‎_docs/yaml-examples/examples/sending-the-notification-to-slack.md‎

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
---
2-
title:"Sendingthe notification to Slack"
3-
description:""
2+
title:"Sendinga notification to Slack"
3+
description:"Connect your Codefresh pipelines to Slack"
44
group:yaml-examples
55
sub_group:examples
66
redirect_from:
77
-/docs/sending-the-notification-to-slack/
88
toc:true
99
---
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.
1120

1221
{: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/)
1423

1524
{{site.data.callout.callout_info}}
1625
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:
2635
commands:
2736
- curl -X POST --data-urlencode 'payload={"text":"Test slack integration via yaml"}' {% raw %}${{SLACK_WEB_URL}}{% endraw %}
2837
{% endhighlight %}
38+
39+
40+
##What to read next
41+
42+
*[Global Slack integration]({{site.baseurl}}/docs/integrations/notifications/slack-integration/)
43+
*[Advanced workflows]({{site.baseurl}}/docs/codefresh-yaml/advanced-workflows/)
44+
*[Pipeline hooks]({{site.baseurl}}/docs/codefresh-yaml/hooks/)
45+
*[Shared configuration]({{site.baseurl}}/docs/configure-ci-cd-pipeline/shared-configuration/)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp