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:
- Select the MS Teams channel where you want to send the build notifications.
- Configure the connector in Teams.
- Configuration of “Incoming Webhook” app inside teams.
- Click the “Apps” button.
- On the Apps page, Search and select “Incoming Webhook.”
- Click the “Add to a Team” button.
- On the “Add Incoming Webhook to a team” pop-up, search and select the channel in which you want to send build notifications.
- 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
- Now, provide the name of the Webhook and click the “Create” button, you can also modify the icon avatar for it.
- Once the webhook is created successfully, you will receive the alert message in the channel that the webhook is created successfully.
Jenkins:
- Navigate to the Jenkins dashboard.
- Now we need to install the Office 365 Connector plugins within Jenkins.
- Click the “Manage Jenkins” button.
- Now on the Manage Jenkins page, click the “Manage Plugins” button.
- On the Plugin Manager page, search and install the “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- After this, we need to integrate MS Teams webhook with the build pipeline.
- Open the desired build pipeline.
- On 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.
Now click on Save to apply the configuration on the Build pipeline.
- 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:
- If the build is a failure, then the following message will be displayed:
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 DemoConclusion
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.