Class RunResultHandler
- java.lang.Object
-
- io.jenkins.plugins.analysis.core.util.RunResultHandler
-
- All Implemented Interfaces:
StageResultHandler
public class RunResultHandler extends Object implements StageResultHandler
StageResultHandler
that sets the overall build result of theRun
.
-
-
Constructor Summary
Constructors Constructor Description RunResultHandler(Run<?,?> run)
Creates a new instance ofRunResultHandler
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setResult(Result result, String message)
Called to set theResult
of a stage.
-
-
-
Constructor Detail
-
RunResultHandler
public RunResultHandler(Run<?,?> run)
Creates a new instance ofRunResultHandler
.- Parameters:
run
- the run to set the result for
-
-
Method Detail
-
setResult
public void setResult(Result result, String message)
Description copied from interface:StageResultHandler
Called to set theResult
of a stage.- Specified by:
setResult
in interfaceStageResultHandler
- Parameters:
result
- the result to setmessage
- a message that describes the cause for the result
-
-