Thursday, 17 September 2020

Slack as a Devops Tool/Integrating Slack with jenkins








 

DevOps aims to increase the communication and collaboration between Development and Operations teams in the workplace. However, this communication ideal can be hard to fully execute.  

 Many organizations traditionally use email for any internal communication. However, this is difficult to maintain in a fast-paced development environment. There are numerous problems that can arise from using email: people don’t see the emails or see them too late, people forget to respond in a timely manner or never respond at allOne single place where teams can come together to discuss the Development Lifecycle is extremely beneficial to organizations

Many enterprise organizations are now turning to the platform Slack in order to increase communication in the workplace

Use Slack with DevOps Applications 

Slack has the capability to integrate with several of the most popular DevOps tools, such as GitHub, Jenkins CI, Jira, and Azure Pipelines. Inedo’s BuildMaster is also able to integrate with Slack.  Slack is able to integrate seamlessly into the existing development toolchain, making it easier to identify and remedy any builds, errors, or general problems that might occur.  

How to integrate Slack with Jenkins? You need to install slack notifications plug-in in Jenkins.



Pre-requistes:
Install Slack notifications plug-in




Steps to integrate Slack with Jenkins:

1. Go to www.slack.com and signup with your email, create your workspace.
2. Create a channel in Slack.



3.  --> Click connect an app




4. enter Jenkins CI and choose that.





5. Click on Add configuration
6. Add Jenkins CI configuration and select the channel from the drop down.





7. once you added, you will see the below page:





8. Now navigate to Jenkins, Manage Jenkins --> Configure System. Under Global Slack notifier settings. Enter the Team Subdomain value as workspace. Also provide channel name based on what you created. Also provide the token info as well




Token info can be entered by click on Add credentials, Choose secret text drop down and enter token in password text box.









 
9. Now to your Job in Jenkins, Click on Configure.  Click on add post build action. select desired settings. 






10. Click on Apply, and Save

11. Click on Build Now, Now you will see results in Slack channel.


No comments:

Post a Comment