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)
BuildExecutionManagerBuildContext
At this point a BuildResultsSummary exists that matches the given BuildContextexecute in interface BuildExecutionManager@NotNull public List<CurrentlyBuilding> getCurrentlyExecutingBuilds()
BuildExecutionManagergetCurrentlyExecutingBuilds in interface BuildExecutionManager@NotNull public Iterable<CurrentlyBuilding> getCurrentlyExecuting()
BuildExecutionManagergetCurrentlyExecuting in interface BuildExecutionManager@NotNull public List<CurrentlyBuilding> getCurrentlyExecutingBuilds(String planKey)
BuildExecutionManagergetCurrentlyExecutingBuilds in interface BuildExecutionManagerpublic 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)
BuildExecutionManagerCurrentlyBuilding 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)
BuildExecutionManagerCurrentlyBuilding 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)
BuildExecutionManagerCurrentlyBuilding instance for build identifier (or BuildContext).getCurrentlyBuildingByBuildResult in interface BuildExecutionManagerpublic void setCurrentlyBuilding(@NotNull
BuildContext buildContext,
@NotNull
Collection<BuildAgent> executableAgents,
@NotNull
Collection<ElasticImageConfiguration> executableImages)
setCurrentlyBuilding in interface BuildExecutionManagerbuildContext - 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 BuildExecutionManagerpublic void finishBuildWithCleanState(@NotNull
PlanResultKey planResultKey,
@NotNull
BuildContext buildContext)
BuildExecutionManagerBuildExecutionManager.finishBuild(PlanResultKey) instead.finishBuildWithCleanState in interface BuildExecutionManagerplanResultKey - identifies plan resultpublic void finishBuild(@NotNull
PlanResultKey planResultKey)
BuildExecutionManagerfinishBuild in interface BuildExecutionManagerplanResultKey - 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
OutOfBandBuildTimingPoints.VcsSyncStarted event)
@EventListener
public void onExecutionStartedTimingPoint(@NotNull
OutOfBandBuildTimingPoints.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 © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.