title: Jenkins build fail for PR from GitHub
body: <p>I'm using jenkins pipeline to build my github project. When I raise a pull request (PR) on GitHub, its creating a job "pr-head" </p>
  
  <p><a href="https://i.stack.imgur.com/fc6mV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fc6mV.png" alt="job screenshot"></a></p>
  
  <p>which fails all the time with below error</p>
  
  <p><a href="https://i.stack.imgur.com/dnNSV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dnNSV.png" alt="Error screenshot"></a></p>
  
  <p>Let me know if you have any suggestions for this</p>
  
  <p>Even the answers in <a href="https://stackoverflow.com/questions/23906352/git-pullrequest-job-failed-couldnt-find-any-revision-to-build-verify-the-repo">Git PullRequest job failed. Couldn&#39;t find any revision to build. Verify the repository and branch configuration for this job</a> did not solve my problem</p>