Package io.jenkins.plugins.util
Klasse QualityGateEvaluator<T extends QualityGate>
java.lang.Object
io.jenkins.plugins.util.QualityGateEvaluator<T>
- Typparameter:
T
- the concrete type of the quality gates
Evaluates a given set of quality gates.
- Autor:
- Johannes Walter
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungprotected
QualityGateEvaluator
(Collection<? extends T> qualityGates) Creates a new quality evaluator for the specified quality gates. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addAll
(Collection<? extends T> additionalQualityGates) Appends all the specified quality gates to the end of the existing quality gates.evaluate
(ResultHandler resultHandler, edu.hm.hafner.util.FilteredLog log) Enforces the quality gates for the specified run.protected abstract void
evaluate
(T qualityGate, QualityGateResult result) boolean
Returns whether at least one quality gate has been added.
-
Konstruktordetails
-
QualityGateEvaluator
Creates a new quality evaluator for the specified quality gates.- Parameter:
qualityGates
- the quality gates to evaluate
-
-
Methodendetails
-
evaluate
Enforces the quality gates for the specified run.- Parameter:
resultHandler
- the result handler to publish the resultlog
- the logger- Gibt zurück:
- result of the evaluation, expressed by a build state
-
evaluate
-
addAll
Appends all the specified quality gates to the end of the existing 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
-