diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2018-04-18 17:57:55 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-05-10 20:20:53 +0200 |
commit | af37124fb9fc67d55fe76bb648dbb435227aacf6 (patch) | |
tree | 8bd9a88b4646220826654e002de6cd00a7586cb8 /sonar-ws | |
parent | a756fd6650759b0b6983913489f50a03d684d8bc (diff) | |
download | sonarqube-af37124fb9fc67d55fe76bb648dbb435227aacf6.tar.gz sonarqube-af37124fb9fc67d55fe76bb648dbb435227aacf6.zip |
SONAR-10592 new WS api/ce/info
Diffstat (limited to 'sonar-ws')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java | 12 | ||||
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-ce.proto | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java index effd68204df..aa49783c8cc 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java @@ -29,6 +29,7 @@ import org.sonarqube.ws.client.WsConnector; import org.sonarqube.ws.Ce.ActivityResponse; import org.sonarqube.ws.Ce.ActivityStatusWsResponse; import org.sonarqube.ws.Ce.ComponentResponse; +import org.sonarqube.ws.Ce.InfoWsResponse; import org.sonarqube.ws.Ce.SubmitResponse; import org.sonarqube.ws.Ce.TaskResponse; import org.sonarqube.ws.Ce.TaskTypesWsResponse; @@ -127,6 +128,17 @@ public class CeService extends BaseService { } /** + * This is a GET request. + * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/info">Further information about this action online (including a response example)</a> + * @since 7.2 + */ + public InfoWsResponse info() { + return call( + new GetRequest(path("info")), + InfoWsResponse.parser()); + } + + /** * * This is part of the internal API. * This is a POST request. diff --git a/sonar-ws/src/main/protobuf/ws-ce.proto b/sonar-ws/src/main/protobuf/ws-ce.proto index 5787a326e5e..b52038250c0 100644 --- a/sonar-ws/src/main/protobuf/ws-ce.proto +++ b/sonar-ws/src/main/protobuf/ws-ce.proto @@ -57,6 +57,12 @@ message ComponentResponse { optional Task current = 2; } +// GET api/ce/info +message InfoWsResponse { + optional bool workersPaused = 1; + optional bool workersPauseRequested = 2; +} + // GET api/ce/task_types message TaskTypesWsResponse { repeated string taskTypes = 1; |