diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-09-18 11:27:06 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-09-18 23:49:44 +0200 |
commit | 8b80e32f4e020ecc82b6e4fd6fd01b5d9374167a (patch) | |
tree | 46cfd62c29832a887a914de4a37b5f0485da7ecd /sonar-batch | |
parent | 4f109df6d8e53e6a2db17bbfcdb9d38332256930 (diff) | |
download | sonarqube-8b80e32f4e020ecc82b6e4fd6fd01b5d9374167a.tar.gz sonarqube-8b80e32f4e020ecc82b6e4fd6fd01b5d9374167a.zip |
SONAR-6834 support project branches
Diffstat (limited to 'sonar-batch')
-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) { |