Send notification to Slack
Connect your Codefresh pipelines to Slack
There are many ways to integrate Slack with Codefresh:
- Use the global slack integration
- Use individual pipeline plugins such slack-message-sender and slack-notifier
- Use simple POST requests with Curl, as explained in this article
Custom webhook to Slack
Use a container image with a freestyle step such as byrnedo/alpine-curl
to send a notification to a Slack channel.
- Get the
${{SLACK_WEB_URL}}
and put it in the Environment Variables or use shared configuration.
TIP To integrate with Slack, see https://api.slack.com/incoming-webhooks.
- Add the following step to your
codefresh.yml
:
slack step