aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src
diff options
context:
space:
mode:
authorPierre <pierre.guillot@sonarsource.com>2021-01-18 15:12:18 +0100
committersonartech <sonartech@sonarsource.com>2021-01-25 20:32:26 +0000
commit6b6952af75eeffbad341e5063e156019127972ab (patch)
tree21185ccd005bf2aa03ae14b1608181780d430558 /sonar-ws/src
parent3f2324e63166f2834559c031bde0fb3ddaf32bfb (diff)
downloadsonarqube-6b6952af75eeffbad341e5063e156019127972ab.tar.gz
sonarqube-6b6952af75eeffbad341e5063e156019127972ab.zip
SONAR-14334 update get_binding and set_azure_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/SetAzureBindingRequest.java10
-rw-r--r--sonar-ws/src/main/protobuf/ws-alm_settings.proto1
3 files changed, 12 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 27b7a5d46f2..2996c11475a 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
@@ -198,6 +198,7 @@ public class AlmSettingsService extends BaseService {
.setParam("project", request.getProject())
.setParam("projectName", request.getProjectName())
.setParam("repositoryName", request.getRepositoryName())
+ .setParam("monorepo", request.getMonorepo())
.setMediaType(MediaTypes.JSON)).content();
}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetAzureBindingRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetAzureBindingRequest.java
index d611ec2982d..c0a1a257ab8 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetAzureBindingRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetAzureBindingRequest.java
@@ -33,6 +33,7 @@ public class SetAzureBindingRequest {
private String project;
private String repositoryName;
private String projectName;
+ private String monorepo;
/**
* This is a mandatory parameter.
@@ -83,4 +84,13 @@ public class SetAzureBindingRequest {
this.projectName = projectName;
return this;
}
+
+ public String getMonorepo() {
+ return monorepo;
+ }
+
+ public SetAzureBindingRequest setMonorepo(String monorepo) {
+ this.monorepo = monorepo;
+ return this;
+ }
}
diff --git a/sonar-ws/src/main/protobuf/ws-alm_settings.proto b/sonar-ws/src/main/protobuf/ws-alm_settings.proto
index db102506a6c..57de78e8170 100644
--- a/sonar-ws/src/main/protobuf/ws-alm_settings.proto
+++ b/sonar-ws/src/main/protobuf/ws-alm_settings.proto
@@ -67,6 +67,7 @@ message GetBindingWsResponse {
optional string url = 4;
optional string slug = 5;
optional bool summaryCommentEnabled = 6;
+ optional bool monorepo = 7;
}
enum Alm {