aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-generator/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2018-05-23 19:19:51 +0200
committerSonarTech <sonartech@sonarsource.com>2018-05-28 20:20:45 +0200
commit0f0c3b73cc423fe90d6f4b97d6e73fe7bcdc485d (patch)
tree22375a631d9ebbf013bd874dd8eafc20954a75b9 /sonar-ws-generator/src
parentaff59ce2552d4a9071f7bd9d08f1fb4365843b05 (diff)
downloadsonarqube-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.java5
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 {