Below a small step-by-step guide on how to setup Jenkins with Github webhooks. This has been tested on a Jenkins 2.

Login into Github and go to your account settings (top right fly out menu/ settings)

Next select Developer settings from the left hand menu (at the bottom)

Then Pick Personal access tokens from the left hand menu

Provide a token description and select repo. At the bottom click the button to generate the token

 

 

A token wil be generated for you. Copy this token

 

Next we go into our Jenkins project and past the token in front of the github.com url for our repo.

Leave a Reply

Your email address will not be published. Required fields are marked *