Class PipelineResultHandler
- java.lang.Object
-
- io.jenkins.plugins.analysis.core.util.PipelineResultHandler
-
- All Implemented Interfaces:
StageResultHandler
public class PipelineResultHandler extends Object implements StageResultHandler
StageResultHandler
that sets the overall build result of theRun
and annotates the given Pipeline step with aWarningAction
.
-
-
Constructor Summary
Constructors Constructor Description PipelineResultHandler(Run<?,?> run, org.jenkinsci.plugins.workflow.graph.FlowNode flowNode)
Creates a new instance ofPipelineResultHandler
.
-
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
-
PipelineResultHandler
public PipelineResultHandler(Run<?,?> run, org.jenkinsci.plugins.workflow.graph.FlowNode flowNode)
Creates a new instance ofPipelineResultHandler
.- Parameters:
run
- the run to set the result forflowNode
- the flow node to add a warning to
-
-
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
-
-