aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src
diff options
context:
space:
mode:
authorBelen Pruvost <belen.pruvost@sonarsource.com>2021-01-29 12:29:55 +0100
committersonartech <sonartech@sonarsource.com>2021-02-02 20:07:48 +0000
commit41983cd40bb8b339ee3793dbc1adc86daf8f0875 (patch)
tree1b932d6f8d92cbe0c2eb249604ef89b825457bbb /sonar-ws/src
parent832e265c8c8a1b554aa004e834bf0f45d440f9ed (diff)
downloadsonarqube-41983cd40bb8b339ee3793dbc1adc86daf8f0875.tar.gz
sonarqube-41983cd40bb8b339ee3793dbc1adc86daf8f0875.zip
SONAR-14405 - GL Monorepo flag on Set Binding
Diffstat (limited to 'sonar-ws/src')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetGitlabBindingRequest.java11
2 files changed, 11 insertions, 1 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 0427f8cffa6..4c97122f428 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
@@ -213,6 +213,7 @@ public class AlmSettingsService extends BaseService {
.setParam("almSetting", request.getAlmSetting())
.setParam("project", request.getProject())
.setParam("repository", request.getRepository())
+ .setParam("monorepo", request.getMonorepo())
.setMediaType(MediaTypes.JSON)).content();
}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetGitlabBindingRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetGitlabBindingRequest.java
index 6bf7770575f..41cfbdc1e86 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetGitlabBindingRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetGitlabBindingRequest.java
@@ -32,7 +32,7 @@ public class SetGitlabBindingRequest {
private String almSetting;
private String project;
private String repository;
-
+ private String monorepo;
public String getRepository() {
return repository;
@@ -67,4 +67,13 @@ public class SetGitlabBindingRequest {
return project;
}
+ public String getMonorepo() {
+ return monorepo;
+ }
+
+ public SetGitlabBindingRequest setMonorepo(String monorepo) {
+ this.monorepo = monorepo;
+ return this;
+ }
+
}