Class RiskGate

  • All Implemented Interfaces:
    Serializable

    public class RiskGate
    extends Object
    implements Serializable
    Ported from the Dependency-Track Jenkins plugin.
    Since:
    5.0.0
    Author:
    Steve Springett (steve.springett@owasp.org)
    See Also:
    Serialized Form
    • Constructor Detail

      • RiskGate

        public RiskGate​(Thresholds thresholds)
    • Method Detail

      • evaluate

        public Result evaluate​(SeverityDistribution previousDistribution,
                               SeverityDistribution currentDistribution)
        Evaluates if the current results meet or exceed the defined threshold.
        Parameters:
        previousDistribution - previous severity distribution from which compare
        currentDistribution - current severity distribution
        Returns:
        a Result