Skip to content

Commit

Permalink
Change endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Charleston Anjos authored and nicholasdille committed Aug 26, 2019
1 parent c351a13 commit a1c421f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ public SonarClient(String apiUrl) throws GeneralSecurityException

public JSONObject getProjectWithQualityGateDetails(String projectKey) throws Exception
{
String uri = getApiUrl() + "/resources?resource=%1$s&metrics=quality_gate_details";
String uri = getApiUrl() + "/qualitygates/project_status?projectKey=%1$s";
uri = String.format(uri, projectKey);
String resultData = requestGet(uri);

JSONArray jsonArray = new JSONArray(resultData);
JSONObject jsonObject = jsonArray.getJSONObject(0);
JSONObject jsonObject = new JSONObject(resultData);

return jsonObject;
}
Expand Down

0 comments on commit a1c421f

Please sign in to comment.