public class SonarQubePointGenerator extends AbstractPointGenerator
Modifier and Type | Field and Description |
---|---|
static String |
BUILD_DISPLAY_NAME |
static String |
SONAR_ISSUES_BASE_URL |
static String |
SONAR_METRICS_BASE_URL |
static String |
SONARQUBE_BLOCKER_ISSUES |
static String |
SONARQUBE_COMPLEXITY |
static String |
SONARQUBE_CRTITCAL_ISSUES |
static String |
SONARQUBE_INFO_ISSUES |
static String |
SONARQUBE_LINES_OF_CODE |
static String |
SONARQUBE_MAJOR_ISSUES |
static String |
SONARQUBE_MINOR_ISSUES |
static String |
URL_PATTERN_IN_LOGS |
BUILD_NUMBER, PROJECT_NAME
Constructor and Description |
---|
SonarQubePointGenerator(MeasurementRenderer<hudson.model.Run<?,?>> measurementRenderer,
String customPrefix,
hudson.model.Run<?,?> build) |
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) |
boolean |
hasReport() |
void |
setSonarDetails(String sonarBuildLink) |
buildPoint, measurementName
public static final String BUILD_DISPLAY_NAME
public static final String SONARQUBE_LINES_OF_CODE
public static final String SONARQUBE_COMPLEXITY
public static final String SONARQUBE_CRTITCAL_ISSUES
public static final String SONARQUBE_MAJOR_ISSUES
public static final String SONARQUBE_MINOR_ISSUES
public static final String SONARQUBE_INFO_ISSUES
public static final String SONARQUBE_BLOCKER_ISSUES
public static final String URL_PATTERN_IN_LOGS
public static final String SONAR_ISSUES_BASE_URL
public static final String SONAR_METRICS_BASE_URL
public SonarQubePointGenerator(MeasurementRenderer<hudson.model.Run<?,?>> measurementRenderer, String customPrefix, hudson.model.Run<?,?> build)
public boolean hasReport()
public void setSonarDetails(String sonarBuildLink)
public org.influxdb.dto.Point[] generate()
public String getResult(String request) throws IOException
IOException
public int getLinesofCode(String url) throws IOException
IOException
public int getSonarIssues(String url, String severity) throws IOException
IOException
Copyright © 2016–2017. All rights reserved.