Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17334

GHPRB fails to use Github server api URL for Github Enterprise

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • ghprb-plugin
    • None
    • Mac OS X 10.6.8 Jenkins DMG install, Jenkins version 1.506, GHPRB version 1.5.1

      I installed the GHPRB plugin and configured it as described here: https://wiki.jenkins-ci.org/display/JENKINS/GitHub+pull+request+builder+plugin.
      For the Github server api URL setting, we use a Github Enterprise instance, so I specified it as https://github.mydomain.com/api/v3. I then configured s pull request based job, and can see that it triggers in /var/log/jenkins.log only to fail with java.io.IOException:

      {"message":"Bad credentials"}

      . The stack dump reveals that it is still trying to use the github.com API, not our Enterprise instance:

      Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: https://api.github.com/repos/MyOrg/MyRepo

            janinko Honza Brázdil
            zobenz Zachary Benz
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: