aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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/CreateGithubRequest.java11
2 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 b9d8597a6e2..4edec9b9c7b 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
@@ -125,6 +125,7 @@ public class AlmSettingsService extends BaseService {
.setParam("url", request.getUrl())
.setParam("clientId", request.getClientId())
.setParam("clientSecret", request.getClientSecret())
+ .setParam("webhookSecret", request.getWebhookSecret())
.setMediaType(MediaTypes.JSON)).content();
}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/CreateGithubRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/CreateGithubRequest.java
index ef02ef668b2..843ab8306d0 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/CreateGithubRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/CreateGithubRequest.java
@@ -37,6 +37,7 @@ public class CreateGithubRequest {
private String url;
private String clientId;
private String clientSecret;
+ private String webhookSecret;
/**
* This is a mandatory parameter.
@@ -105,4 +106,14 @@ public class CreateGithubRequest {
public String getClientSecret() {
return clientSecret;
}
+
+ public CreateGithubRequest setWebhookSecret(@Nullable String webhookSecret) {
+ this.webhookSecret = webhookSecret;
+ return this;
+ }
+
+ @CheckForNull
+ public String getWebhookSecret() {
+ return webhookSecret;
+ }
}