public class SonarQubePointGenerator extends AbstractPointGenerator
BUILD_NUMBER, CUSTOM_PREFIX, PROJECT_NAME, PROJECT_PATH, replaceDashWithUnderscore, timestamp| Constructor and Description |
|---|
SonarQubePointGenerator(MeasurementRenderer<hudson.model.Run<?,?>> measurementRenderer,
String customPrefix,
hudson.model.Run<?,?> build,
long timestamp,
hudson.model.TaskListener listener,
boolean replaceDashWithUnderscore) |
| Modifier and Type | Method and Description |
|---|---|
org.influxdb.dto.Point[] |
generate() |
int |
getLinesOfCode(String url) |
String |
getResult(String request) |
int |
getSonarIssues(String url,
String severity) |
protected String |
getSonarProjectName(String url) |
boolean |
hasReport() |
void |
setSonarDetails(String sonarBuildLink) |
buildPoint, buildPoint, measurementNamepublic SonarQubePointGenerator(MeasurementRenderer<hudson.model.Run<?,?>> measurementRenderer, String customPrefix, hudson.model.Run<?,?> build, long timestamp, hudson.model.TaskListener listener, boolean replaceDashWithUnderscore)
public boolean hasReport()
public void setSonarDetails(String sonarBuildLink)
public org.influxdb.dto.Point[] generate()
public String getResult(String request) throws IOException
IOExceptionprotected String getSonarProjectName(String url) throws URISyntaxException
URISyntaxExceptionpublic int getLinesOfCode(String url) throws IOException
IOExceptionpublic int getSonarIssues(String url, String severity) throws IOException
IOExceptionCopyright © 2016–2019. All rights reserved.