I'm setting up a Web-hook in GitHub to trigger a Jenkins build for every push event. I'm running Jenkins from a Blue Ocean Docker container.
https://i.sstatic.net/10HRD.jpg
I'm able to access jenkins from http://192.168.99.101:32771/ , as specified in the docker container. I have specified the git repository and checked "GitHub hook trigger for GITScm polling" checkbox.
I am able to manually kick off the build process after a commit, but when I setup the webhook in github with the payload url http://192.168.99.101:32771/github-webhook/ and commit something, I get the error "We couldn’t deliver this payload: Couldn't connect to server"
Other solutions I've looked at.
What am I missing, or what am I doing wrong?
Github will never reach to your Jenkins Server as your server is only accessible with-in network.
The error is very clear.
We couldn’t deliver this payload: Couldn't connect to server
http://192.168.99.101:32771
this is the same as your local host in term of access it from outside of the network.
Possible solution.