nemccarthy / stash-pullrequest-builder-plugin

A Jenkins plugin for Building Stash Pull Requests
https://wiki.jenkins-ci.org/display/JENKINS/Stash+pullrequest+builder+plugin
Other
64 stars 130 forks source link

Use JenkinsLocationConfiguration to fetch the root URL #91

Closed byrondover closed 8 years ago

byrondover commented 8 years ago

Jenkins.getInstance().getRootUrl() returns null despite the URL being set through the web UI. JenkinsLocationConfiguration.getUrl() returns the correct URL.

Thanks Esteban Angee on StackOverflow: http://stackoverflow.com/questions/15949946/programatically-access-jenkins-url

Resolves: https://github.com/nishio-dens/bitbucket-pullrequest-builder-plugin/issues/19

nickbroon commented 8 years ago

:+1: This should be merged.