How to configure GitHub Webhook | Webhook configuration on your local Jenkins

How to configure GitHub Webhook | Webhook configuration on your local Jenkins


How to configure GitHub Webhook | Webhook configuration on your local Jenkins

Join the India’s Largest Tech Cult!

🏆 Enter 2021 contest here - https://gleam.io/aEOQ8/giveaway-free-…

Winners will get:

đź§« Alexa Echo Dot 4th Generation

đź‘• Cool T-Shirts

đź’» Laptop Stickers

There are many ways to trigger builds in jenkins but triggering via webhooks is considered to be most efficient because it triggers build only when the commit is pushed. In this video we are going to see how to setup webhooks on Github. We are going to use Ngrok to generate public-facing URL because we cant setup on localhost URL of Jenkins


We have already setup Jenkins server in our earlier videos, if you haven’t watched it yet please click the below link



   • How to install Jenkins | Jenkins Simp…  



#SetUpWebHooksOnGithub #JenkinsS01E03 #BuildTriggers


I’ve setup Jenkins on port 8085 hence i’ve executed ngrok command for the same. You have to execute on the port that you have installed Jenkins


Content

0.88 -> Hello Everyone, Welcome Back to BribeByBytes.
3.72 -> This is our next episode in Jenkins Series and we are going to see how to configure a
9.69 -> github webhook Let's begin
10.69 -> In order to configure the Web-hook, we need our jenkins to be internet facing.
11.69 -> So, we cannot use the localhost url Ngrok is the tool which will help us to generate
12.69 -> a URL for our Jenkins server After downloading, extract the zip file.
13.69 -> You will find a exe file.
18.949 -> Once you open it , it will open this Ngrok window
63.2 -> Now, letme execute this command to fetch my URL
102.389 -> Let's open it in the UI …. And here we can see our Jenkins URL, if I click it, it opens
112.329 -> our Jenkins server
114.42 -> Let's open up the github repository, Under the repo 'Jenkins-Demo' let's go to 'Settings'.
118.599 -> Select Webhooks Copy the Ngrok URL here into the Payload and
120.789 -> append it with this extra bit Select application/json and leave the rest
126.819 -> of them and 'add webhook'

Source: https://www.youtube.com/watch?v=odRxOMUZ6Ts