Does the GitHub Pull Request Builder work with enterprise git?

I have https://[gitServer]/api/v3 set on the main jenkins config page 
for "Github server api URL"

I have https://[gitServer]/[user]/[repo] set for the github project text box

I get this error in the Jenkins log:
Mar 4, 2013 2:42:14 PM org.jenkinsci.plugins.ghprb.GhprbRepo checkState
SEVERE: Could not retrieve repo named [user]/[repo] (Do you have 
properly set 'GitHub project' field in job configuration?)
java.io.IOException: {"message":"Bad credentials"}
     at org.kohsuke.github.Requester.handleApiError(Requester.java:337)
     at org.kohsuke.github.Requester._to(Requester.java:171)
     at org.kohsuke.github.Requester.to(Requester.java:135)
     at org.kohsuke.github.GitHub.getUser(GitHub.java:194)
     at org.kohsuke.github.GitHub.getRepository(GitHub.java:230)
     at org.jenkinsci.plugins.ghprb.GhprbRepo.checkState(GhprbRepo.java:78)
     at org.jenkinsci.plugins.ghprb.GhprbRepo.check(GhprbRepo.java:91)
     at org.jenkinsci.plugins.ghprb.GhprbTrigger.run(GhprbTrigger.java:132)
     at hudson.triggers.Trigger.checkTriggers(Trigger.java:261)
     at hudson.triggers.Trigger$Cron.doRun(Trigger.java:209)
     at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
     at java.util.TimerThread.mainLoop(Timer.java:534)
     at java.util.TimerThread.run(Timer.java:484)
Caused by: java.io.IOException: Server returned HTTP response code: 401 
for URL: https://api.github.com/users/[user]
     at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1403)
     at 
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
     at org.kohsuke.github.Requester.parse(Requester.java:293)
     at org.kohsuke.github.Requester._to(Requester.java:169)
     ... 11 more
Mar 4, 2013 2:42:14 PM org.jenkinsci.plugins.ghprb.GhprbRepo checkState
SEVERE: Could not retrieve repo named [user]/[repo] (Do you have 
properly set GitHub project field in job configuration?)


So it ignored my github server api URL and is trying to use 
https://api.github.com/users/[user] instead of the enterprise url. All 
the rest of the github fields in my job are correct, I just set the 
github project to https://[gitServer]/[user]/[repo] to confirm where 
those values were coming from.

Will

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to