Interface ChainBuildState


@Internal public interface ChainBuildState
Manages the State of the running Chain
  • Method Details

    • getPlanResultKey

      @NotNull @NotNull PlanResultKey getPlanResultKey()
      PlanResultKey for the current Chain
      Returns:
      planResultKey
    • getStageState

      @NotNull @NotNull StageState getStageState()
      Returns the StageState that this ChainBuildState belongs to
      Returns:
      stageState
    • markAsDispatched

      void markAsDispatched()
    • markAsFinalized

      void markAsFinalized(BuildState buildState)
      Parameters:
      buildState -
    • getState

      BuildState getState()
      Returns:
      the current BuildState for this Job.
    • isWaiting

      boolean isWaiting()
      Is the Task in the Waiting state
      Returns:
    • isDispatched

      boolean isDispatched()
      Is the Task in the Dispatched state
      Returns:
    • isFinalized

      boolean isFinalized()
      Is the Task in the Finalized state
      Returns:
    • isSuccessful

      boolean isSuccessful()
      Was the tasks execution successful or not?
      Returns:
      success
    • isFailed

      boolean isFailed()
      Was the tasks execution a failure
      Returns:
      failure
    • getBuildContext

      @NotNull @NotNull BuildContext getBuildContext()
      Gets the BuildContext for the Task
      Returns:
      buildContext
    • getAverageDuration

      long getAverageDuration()
      Returns:
      averageDuration of the Job
    • addResultVariablesFromPreviousStages

      void addResultVariablesFromPreviousStages(Map<String,VariableDefinitionContext> resultVariables)
      Updates build context of the jobs in with result variables collected in previous stage(s).
      Parameters:
      resultVariables -
    • setPublishedChainArtifactsInfo

      void setPublishedChainArtifactsInfo(@NotNull @NotNull Multimap<String,Artifact> publishedChainArtifacts)
      Updates build context of the jobs with artifacts published in previous stage(s).
      Parameters:
      publishedChainArtifacts -