Jenkins, Git and Github

Today I tried to get my Jenkins CI server working with a post recieve hook of github. Because it took me a while to get this working, I write this post. The hint that helped me solving my problem was this issue and the reporters blog post (Thanks!). A simple missing permission… I configured my jenkins rather restrictive. Only configured users can access jenkins. No anonymous access…

For getting post recieve hooks working, you have to grant github read access to your jenkins installation.

Either with granting read permissions to Anonymous or with creating a new user and giving this user read permission.

With Anonymous, the URL to configure on github is shown on the jenkins config page (Read the help entry behind the question mark):

With an extra user, you have to expose the password to github, because the password is used in the URL:

Dieser Beitrag wurde unter Development, Java, Software abgelegt und mit verschlagwortet. Setzen Sie ein Lesezeichen auf den Permalink.