Prashant Bhatasana
Jun 15, 2018 · 3 min read

Jenkins is an open-source continuous integration software tool written in the Java programming language for testing and reporting on isolated changes in a larger code base in real-time. The software enables developers to find and solve defects in a code base rapidly and to automate testing of their builds.

So How automation build environment to run build every single push happens on the source repository we need to broadcast the status of the build to the team members will ensure code base sanity.

In this blog will help you to set up a continuous integration environment using Jenkins with slack for notifications.

Here Are some steps to you need to follow to setup Jenkins that we discuss in our previous blog.


Integration Jenkins with slack

First, we need to configure slack on our machine.

  1. Create a slack account: https://slack.com/
  2. configure the Jenkins integration: https://myspace.slack.com/services/new/jenkins-ci

First, install ‘Jenkins-ci’ and then Add configuration and set channel and all thing like

Add channel name here and note Token.
Then scroll down and click on save setting button.

After that, we need to set configuration on Jenkins Slack Notifications plugin.

For Jenkins to notify slack, we need to install Slack Notifications plugin in Jenkins. By now, you must know how to do this, so go ahead and install the plugin.

SelectSlack Notifications plugin and click on Install without restart button.

It displays success with plugin install successfully.

Then go to Jenkins job if you have no job then you need to create one job and go to post-build section. Select Slack Notification` and it’s display Slack Notification` wizard.

Enter Base URL, Team subdomain, Integration Token that created on you slack and Project Channel and click on apply and save button.

And also for Integration Token, It’s recommended is to configure credentials for your Integration Token. Just add credentials (Secret text) and define your token.

Test setup

Now we can finally test our current setup. We can run the Jenkins job.

based on your build result it sends slack notifications like here.

Thank you for reading, if you have anything to add please send a response or add a note!

AppGambit

Web and Mobile Development Co Based in India

Prashant Bhatasana

Written by

Test AutomationEngineer, Love to automate the Web, Mobile and make Testing Frameworks with #Jenkins #Ansible #Docker #AWS #Selenium #Protractor #Puppeteer

AppGambit

AppGambit

Web and Mobile Development Co Based in India

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade