Editor’s note 7/2/2019: In addition to the method of integration in this post, you can now integrate Slack with CircleCI using the CircleCI Slack orb for in-job notifications. We have examples of configs using the orb in our docs here and here. The CircleCI Slack orb is one of our most popular orbs to date. For more on CircleCI orbs, see the announcement post here. To check out all of the available orbs, visit the CircleCI Orb Registry.
In the last week, we extended our build notifications support to Slack.com! Slack is real-time messaging, archiving and search for modern teams.
CircleCI’s chat notifications help everyone on your team to stay up-to-date with your latest build status. When a build fails or passes, you can see which commit triggered the build and who was responsible for pushing the code to GitHub. It’s a great way to stay on top of what your collaborators are working on and to quickly notice and fix broken builds.
Setting up the integration is very simple:
While logged into your Slack page, go to Configure Integrations from the Slack menu, and then select CircleCI.
After selecting a channel where CircleCI notifications will be posted, click the green “Add CircleCI Integration” button, and then copy the provided webhook URL.
In your CircleCI account, click on the Project settings cog icon next to the project that you’d like to monitor.
In the left sidebar, click on Chatrooms. Find the Slack section and add the webhook URL, then press the Save notification hooks button when you’re done.
That’s it! On your next build, you’ll start seeing CircleCI build notifications in your Slack chatroom.
Many thanks to our friends at Slack for working with us on getting this set up!