Package io.jenkins.plugins.util
Interface ResultHandler
- All Known Implementing Classes:
NullResultHandler
,PipelineResultHandler
,RunResultHandler
public interface ResultHandler
Handles the setting of the build or stage result.
- Author:
- Ullrich Hafner
-
Method Summary
Modifier and TypeMethodDescriptionvoid
publishResult
(Result result, String message) Called to notify the build or stage about the new result.void
publishResult
(QualityGateStatus status, String message) Called to notify the build or stage about the result that is derived from a quality gate status.
-
Method Details
-
publishResult
Called to notify the build or stage about the result that is derived from a quality gate status.- Parameters:
status
- the quality gate statusmessage
- a message that describes the cause for the result
-
publishResult
Called to notify the build or stage about the new result.- Parameters:
result
- the resultmessage
- a message that describes the cause for the result
-