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
Modifier and TypeClassDescriptionstatic class
Remote API to show the content of an individual quality gate item.static class
Remote API to list the overview of the quality gate evaluation.static class
Represents a single item of the quality gate results. -
Constructor Summary
ConstructorDescriptionCreates a new instance ofQualityGateResult
that has its overall status set toQualityGateStatus.INACTIVE
.QualityGateResult
(QualityGateStatus overallStatus) Creates a new instance ofQualityGateResult
with the specified overall status. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(QualityGate qualityGate, QualityGateStatus actualStatus, String actualValue) Adds another quality gate result to the aggregated result.boolean
boolean
toString()
-
Constructor Details
-
QualityGateResult
public QualityGateResult()Creates a new instance ofQualityGateResult
that has its overall status set toQualityGateStatus.INACTIVE
. -
QualityGateResult
Creates a new instance ofQualityGateResult
with the specified overall status.- Parameters:
overallStatus
- the overall status of all quality gates
-
-
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
-
toString
-