ghprb: The new pull request hook integration does not work

I tried to configure a repository in an organization using the pull request hook integration. I see this error in the logs:

Apr 29, 2013 5:47:13 PM org.jenkinsci.plugins.ghprb.GhprbRepository createHook
SEVERE: Couldn't create web hook for repositorymy-org/my-repo
java.io.FileNotFoundException: https://api.github.com/repos/my-org/my-repo/hooks
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1434)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
        at org.kohsuke.github.Requester.parse(Requester.java:297)
        at org.kohsuke.github.Requester._to(Requester.java:173)
        at org.kohsuke.github.Requester.to(Requester.java:139)
        at org.kohsuke.github.GHRepository.getHooks(GHRepository.java:385)
        at org.jenkinsci.plugins.ghprb.GhprbRepository.hookExist(GhprbRepository.java:148)
        at org.jenkinsci.plugins.ghprb.GhprbRepository.createHook(GhprbRepository.java:160)
        at org.jenkinsci.plugins.ghprb.Ghprb$Builder.build(Ghprb.java:177)
        at org.jenkinsci.plugins.ghprb.GhprbTrigger.start(GhprbTrigger.java:61)
        at org.jenkinsci.plugins.ghprb.GhprbTrigger.start(GhprbTrigger.java:37)
        at hudson.model.AbstractProject.submit(AbstractProject.java:1952)
        at hudson.maven.MavenModuleSet.submit(MavenModuleSet.java:1115)
        at hudson.model.Job.doConfigSubmit(Job.java:1076)
        at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:755)
        ...

Access does require authentication.

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 32 (9 by maintainers)

Commits related to this issue

Most upvoted comments

I configured the Web-hook and see that all the request on that particular web-hook is getting response code 200 i.e. OK. But non of my Job in jenkins is getting triggered. I configured the jobs with all possible required configuration. Any suggestions ?

There is no any error message and not a build trigger as well 😦

@DavidTanner Thanks Man you solved it 😃

The problem is you have .git at the end of your url, I believe.

The myGreatOrg/superApp part is parsed from job configuration field GitHub project.