I have an organization on GitHub with private repositories. I also have Jenkins set up running on port 8080 on a server, with the GitHub plugin installed. I’ve created an account on GitHub for my jenkins user, which resides in the owners group.
I’m trying to trigger a job on jenkins when a change is pushed to my development branch (or master branch, neither seem to be working).
When I look at the GitHub Hook Logs in Jenkins, it says that Polling has not run yet. When I go to “Manage Jenkins”, the GitHub plugin says my account is Verified when I test it.
Any insight on how to configure this? I have multiple repositories I’d like to work with, so deploy keys don’t seem like the solution to me.
Update:
As Craig Ringer mentions in his answer, you can select
Grant READ permissions for /github-webhookin “Configure Jenkins” under the GitHub plugin settings, allowing the webhook to be called without authentication.Another update: Webhooks are now (Dec. 2014) available for organization: see WebHooks API for orgs.
Note: the issue 4 of the hudson-github-plugin was about:
And the conclusion was:
So is this a permission issue regarding your Jenkins users?
The article “Set up Jenkins-CI on Ubuntu for painless Rails3 app CI testing” includes the following process: