Package io.jenkins.plugins.util
Klasse PipelineResultHandler
java.lang.Object
io.jenkins.plugins.util.PipelineResultHandler
- Alle implementierten Schnittstellen:
ResultHandler
,StageResultHandler
A
ResultHandler
that sets the overall build result of the Run
and annotates the given Pipeline
stage with a WarningAction
.- Autor:
- Devin Nusbaum
-
Konstruktorübersicht
KonstruktorBeschreibungPipelineResultHandler
(Run<?, ?> run, org.jenkinsci.plugins.workflow.graph.FlowNode flowNode) Creates a new instance ofPipelineResultHandler
. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
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.void
Called to set theResult
of a stage.
-
Konstruktordetails
-
PipelineResultHandler
Creates a new instance ofPipelineResultHandler
.- Parameter:
run
- the run to set the result forflowNode
- the flow node to add a warning to
-
-
Methodendetails
-
setResult
Beschreibung aus Schnittstelle kopiert:StageResultHandler
Called to set theResult
of a stage.- Angegeben von:
setResult
in SchnittstelleStageResultHandler
- Parameter:
result
- the result to setmessage
- a message that describes the cause for the result
-
publishResult
Beschreibung aus Schnittstelle kopiert:ResultHandler
Called to notify the build or stage about the new result.- Angegeben von:
publishResult
in SchnittstelleResultHandler
- Parameter:
result
- the resultmessage
- a message that describes the cause for the result
-
publishResult
Beschreibung aus Schnittstelle kopiert:ResultHandler
Called to notify the build or stage about the result that is derived from a quality gate status.- Angegeben von:
publishResult
in SchnittstelleResultHandler
- Parameter:
status
- the quality gate statusmessage
- a message that describes the cause for the result
-