Skip to content
Open
Show file tree
Hide file tree
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 @@ -103,7 +103,9 @@ private URI buildRequestUrl() throws URISyntaxException {

private URI buildRequestUrl(String suffixPath) throws URISyntaxException {
return uriBuilder
.setPath(String.format("%splugins/checks/checkers/%s", getPrefix(), suffixPath))
.setPath(
String.format(
"%splugins/checks/checkers/%s", uriBuilder.getPath() + getPrefix(), suffixPath))
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private URI buildRequestUrl(String suffixPath) throws URISyntaxException {
.setPath(
String.format(
"%schanges/%d/revisions/%d/checks/%s",
getPrefix(), changeNumber, patchSetNumber, suffixPath))
uriBuilder.getPath() + getPrefix(), changeNumber, patchSetNumber, suffixPath))
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ private URI buildRequestUrl() throws URISyntaxException {
}
uriBuilder.setParameter("query", queryString.toString());
}
return uriBuilder.setPath(getPrefix() + PENDING_CHECKS_PATH).build();
return uriBuilder.setPath(uriBuilder.getPath() + getPrefix() + PENDING_CHECKS_PATH).build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void gerritCheckStepInvokeFailSSLValidationTest() throws Exception {
""
+ "node {\n"
+ " withEnv([\n"
+ " 'GERRIT_API_URL=https://%s:%s/a/project',\n"
+ " 'GERRIT_API_URL=https://%s:%s',\n"
+ " 'GERRIT_CREDENTIALS_ID=cid',\n"
+ " 'BRANCH_NAME=%s',\n"
+ " ]) {\n"
Expand Down Expand Up @@ -125,7 +125,7 @@ public void gerritCheckStepInvokeTest() throws Exception {
""
+ "node {\n"
+ " withEnv([\n"
+ " 'GERRIT_API_URL=https://%s:%s/a/project',\n"
+ " 'GERRIT_API_URL=https://%s:%s',\n"
+ " 'GERRIT_API_INSECURE_HTTPS=true',\n"
+ " 'GERRIT_CREDENTIALS_ID=cid',\n"
+ " 'BRANCH_NAME=%s',\n"
Expand Down Expand Up @@ -184,7 +184,7 @@ public void gerritCheckStepTestWithUrlSet() throws Exception {
""
+ "node {\n"
+ " withEnv([\n"
+ " 'GERRIT_API_URL=https://%s:%s/a/project',\n"
+ " 'GERRIT_API_URL=https://%s:%s',\n"
+ " 'GERRIT_API_INSECURE_HTTPS=true',\n"
+ " 'GERRIT_CREDENTIALS_ID=cid',\n"
+ " 'BRANCH_NAME=%s',\n"
Expand Down Expand Up @@ -242,7 +242,7 @@ public void gerritCheckStepTestProducesUtcTimestamps() throws Exception {
""
+ "node {\n"
+ " withEnv([\n"
+ " 'GERRIT_API_URL=https://%s:%s/a/project',\n"
+ " 'GERRIT_API_URL=https://%s:%s',\n"
+ " 'GERRIT_API_INSECURE_HTTPS=true',\n"
+ " 'GERRIT_CREDENTIALS_ID=cid',\n"
+ " 'BRANCH_NAME=%s',\n"
Expand Down