Github webhook URL config issue? How to fix it?

后端 未结 2 381
逝去的感伤
逝去的感伤 2020-12-11 10:47

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

相关标签:
2条回答
  • 2020-12-11 11:13

    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

    0 讨论(0)
  • 2020-12-11 11:15

    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 :)

    0 讨论(0)
提交回复
热议问题