in TeamCity.BitBucketIssues-server/src/main/java/jetbrains/buildServer/issueTracker/bitbucket/BitBucketIssueProvider.java [53:66]
public void setProperties(@NotNull Map<String, String> map) {
super.setProperties(map);
// host - http endpoint for browser
// fetch host - http endpoint for rest api
final URL htmlUrl = getFullUrl(map);
if (htmlUrl != null) {
myHost = sanitizeHost(htmlUrl.toString());
myProperties.put("host", myHost);
final Matcher m = FULL_HOST_PATTERN.matcher(myHost);
if (m.matches()) {
myFetchHost = getAPIUrl(htmlUrl, m.group(2), StringUtil.removeSuffix(m.group(3), ".git", false));
}
}
}