diff options
Diffstat (limited to 'sonar-batch/src')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/report/ReportPublisher.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/report/ReportPublisher.java b/sonar-batch/src/main/java/org/sonar/batch/report/ReportPublisher.java index 232d91d4e7e..7601804b56c 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/report/ReportPublisher.java +++ b/sonar-batch/src/main/java/org/sonar/batch/report/ReportPublisher.java @@ -138,7 +138,8 @@ public class ReportPublisher implements Startable { void sendOrDumpReport(File report) { ProjectDefinition projectDefinition = projectReactor.getRoot(); String effectiveKey = projectDefinition.getKeyWithBranch(); - String relativeUrl = "/api/ce/submit?projectKey=" + effectiveKey + "&projectName=" + BatchUtils.encodeForUrl(projectDefinition.getName()); + String relativeUrl = String.format("/api/ce/submit?projectKey=%s&projectName=%s&projectBranch=%s", + projectDefinition.getKey(), BatchUtils.encodeForUrl(projectDefinition.getName()), BatchUtils.encodeForUrl(projectDefinition.getBranch())); String dumpDirLocation = settings.getString(DUMP_REPORT_PROP_KEY); if (dumpDirLocation == null) { |