Klasse QualityGateEvaluator
java.lang.Object
io.jenkins.plugins.analysis.core.util.QualityGateEvaluator
Evaluates a set of quality gates for a static analysis report.
- Autor:
- Ullrich Hafner
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interface
Logs results of the quality gate evaluation. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
add
(int size, QualityGate.QualityGateType type, QualityGate.QualityGateResult strength) Appends the specified quality gates to the end of the list of quality gates.void
addAll
(Collection<? extends QualityGate> additionalQualityGates) Appends all of the quality gates in the specified collection to the end of the list of quality gates.evaluate
(IssuesStatistics report, QualityGateEvaluator.FormattedLogger logger) Enforces this quality gate for the specified run.boolean
Returns whether at least one quality gate has been added.
-
Konstruktordetails
-
QualityGateEvaluator
public QualityGateEvaluator()
-
-
Methodendetails
-
evaluate
public QualityGateStatus evaluate(IssuesStatistics report, QualityGateEvaluator.FormattedLogger logger) Enforces this quality gate for the specified run.- Parameter:
report
- the report to evaluatelogger
- the logger that reports the passed and failed quality gate thresholds- Gibt zurück:
- result of the evaluation, expressed by a build state
-
add
Appends the specified quality gates to the end of the list of quality gates.- Parameter:
size
- the minimum number of issues that fails the quality gatetype
- the type of the quality gatestrength
- determines whether the quality gate is a warning or failure
-
addAll
Appends all of the quality gates in the specified collection to the end of the list of quality gates.- Parameter:
additionalQualityGates
- the quality gates to add
-
isEnabled
public boolean isEnabled()Returns whether at least one quality gate has been added.- Gibt zurück:
true
if at least one quality gate has been added,false
otherwise
-