7. Slack Integration in Jenkins

Ali Pala
3 min readOct 29, 2019

--

Slack is a cloud-based instant messaging platform developed by Slack Technologies. Slack gives your team changes and alignment you need to do for your project. For example, organizing your conversations, sharing files and integrating with many tools like Jenkins.

What do you think if your build sends a broadcast message as a push notification after every single build to show the status of the build to the team members who work together?

In this post, we will see to set up slack to provide a push notification feature for our Continuous Integration pipeline.

Slack Integration

First of all create a Slack account here: https://slack.com, then a workspace

Create a Slack account and a workspace

Then, search the Jenkins app and in Slack and add. “themis” is a workspace that we will integrate into Jenkins itself.

Jenkins app on Slack

After adding Jenkins CI to our Slack workspace, we need to configure our channel settings like below. “Post to Channel” means, when the build is started, failed, succeed, finished or something else, Slack will send the notification to this channel. “Token” is very important to get your notification. After the configuration is done, press “Save Setting” button.

Configuring Jenkins app on Slack

Let’s install the Slack plugin into Jenkins. For this, go to “Manage Jenkins → “Manage Plugins” → Press “Available” Tab and try to search “Slack” in the Filter area. Since I have already installed the Slack, it is seen under the Installed tab. If you have not, you have to go to the Available tab, try a search by texting “Slack” and install the “Slack Notification Plugin”. That’s it.

Installing Slack plugin on Jenkins

Let’s go to configure Slack on Jenkins. Go to “Manage Jenkins” → “Configure System”. Then, specify your Slack workspace, your workspace token and the channel that you want to get the notification. After completing these, press “Test Connection” button to see the whether connection is done.

That’s all about the integration of Slack to Jenkins. After Jenkins build completed, you should see a message like it.

Slack notifications

If you have any questions related to this topic, please write a comment and let me know your experience in Slack and Jenkins :) See you in the next post!

--

--

Ali Pala

Entrepreneur, Quality Coach, AI Enthusiast, Public Speaker, Trainer, Dad