Package io.jenkins.plugins.util
Class QualityGateResult
java.lang.Object
io.jenkins.plugins.util.QualityGateResult
- All Implemented Interfaces:
Serializable
Result of a quality gate evaluation. Aggregates the individual results of the quality gates into an overall status.
- Author:
- Ullrich Hafner
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Represents a single item of the quality gate results. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(QualityGate qualityGate, QualityGateStatus actualStatus, String actualValue) Adds another quality gate result to the aggregated result.boolean
boolean
-
Constructor Details
-
QualityGateResult
public QualityGateResult()
-
-
Method Details
-
add
Adds another quality gate result to the aggregated result.- Parameters:
qualityGate
- the quality gate that has been evaluatedactualStatus
- the status of the quality gateactualValue
- the value that has been evaluated against the quality gate threshold
-
getResultItems
-
getOverallStatus
-
isSuccessful
public boolean isSuccessful() -
isInactive
public boolean isInactive() -
getMessages
-