I have taken these steps:
- Check "GitHub project" and set up the project
- Check "GitHub hook trigger for GITScm polling"
- Setup connection to private repository with user/password
- If I build manually, it works
- In GitHub, create a webhook on push to http://my_jenkins_url/github-webhook/
- Whenever I commit something, it shows that a webhook has been sent and I get a 200 response code (on github)
But no build is triggered on Jenkins. The GitHub Hook Log says: "Polling has not run yet.". How can I make it "start"? How can I further debug this?
EDIT: I have not added a GitHub Server in Manage Jenkins -> Configure -> GitHub since I ran into issue with the authentication (but that would be a different question). Is this required for github webhooks?
EDIT2: I figured out how to add a GitHub API to the Jenkins config (using Personal Access Token with git hook access enabled). But it doesn't seem to make a difference.