Issue Type: Bug Bug
Assignee: Honza Brázdil
Components: ghprb
Created: 21/Feb/13 11:12 PM
Description:

Following upgrade to 1.5, github pull request builder couldn't connect to github because the default setting for the github api url (which is also specified by the config validator) is api.github.com. This causes the following error:

Feb 21, 2013 5:59:40 PM org.jenkinsci.plugins.ghprb.GhprbRepo connect
SEVERE: Can't connect to api.github.com using oauth
java.net.MalformedURLException: no protocol: api.github.com/user?access_token=XXXXXXXXXXXXXXXXXXXXXXXXXX
at java.net.URL.<init>(URL.java:585)
at java.net.URL.<init>(URL.java:482)
at java.net.URL.<init>(URL.java:431)
at org.kohsuke.github.GitHub.getApiURL(GitHub.java:175)
at org.kohsuke.github.Requester._to(Requester.java:159)
at org.kohsuke.github.Requester.to(Requester.java:139)
at org.kohsuke.github.GitHub.getMyself(GitHub.java:200)
at org.kohsuke.github.GitHub.<init>(GitHub.java:102)
at org.kohsuke.github.GitHub.connectUsingOAuth(GitHub.java:149)
at org.jenkinsci.plugins.ghprb.GhprbRepo.connect(GhprbRepo.java:61)
at org.jenkinsci.plugins.ghprb.GhprbRepo.checkState(GhprbRepo.java:73)
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:259)
at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)

Changing the config value to https://api.github.com worked.

Environment: github pull request builder 1.5, github api 1.34, jenkins 1.480.2
Project: Jenkins
Priority: Blocker Blocker
Reporter: Andrew Coulton
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" 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