2
votes

I want Jenkins to trigger build automatically when GitHub PR created, but it seems GitHub unable to communicate with Jenkins, getting an error in GitHub webhook as "We couldn’t deliver this payload: Service Timeout" which is automatically created after below configurations.

my Jenkins server is behind a firewall and I have installed & configured "Github pull request builder". github pull request builder configuration

I have created a job with GitHub project and with below configurations. jenkins project configuration and job trigger configuration

Jenkins proxy test

Any other configuration needed or am I doing something wrong ???

2

2 Answers

0
votes

Is your jenkins server accessible from the internet? if not, you will need to open your firewall to allow access from github IPs specifically.

You can find githubs IP addresses on the meta endpoint for the api subdomain:

https://api.github.com/meta

0
votes

In "Advanced" tab of GHPR select the below option:

  1. Build every pull request automatically without asking (Dangerous!).
  2. Put the name of the branch in Whitelist Target Branches.