Klasse QualityGateEvaluator


public class QualityGateEvaluator extends Object
Evaluates a set of quality gates for a static analysis report.
Ullrich Hafner
  • Konstruktordetails

    • QualityGateEvaluator

      public QualityGateEvaluator()
  • Methodendetails

    • evaluate

      Enforces this quality gate for the specified run.
      report - the report to evaluate
      logger - the logger that reports the passed and failed quality gate thresholds
      Gibt zurück:
      result of the evaluation, expressed by a build state
    • add

      public void add(int size, QualityGate.QualityGateType type, QualityGate.QualityGateResult strength)
      Appends the specified quality gates to the end of the list of quality gates.
      size - the minimum number of issues that fails the quality gate
      type - the type of the quality gate
      strength - determines whether the quality gate is a warning or failure
    • addAll

      public 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.
      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