title: How to trigger a Jenkins build when a push is made to a private github repository
body: <p>My Jenkins Continuous Integration Server is on running on a Ubuntu host, configured as follows:</p>
  
  <ul>
  <li>Jenkins v 1.463</li>
  <li>github-api 1.23</li>
  <li>Jenkins GIT plugin 1.1.18</li>
  <li>GitHub plugin 1.2</li>
  </ul>
  
  <p><strong>Polling SCM works.</strong> This is important to say because I want you to know my other jenkins related configuration is working well except this post build trigger nonsense.</p>
  
  <p>I want to configure Jenkins so that when changes are pushed to a development branch in a <strong>private github repository</strong> this will then trigger a build that incorporates the most recent changes.</p>
  
  <p>The repo is under my personal github account as owner. Let's call this <em>owner</em></p>
  
  <p>I am including another github.com account as collaborator. Let's call this <em>collaborator</em></p>
  
  <p>The reason I am doing this is because in case I am no longer involved in the project, somebody else can carry on with the maintenance.</p>
  
  <p>The SSH keys for the jenkins user in ubuntu are stored under <em>collaborator</em></p>
  
  <p>I have consulted the following links:</p>
  
  <p><a href="http://nepalonrails.tumblr.com/post/14217655627/set-up-jenkins-ci-on-ubuntu-for-painless-rails3-app-ci" rel="noreferrer">http://nepalonrails.tumblr.com/post/14217655627/set-up-jenkins-ci-on-ubuntu-for-painless-rails3-app-ci</a></p>
  
  <p><a href="https://issues.jenkins-ci.org/browse/JENKINS-10391" rel="noreferrer">https://issues.jenkins-ci.org/browse/JENKINS-10391</a></p>
  
  <p><a href="https://wiki.jenkins-ci.org/display/JENKINS/Github+Plugin" rel="noreferrer">https://wiki.jenkins-ci.org/display/JENKINS/Github+Plugin</a></p>
  
  <p><a href="http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/" rel="noreferrer">http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/</a></p>
  
  <p><a href="https://wiki.jenkins-ci.org/display/JENKINS/Logging" rel="noreferrer">https://wiki.jenkins-ci.org/display/JENKINS/Logging</a></p>
  
  <p><a href="http://blog.cloudbees.com/2012/01/better-integration-between-jenkins-and.html" rel="noreferrer">http://blog.cloudbees.com/2012/01/better-integration-between-jenkins-and.html</a></p>
  
  <p>None of it is not working. Some look a bit dated or even contradictory.</p>
  
  <p>I have added github.com to knownhosts for jenkins ubuntu user.
  I have added the github webhook.</p>
  
  <p>I have tried manual and auto github webhook setup in jenkins.</p>
  
  <p>Nothing works.</p>
  
  <p>I need a step by step guide on how to achieve this without polling github.</p>