Package io.jenkins.plugins.util
Class RunResultHandler
java.lang.Object
io.jenkins.plugins.util.RunResultHandler
- All Implemented Interfaces:
ResultHandler,StageResultHandler
A
ResultHandler that sets the overall build result of the Run.- Author:
- Devin Nusbaum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpublishResult(Result result, String message) Called to notify the build or stage about the new result.voidpublishResult(QualityGateStatus status, String message) Called to notify the build or stage about the result that is derived from a quality gate status.voidCalled to set theResultof a stage.
-
Constructor Details
-
RunResultHandler
Creates a new instance ofRunResultHandler.- Parameters:
run- the run to set the result for
-
-
Method Details
-
setResult
Description copied from interface:StageResultHandlerCalled to set theResultof a stage.- Specified by:
setResultin interfaceStageResultHandler- Parameters:
result- the result to setmessage- a message that describes the cause for the result
-
publishResult
Description copied from interface:ResultHandlerCalled to notify the build or stage about the new result.- Specified by:
publishResultin interfaceResultHandler- Parameters:
result- the resultmessage- a message that describes the cause for the result
-
publishResult
Description copied from interface:ResultHandlerCalled to notify the build or stage about the result that is derived from a quality gate status.- Specified by:
publishResultin interfaceResultHandler- Parameters:
status- the quality gate statusmessage- a message that describes the cause for the result
-