# Day 24 : Harnessing the Power of GitHub Webhooks with Jenkins for Seamless CI/CD

Today we will implement Node js application using Jenkins and Github webhook.

Let's start.

Step 1: Click on create a job from Jenkin dashboard.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684475587505/4a8235b2-b3d0-44a7-8071-5c41836fb85a.png align="center")

Step 2) Give a name to freestyle Project.and click OK.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684475640192/655221b0-3e93-404e-830f-ab7e4d5df314.png align="center")

Step 3) Give Description of it and select Github Project. You need to provide url of git repo. For this example , I am using this url : [https://github.com/patelajay745/node-todo-cicd](https://github.com/patelajay745/node-todo-cicd)

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684475800745/5aa3c13c-16ea-4145-9203-0b23a9505635.png align="center")

Step 4) Select Git in Source Code Management and give url of your repo. Don't forget to enter your branch name.For this project , we have master branch.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684475824355/fa1074f8-9ee5-46c5-95e1-96a2a2844d2c.png align="center")

Step 5) Now select Github hook trigger for GITScm Polling in Build Triggers options.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684475924995/d59902b4-bff7-44db-be70-1261821564fc.png align="center")

Step 6) Now go to your repository setting on GITHUB.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684475987977/bf85242f-7a5e-4d5c-8940-f62835e78516.png align="center")

Step 7) Select Webhooks from left side options.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684476053978/f9732a31-1925-4497-a42f-69db3d969236.png align="center")

Step 8) Enter http://Your-IP:8080/github-webhook/ in Payload url. Select application/json in content type option. and save it.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684476094644/c69e3a06-731f-4107-885b-dbcff5b73f6b.png align="center")

After saving if it shows Green right ahead of URL then it is setup successfully.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684476287137/b1a0d639-b4ab-48bd-988a-b27da29d16d9.png align="center")

Step 9) Come back to your Jenkins and Add Build step as below. and save it.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684476358572/2ed5a9a0-4f90-4164-89e8-8aa35b9d5bbb.png align="center")

Step 10) Click on Build Now option from left panel and check your console. If it shows Success then Congratulation you have created your CI/CD project using github webhook.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684476412055/28f55671-2314-4bac-9f13-bd2e38fb5899.png align="center")

From now on, whenever there is a code change in your GitHub repository, Jenkins will automatically trigger the build process, ensuring that your application stays up-to-date.

That was it for today. If you have any questions/suggestions please comment below.See you in Next Challenge

Happy coding and stay tuned for more exciting challenges!
