public class DefaultBuildExecutionManager extends Object implements BuildExecutionManager
postConstruct()
Constructor and Description |
---|
DefaultBuildExecutionManager(org.quartz.Scheduler scheduler) |
public DefaultBuildExecutionManager(org.quartz.Scheduler scheduler)
public void execute(@NotNull BuildContext buildContext)
BuildExecutionManager
BuildContext
At this point a BuildResultsSummary
exists that matches the given BuildContext
execute
in interface BuildExecutionManager
@NotNull public List<CurrentlyBuilding> getCurrentlyExecutingBuilds()
BuildExecutionManager
getCurrentlyExecutingBuilds
in interface BuildExecutionManager
@NotNull public Iterable<CurrentlyBuilding> getCurrentlyExecuting()
BuildExecutionManager
getCurrentlyExecuting
in interface BuildExecutionManager
@NotNull public List<CurrentlyBuilding> getCurrentlyExecutingBuilds(String planKey)
BuildExecutionManager
getCurrentlyExecutingBuilds
in interface BuildExecutionManager
public Iterable<CurrentlyBuilding> getCurrentlyExecuting(PlanKey planKey)
getCurrentlyExecuting
in interface BuildExecutionManager
@NotNull public List<CurrentlyBuilding> getCurrentlyBuilding(@NotNull String planKey)
getCurrentlyBuilding
in interface BuildExecutionManager
@NotNull public List<CurrentlyBuilding> getCurrentlyBuilding(@NotNull Key key)
getCurrentlyBuilding
in interface BuildExecutionManager
@Nullable public CurrentlyBuilding getCurrentlyBuildingByBuildResultKey(@NotNull String buildResultKey)
BuildExecutionManager
CurrentlyBuilding
instance for build identified by buildResultKey.
Should be used only if BuildIdentifier
is not available - basically in actionsgetCurrentlyBuildingByBuildResultKey
in interface BuildExecutionManager
@Nullable public CurrentlyBuilding getCurrentlyBuildingByPlanResultKey(@NotNull ResultKey resultKey)
BuildExecutionManager
CurrentlyBuilding
instance for build identified by buildResultKey.
Should be used only if BuildIdentifier
is not available - basically in actionsgetCurrentlyBuildingByPlanResultKey
in interface BuildExecutionManager
@Nullable public CurrentlyBuilding getCurrentlyBuildingByBuildResult(@NotNull BuildIdentifier buildIdentifier)
BuildExecutionManager
CurrentlyBuilding
instance for build identifier (or BuildContext
).getCurrentlyBuildingByBuildResult
in interface BuildExecutionManager
public void setCurrentlyBuilding(@NotNull BuildContext buildContext, @NotNull Collection<BuildAgent> executableAgents, @NotNull Collection<ElasticImageConfiguration> executableImages)
setCurrentlyBuilding
in interface BuildExecutionManager
buildContext
- executableAgents
- - a list of agents on which this build can be run.executableImages
- - a list of images on which the build can be run.@Nullable public CurrentlyBuilding getBuildRunningOnAgent(@NotNull Long buildAgentId)
getBuildRunningOnAgent
in interface BuildExecutionManager
public void finishBuildWithCleanState(@NotNull PlanResultKey planResultKey, @NotNull BuildContext buildContext)
BuildExecutionManager
#finishBuild(PlanResultKey)
instead.finishBuildWithCleanState
in interface BuildExecutionManager
planResultKey
- identifies plan resultpublic void finishBuild(@NotNull PlanResultKey planResultKey, boolean updateFollowingBuilds)
BuildExecutionManager
finishBuild
in interface BuildExecutionManager
planResultKey
- identifies plan resultpublic CurrentlyBuilding removeCurrentlyBuilding(@NotNull String planKey)
removeCurrentlyBuilding
in interface BuildExecutionManager
@Nullable public CurrentlyBuilding removeCurrentlyBuilding(@NotNull ResultKey resultKey)
removeCurrentlyBuilding
in interface BuildExecutionManager
@EventListener public void onQueuedTimingPoint(@NotNull BuildTimingPoints.Queued event)
@EventListener public void onVcsSyncStartedTimingPoint(@NotNull BuildTimingPoints.VcsSyncStarted event)
@EventListener public void onExecutionStartedTimingPoint(@NotNull BuildTimingPoints.ExecutionStarted event)
@EventListener public void onExecutionCancelledTimingPoint(@NotNull BuildTimingPoints.ExecutionCancelled event)
@EventListener public void onExecutionFinishedTimingPoint(@NotNull BuildTimingPoints.ExecutionFinished event)
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
public void setAuthorCreatorService(AuthorCreatorService authorCreatorService)
public void setPlanStatePersisterService(PlanStatePersisterService planStatePersisterService)
public void setCachedPlanManager(CachedPlanManager cachedPlanManager)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.