Interface ChainBuildState


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

      • 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 com.google.common.collect.Multimap<String,​Artifact> publishedChainArtifacts)
        Updates build context of the jobs with artifacts published in previous stage(s).
        Parameters:
        publishedChainArtifacts -