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 classRemote API to show the content of an individual quality gate item.static classRemote API to list the overview of the quality gate evaluation.static classRepresents a single item of the quality gate results. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofQualityGateResultthat has its overall status set toQualityGateStatus.INACTIVE.QualityGateResult(QualityGateStatus overallStatus) Creates a new instance ofQualityGateResultwith the specified overall status. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(QualityGate qualityGate, QualityGateStatus actualStatus, String actualValue) Adds another quality gate result to the aggregated result.booleanbooleantoString()
-
Constructor Details
-
QualityGateResult
public QualityGateResult()Creates a new instance ofQualityGateResultthat has its overall status set toQualityGateStatus.INACTIVE. -
QualityGateResult
Creates a new instance ofQualityGateResultwith 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
-