Package com.atlassian.bamboo.plan
Class PlanStatePersisterImpl
java.lang.Object
com.atlassian.bamboo.plan.PlanStatePersisterImpl
- All Implemented Interfaces:
PlanStatePersister
-
Constructor Summary
ConstructorDescriptionPlanStatePersisterImpl
(BuildResultsSummaryManager buildResultsSummaryManager, CurrentlyBuildingContainer currentlyBuildingContainer, ResultsSummaryManager resultsSummaryManager, ErrorUpdateHandler errorUpdateHandler, BuildLoggerManager buildLoggerManager, TestsManager testsManager, com.atlassian.event.api.EventPublisher eventPublisher, BuildResultWarningSummaryDao buildResultWarningSummaryDao, PlanVcsRevisionHistoryService planVcsRevisionHistoryService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
persistChainState
(@NotNull ChainState chainState) Saves the chain results.@NotNull BuildContext
saveFinishedBuildResult
(@NotNull BuildContext buildContext) Saves results of build represented by a BuildContext into DB in single transaction.void
saveNotBuiltBuildResult
(PlanResultKey planResultKey, boolean updateFollowingBuilds) Handles results of not built job.void
-
Constructor Details
-
PlanStatePersisterImpl
public PlanStatePersisterImpl(BuildResultsSummaryManager buildResultsSummaryManager, CurrentlyBuildingContainer currentlyBuildingContainer, ResultsSummaryManager resultsSummaryManager, ErrorUpdateHandler errorUpdateHandler, BuildLoggerManager buildLoggerManager, TestsManager testsManager, com.atlassian.event.api.EventPublisher eventPublisher, BuildResultWarningSummaryDao buildResultWarningSummaryDao, PlanVcsRevisionHistoryService planVcsRevisionHistoryService)
-
-
Method Details
-
saveFinishedBuildResult
@NotNull public @NotNull BuildContext saveFinishedBuildResult(@NotNull @NotNull BuildContext buildContext) throws Exception Description copied from interface:PlanStatePersister
Saves results of build represented by a BuildContext into DB in single transaction. Updates delta states of a following build if necessary.- Specified by:
saveFinishedBuildResult
in interfacePlanStatePersister
- Parameters:
buildContext
- runtime representation of build process- Returns:
- updated buildContext
- Throws:
Exception
-
saveNotBuiltBuildResult
Description copied from interface:PlanStatePersister
Handles results of not built job. Sets build state and updates delta states of a following build if necessary.- Specified by:
saveNotBuiltBuildResult
in interfacePlanStatePersister
-
persistChainState
Description copied from interface:PlanStatePersister
Saves the chain results. Updates delta states of a following chain result if necessary. Does not update associated Job results.- Specified by:
persistChainState
in interfacePlanStatePersister
-
updateFixedInResultForThisAndPreviousBuilds
-