Receive Build Notifications on MS Teams using Jenkins

Introduction

Jenkins is an open-source CI/CD tool that informs users about the success/failure/error status of their CI/CD pipeline. When a user triggers jobs through Jenkins, it shows the build status on the Jenkins dashboard by logging in. In this blog post, we will discuss how we can use a centralized system where the build notification is sent when the build succeeds or fails. For this blog, our centralized system is going to Microsoft (MS) Teams. 

Configuring Jenkins with MS Teams

MS Teams:

  1. Select the MS Teams channel where you want to send the build notifications. 

Infographic that shows the MS Teams
  1. Configure the connector in Teams.
  • Configuration of “Incoming Webhook” app inside teams.
  • Click the “Apps” button.
Infographic that shows the Incoming Webhook | App
  • On the Apps page, Search and select “Incoming Webhook.”  
Infographic that shows the button how we Add to a Team
  • Click the “Add to a Team” button. 
Infographic that shows the button how we Add to a Team
  • On the “Add Incoming Webhook to a team” pop-up, search and select the channel in which you want to send build notifications. 
Infographic that shows the Add Incoming Webhook to a team
  • After selecting the channel, click the “Set up a Connector” button. 
  • Copy and store the WebHook URL for later use and then click the “Done” button. 

Read More: Embedding Model-Driven Apps In Teams

Infographic that shows the Set up a Connector
  • Now, provide the name of the Webhook and click the “Create” button, you can also modify the icon avatar for it. 
Infographic that shows the Webhook and click the “Create” button
Infographic that shows the Webhook and click the “Create” button
  • Once the webhook is created successfully, you will receive the alert message in the channel that the webhook is created successfully. 
Infographic show the webhook is created successfully

Jenkins:

  1. Navigate to the Jenkins dashboard. 
Infographic that shows the Jenkins dashboard
  1. Now we need to install the Office 365 Connector plugins within Jenkins.
  • Click the “Manage Jenkins” button.
Infographic that shows the Manage Jenkins
  • Now on the Manage Jenkins page, click the “Manage Plugins” button. 
Infographic that shows the Manage Plugins
  • On the Plugin Manager page, search and install the “Office 365 Connector”
Infographic show the on the plugin manager page office 365 Connector

AlphaBOLD can help you optimize your MS Team for an optimal experience!

Transform your MS Teams notifications with Jenkins! Leverage AlphaBOLD's Custom Development expertise to seamlessly set up and enhance your communication channels. 

Request a Demo
  1.  After this, we need to integrate MS Teams webhook with the build pipeline.
  • Open the desired build pipeline. 
Infographic show the Integrate MS Teams webhook
  • On the created build pipeline, click the “Configure” button. 
Infographic that shows the created build pipeline, click the “Configure” button
  • On the configuration page, under “Office 365 Connector”, in the URL field, copy and paste the MS Teams Webhook URL and enter the desired name in the field.
Infographic show the office 365 connector

Now click on Save to apply the configuration on the Build pipeline. 

  1. In this step, we will generate the build notification on MS Teams.

Now when the build pipeline runs, it will generate a notification on MS Teams and will inform us about the build status.

  • If the build is a success, the following message will be displayed:
Infographic that shows the how to generate a notification on MS Teams
  • If the build is a failure, then the following message will be displayed: 
Infographic that shows the generate a notification on MS Teams

Optimize Your DevOps Communication!

Looking to enhance DevOps communication with Jenkins and MS Teams? Trust AlphaBOLD for expert development services. Connect with us to ensure a smooth setup for build notifications.

Request a Demo

Conclusion

You can easily configure Jenkins with Microsoft Team using the Incoming Webhook and the Office 365 Connector. Using the above-mentioned steps, you can select the channels in MS Team to send notifications from Jenkins when the build succeeds or fails. If you would like to know more about the process, feel free to reach out to us. We are happy to help. 

Explore Recent Blog Posts

Infographics show the 2021 MSUS Partner Award winner

Related Posts

Receive Updates on Youtube