diff options
author | Pierre <pierre.guillot@sonarsource.com> | 2021-01-26 13:45:35 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-02-02 20:07:48 +0000 |
commit | 832e265c8c8a1b554aa004e834bf0f45d440f9ed (patch) | |
tree | f495f33d47a980749b893a2e50ee35ca7688f5d2 /sonar-ws/src | |
parent | 2114158616c522b3cdff8b816d9469bac4047aab (diff) | |
download | sonarqube-832e265c8c8a1b554aa004e834bf0f45d440f9ed.tar.gz sonarqube-832e265c8c8a1b554aa004e834bf0f45d440f9ed.zip |
SONAR-14274 add monorepo flag for bitbucket project binding
Diffstat (limited to 'sonar-ws/src')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java | 1 | ||||
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetBitbucketBindingRequest.java | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java index 2996c11475a..0427f8cffa6 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java @@ -228,6 +228,7 @@ public class AlmSettingsService extends BaseService { .setParam("project", request.getProject()) .setParam("repository", request.getRepositoryKey()) .setParam("slug", request.getRepositorySlug()) + .setParam("monorepo", request.getMonorepo()) .setMediaType(MediaTypes.JSON)).content(); } diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetBitbucketBindingRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetBitbucketBindingRequest.java index 0ef3ca77325..57b2d238051 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetBitbucketBindingRequest.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetBitbucketBindingRequest.java @@ -33,6 +33,7 @@ public class SetBitbucketBindingRequest { private String project; private String repositoryKey; private String repositorySlug; + private Boolean monorepo; /** * This is a mandatory parameter. @@ -81,4 +82,13 @@ public class SetBitbucketBindingRequest { public String getRepositorySlug() { return repositorySlug; } + + public Boolean getMonorepo() { + return monorepo; + } + + public SetBitbucketBindingRequest setMonorepo(Boolean monorepo) { + this.monorepo = monorepo; + return this; + } } |