Connect Jenkins with Microsoft teams
Connect Jenkins with Microsoft teams.
Create a team from scratch (public/ private depends on you)
Give appropriate team name & description and create
Add member in your team using name/email.
Now add a channel for your team
Give name, description and channel type
if you don't find add Connectors option, go to ... (view more apps) in teams and search for jenkins
{Select Add (for first time it will ask to install & configure)}
Select Add then Add to a team
you will find your team name there, select and click on set up a connector
Give name for your Jenkins connection, it will generate a web-hook url and click on done.
Copy the web-hook url, it will be used later in pipeline setup.
Then you can see this message of setup in teams
Now create an EC2 instance and install setup jenkins on it and configure jenkins as well.
We need one plugin to be installed
Dashboard >> Manage Jenkins >> Plugins
Install this Office 365 plugin
Now create a pipeline.
You will see office 365 connector
click on Add Webhook
Paste the url that you copied which configuration.
in pipeline select Hello world -> Apply -> Save
Build the first job
Log of the triggered build
in MS-Teams you can see a new message of success.
what if the build fails.
go to configure -> in pipeline script make some mistake and save.
now trigger the build again
you can see new message of failed, and you can check the build as well.
you can customize the notifications in office 365 connector section
Thanks.
Connect with me 😊
https://www.linkedin.com/in/imharry404/
Labels: aws aws cli linux devops, git cheatsheet commands devops developer, jenkins kubernetes eks
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home