Add GitHub Webhook trigger
Last updated
Last updated
To add a GitHub webhook, go to the repository settings > Webhooks > Add webhook and paste the Jenkins URL followed by /github-webhook/
Select Content type as application/json and the push event option should be enabled.
After creating the webhook, it should give back 200 response in the recent deliveries
Now the Jenkins pipeline will be automatically triggered whenever any code changes are made to the repository.