Class ModelValidation
java.lang.Object
io.jenkins.plugins.analysis.core.util.ModelValidation
Validates all properties of a configuration of a static analysis tool in a job.
- Author:
- Ullrich Hafner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the model with the possible reference jobs.Returns a model with all available severity filters.Returns a model with all available aggregation trend chart positions.validateHealthy
(int healthy, int unhealthy) Performs on-the-fly validation of the health report thresholds.validateJob
(String referenceJobName) Performs on-the-fly validation of the reference job.validateThreshold
(int threshold) Performs on-the-fly validation of the quality gate threshold.validateUnhealthy
(int healthy, int unhealthy) Performs on-the-fly validation of the health report thresholds.
-
Constructor Details
-
ModelValidation
public ModelValidation()Creates a new descriptor.
-
-
Method Details
-
getAllSeverityFilters
Returns a model with all available severity filters.- Returns:
- a model with all available severity filters
-
getAllTrendChartTypes
Returns a model with all available aggregation trend chart positions.- Returns:
- a model with all available aggregation trend chart positions
-
getAllJobs
Returns the model with the possible reference jobs.- Returns:
- the model with the possible reference jobs
-
validateJob
Performs on-the-fly validation of the reference job.- Parameters:
referenceJobName
- the reference job- Returns:
- the validation result
-
validateThreshold
Performs on-the-fly validation of the quality gate threshold.- Parameters:
threshold
- the threshold- Returns:
- the validation result
-
validateHealthy
Performs on-the-fly validation of the health report thresholds.- Parameters:
healthy
- the healthy thresholdunhealthy
- the unhealthy threshold- Returns:
- the validation result
-
validateUnhealthy
Performs on-the-fly validation of the health report thresholds.- Parameters:
healthy
- the healthy thresholdunhealthy
- the unhealthy threshold- Returns:
- the validation result
-