]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-14058 add url to create_azure endpoint
authorPierre <pierre.guillot@sonarsource.com>
Wed, 4 Nov 2020 16:06:16 +0000 (17:06 +0100)
committersonartech <sonartech@sonarsource.com>
Wed, 25 Nov 2020 20:06:25 +0000 (20:06 +0000)
sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java
sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/CreateAzureRequest.java

index b12d6197b56168e10618eb5d6fbf30fa12419b3c..4eb47a12895c9cdaeb75de3f04ff873da68b89af 100644 (file)
@@ -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();
   }
 
index e4d8c766a526070b7ab510cf9bf6f112f1942cef..b076e0458c3009fd0d11f42e18af897e8dd6ae81 100644 (file)
@@ -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;
+  }
+
 }