Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,8 @@ String buildErrorMsg(String exceptionName, URL buildURL, String userId, long pro
private String getBuildServerUrlStr(String userName, String userId,
long projectId, boolean secondBuildserver, String fileName)
throws UnsupportedEncodingException, EncryptionException {
return "http://" + (secondBuildserver ? buildServerHost2.get() : buildServerHost.get()) +

String url = "http://" + (secondBuildserver ? buildServerHost2.get() : buildServerHost.get()) +
"/buildserver/build-all-from-zip-async"
+ "?uname=" + URLEncoder.encode(userName, "UTF-8")
+ (sendGitVersion.get()
Expand All @@ -1240,6 +1241,9 @@ private String getBuildServerUrlStr(String userName, String userId,
+ Security.encryptUserAndProjectId(userId, projectId)
+ "/" + fileName,
"UTF-8");

LOG.info("Build server URL: " + url);
return url;
}

private String getCurrentHost() {
Expand All @@ -1252,8 +1256,10 @@ private String getCurrentHost() {
return appengineHost.get();
}
} else {
// TODO(user): Figure out how to make this more generic
return "localhost:8888";
if (StringUtils.isNullOrEmpty(appengineHost.get()))
return "localhost:8888";
else
return appengineHost.get();
}
}

Expand Down