Klasse QualityGateEvaluator<T extends QualityGate>

T - the concrete type of the quality gates

public abstract class QualityGateEvaluator<T extends QualityGate> extends Object
Evaluates a given set of quality gates.
Johannes Walter
  • Konstruktordetails

    • QualityGateEvaluator

      protected QualityGateEvaluator(Collection<? extends T> qualityGates)
      Creates a new quality evaluator for the specified quality gates.
      qualityGates - the quality gates to evaluate
  • Methodendetails

    • evaluate

      public QualityGateResult evaluate()
      Enforces the quality gates for the specified run.
      Gibt zurück:
      result of the evaluation, expressed by a build state
    • evaluate

      protected abstract void evaluate(T qualityGate, QualityGateResult result)
    • addAll

      public void addAll(Collection<? extends T> additionalQualityGates)
      Appends all the quality gates in the specified collection to the end of the list of quality gates.
      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