Klasse PipelineResultHandler

java.lang.Object
io.jenkins.plugins.util.PipelineResultHandler
Alle implementierten Schnittstellen:
ResultHandler, StageResultHandler

public class PipelineResultHandler extends Object implements StageResultHandler, ResultHandler
A ResultHandler that sets the overall build result of the Run and annotates the given Pipeline stage with a WarningAction.
Autor:
Devin Nusbaum
  • Konstruktordetails

    • PipelineResultHandler

      public PipelineResultHandler(Run<?,?> run, org.jenkinsci.plugins.workflow.graph.FlowNode flowNode)
      Creates a new instance of PipelineResultHandler.
      Parameter:
      run - the run to set the result for
      flowNode - the flow node to add a warning to
  • Methodendetails

    • setResult

      public void setResult(Result result, String message)
      Beschreibung aus Schnittstelle kopiert: StageResultHandler
      Called to set the Result of a stage.
      Angegeben von:
      setResult in Schnittstelle StageResultHandler
      Parameter:
      result - the result to set
      message - a message that describes the cause for the result
    • publishResult

      public void publishResult(Result result, String message)
      Beschreibung aus Schnittstelle kopiert: ResultHandler
      Called to notify the build or stage about the new result.
      Angegeben von:
      publishResult in Schnittstelle ResultHandler
      Parameter:
      result - the result
      message - a message that describes the cause for the result
    • publishResult

      public void publishResult(QualityGateStatus status, String message)
      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 Schnittstelle ResultHandler
      Parameter:
      status - the quality gate status
      message - a message that describes the cause for the result