Class RiskGate
- java.lang.Object
-
- org.jenkinsci.plugins.DependencyCheck.model.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 Summary
Constructors Constructor Description RiskGate(Thresholds thresholds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Result
evaluate(SeverityDistribution previousDistribution, SeverityDistribution currentDistribution)
Evaluates if the current results meet or exceed the defined threshold.
-
-
-
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 comparecurrentDistribution
- current severity distribution- Returns:
- a Result
-
-