rayenpaul
rayenpaul

Reputation: 21

Github webhook URL config issue? How to fix it?

I am using GitHub project repository for build trigger from Jenkins.

The intention is when even code push done in GitHub repository project my Jenkins build should trigger automatically.

Steps done:

While updating the webhook URL it shows the error message:

We couldn’t deliver this payload: Couldn't resolve host name

See the screenshot for reference. Please have a look. Please share the solution. Why am I unable to update the webhook URL? How to fix it?

https://i.sstatic.net/YcR2g.jpg https://i.sstatic.net/fbpSm.jpg

Upvotes: 2

Views: 14151

Answers (2)

rohit thomas
rohit thomas

Reputation: 2312

Couple of reasons for this to happen.

  1. If your running it locally --> it means that your URL is not exposed to the internet.So you can expose it to the Internet using ngrok (becareful as it exposes you (port) to the internet)
  2. Corporate case-->Will most definitely be a proxy or firewall issue.So you can again use ngrok with proxy settings/Bypass your firewall, a bit of googling on how to do it will help.
  3. You have an Enterprise Git Repo and are still unable to hit the webhook Go to Manage Jenkins --> Configure System-->GitHUB under that you would have mentioned your GitHub Server details, Under that, there is an Advance button, Further under is another Advance button click that. Add another URL for webhook or use the existing one which you would have mentioned.

The neat little feature this provides is that it tests your connection with GitHub and provides you with the reason why it failed.

Hope this helps, took me a long time to figure this out :0

Upvotes: 3

SACn
SACn

Reputation: 1924

Either firewall is blocking or you've to check if WebHook is enabled in Github from Repository -> Settings -> WebHooks. There is a nice guide here. Use RequestBin for testing to make sure that its not a server side issue :)

Upvotes: 0

Related Questions