@Internal
public interface ChainResultManager
Modifier and Type | Method and Description |
---|---|
ChainStateResult |
create(BuildContext chainBuildContext,
Map<ImmutableChainStage,Map<ImmutableJob,BuildContext>> jobBuildContexts,
Collection<? extends ImmutableChainStage> stageToExecute)
|
long |
getAverageProgressDurationForStages(PlanIdentifier chain,
Collection<ChainStageResult> stageStates,
int numberOfResults)
Calculates average duration of provided stages execution
|
ChainStateResult |
updateForContinuedBuild(BuildContext chainBuildContext,
Collection<BuildContext> jobBuildContexts,
PlanExecutionConfig planExecutionConfig)
Creates a
ChainState for build already executed and stopped on manual stage of failed |
ChainStateResult |
updateForRerunBuild(BuildContext chainBuildContext,
Collection<BuildContext> jobBuildContexts,
PlanExecutionConfig planExecutionConfig)
Creates a
ChainState for build already executed and being rerun. |
void |
updateStateToInProgress(PlanResultKey chainResultKey,
Date startDate) |
@NotNull ChainStateResult create(@NotNull BuildContext chainBuildContext, @NotNull Map<ImmutableChainStage,Map<ImmutableJob,BuildContext>> jobBuildContexts, @NotNull Collection<? extends ImmutableChainStage> stageToExecute)
chainBuildContext
- jobBuildContexts
- stageToExecute
- void updateStateToInProgress(@NotNull PlanResultKey chainResultKey, @NotNull Date startDate)
chainResultKey
- startDate
- @NotNull ChainStateResult updateForContinuedBuild(@NotNull BuildContext chainBuildContext, @NotNull Collection<BuildContext> jobBuildContexts, PlanExecutionConfig planExecutionConfig)
ChainState
for build already executed and stopped on manual stage of failedchainBuildContext
- jobBuildContexts
- planExecutionConfig
- - controls the continue/restart execution@NotNull ChainStateResult updateForRerunBuild(@NotNull BuildContext chainBuildContext, @NotNull Collection<BuildContext> jobBuildContexts, PlanExecutionConfig planExecutionConfig)
ChainState
for build already executed and being rerun.
This means all succeeding manual stages that won't be executed should have their results wiped out.chainBuildContext
- jobBuildContexts
- planExecutionConfig
- - controls the continue/restart executionlong getAverageProgressDurationForStages(@NotNull PlanIdentifier chain, @NotNull Collection<ChainStageResult> stageStates, int numberOfResults)
chain
- stageStates
- stages for current execution of plan included in calculationnumberOfResults
- number of previous executions included in calculationsCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.