From b04cd069e32d9ad87d4a5b64f62bcae316db103e Mon Sep 17 00:00:00 2001 From: Pierre Date: Wed, 4 Nov 2020 17:06:16 +0100 Subject: [PATCH] SONAR-14058 add url to create_azure endpoint --- .../ws/client/almsettings/AlmSettingsService.java | 1 + .../ws/client/almsettings/CreateAzureRequest.java | 13 +++++++++++++ 2 files changed, 14 insertions(+) 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 b12d6197b56..4eb47a12895 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 @@ -61,6 +61,7 @@ public class AlmSettingsService extends BaseService { new PostRequest(path("create_azure")) .setParam("key", request.getKey()) .setParam("personalAccessToken", request.getPersonalAccessToken()) + .setParam("url", request.getUrl()) .setMediaType(MediaTypes.JSON)).content(); } diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/CreateAzureRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/CreateAzureRequest.java index e4d8c766a52..b076e0458c3 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/CreateAzureRequest.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/CreateAzureRequest.java @@ -31,6 +31,7 @@ public class CreateAzureRequest { private String key; private String personalAccessToken; + private String url; /** * This is a mandatory parameter. @@ -56,4 +57,16 @@ public class CreateAzureRequest { return personalAccessToken; } + /** + * This is a mandatory parameter. + */ + public CreateAzureRequest setUrl(String url) { + this.url = url; + return this; + } + + public String getUrl() { + return url; + } + } -- 2.39.5