How to configure webhooks in Github to trigger a build in Jenkins?
Webhooks allows developers to triggers jobs in CI server (such as Jenkins) for every code changes in SCM. In this article, we will learn how to trigger Jenkins jobs instantly for every code change.
Pre-Requistes:
Make sure you install GitHub integration plug-in in Jenkins
1. Go to Jenkins, Create a job. If you already have a existing job, click on configure. Go to build triggers section and choose the below option - GitHub hook trigger for GitScm pooling.
2. Now go to GitHub, choose your repository. Click on settings, Webhooks.
3. Click on Add web hook.
4. You need to enter Jenkins URL & add /github-webhook/ in the end
http://jenkins_public_dns_name:8080/github-webhook/
Pre-Requistes:
Make sure you install GitHub integration plug-in in Jenkins
1. Go to Jenkins, Create a job. If you already have a existing job, click on configure. Go to build triggers section and choose the below option - GitHub hook trigger for GitScm pooling.
2. Now go to GitHub, choose your repository. Click on settings, Webhooks.
3. Click on Add web hook.
4. You need to enter Jenkins URL & add /github-webhook/ in the end
http://jenkins_public_dns_name:8080/github-webhook/
No comments:
Post a Comment