diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2018-05-23 19:19:51 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-05-28 20:20:45 +0200 |
commit | 0f0c3b73cc423fe90d6f4b97d6e73fe7bcdc485d (patch) | |
tree | 22375a631d9ebbf013bd874dd8eafc20954a75b9 /sonar-ws-generator/src | |
parent | aff59ce2552d4a9071f7bd9d08f1fb4365843b05 (diff) | |
download | sonarqube-0f0c3b73cc423fe90d6f4b97d6e73fe7bcdc485d.tar.gz sonarqube-0f0c3b73cc423fe90d6f4b97d6e73fe7bcdc485d.zip |
SONAR-10713 Badges can only be used on projects, long living branches and applications
Diffstat (limited to 'sonar-ws-generator/src')
-rw-r--r-- | sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/ApiDefinitionDownloader.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/ApiDefinitionDownloader.java b/sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/ApiDefinitionDownloader.java index 8c232851c21..b9ccb41c9bd 100644 --- a/sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/ApiDefinitionDownloader.java +++ b/sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/ApiDefinitionDownloader.java @@ -36,7 +36,10 @@ public class ApiDefinitionDownloader { OrchestratorBuilder builder = Orchestrator.builderEnv(); builder.setZipFile(FileLocation.byWildcardMavenFilename(new File("../sonar-application/build/distributions"), "sonar-application-*.zip").getFile()) .setOrchestratorProperty("orchestrator.workspaceDir", "build"); - Orchestrator orchestrator = builder.build(); + Orchestrator orchestrator = builder + // Enable organizations ws + .setServerProperty("sonar.sonarcloud.enabled", "true") + .build(); orchestrator.start(); try { |