Update:
As Craig Ringer mentions in his answer , you can select Grant READ permissions for /github-webhook
in the "Configuring Jenkins" section of the GitHub plugin settings, allowing the web move to invoke without authentication.
Another update: Web sites (December 2014) are now available for the organization : see the WebHooks API for Organizations .
Note: issue 4 of the hudson-github-plugin was around:
Last GitHub Push Polling has not run yet.
And the conclusion was made:
Nevermind, the only missing part was the permission flag for the github user, which is not documented anywhere on the Internet.
So, is this a question about allowing your Jenkins users?
The article " Configuring Jenkins-CI on Ubuntu for painless testing of Rails3 CI applications " includes the following process:
To limit the CI system and provide access to your team members to use or view assembly logs, first create an account.
- Go to
Manage Jenkins > Configure System
, - Check
Enable Security
- In
Security Realm
select the Jenkins custom database - Check the
Allow users to sign up
box. - In
Authorization
select Project-based Matrix Authorization Strategy
- Add the first user with the name admin and the other with GitHub (Note: the username for administrator access must be an administrator) For the GitHub username, just select the Read Only permission. Use this user later with GitHub.
Note. The admin and GitHub user added in this step does not create the user. Then you must create a real user with the same name. I know this is a little strange with the Jenkins user interface.
Go to Jenkins > Manage Users > Create User
Management Jenkins > Manage Users > Create User
. Create admin and GitHub users.
Github Web Hooking
Now, in order to automatically run the build when a new command or branch gets to Github, we need to set up the repository.
Go to the hook page for your repository. eg
github.com/<username>/<project_name>/admin/hooks
In the AVAILABLE SERVICE HOOKS > Post-Receive URLs
section, add github: github@your-ci-server.com /github-webhook/
.
github:github
is a user created earlier.
Then we have to check out Jenkins with Github. Go to Jenkins> Configure System Management and under GitHub Web Hook, add your Github username and password and click the Test Credential button to log in once with Github.