Package com.atlassian.bamboo.event
Class BuildFinishedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.atlassian.bamboo.event.BambooEvent
com.atlassian.bamboo.event.BuildEvent
com.atlassian.bamboo.event.BuildResultEvent
com.atlassian.bamboo.event.BuildStateResultEvent
com.atlassian.bamboo.event.BuildFinishedEvent
- All Implemented Interfaces:
PlanEvent,PlanResultEvent,Serializable
Fired when
BuildExecutionManager.finishBuild(PlanResultKey, boolean) or
BuildExecutionManager.finishBuildWithCleanState(PlanResultKey, BuildContext) is called.
Note that a corresponding BuildResultsSummary might not be available
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.bamboo.event.BuildStateResultEvent
buildState, lifeCycleStateFields inherited from class com.atlassian.bamboo.event.BuildResultEvent
planResultKeyFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionBuildFinishedEvent(Object source, PlanResultKey planResultKey, BuildState buildState, LifeCycleState lifeCycleState, @Nullable BuildContext buildContext) BuildFinishedEvent(Object source, PlanResultKey planResultKey, BuildState buildState, LifeCycleState lifeCycleState, @Nullable BuildContext buildContext, @NotNull Timestamp buildCompletionTimestamp) -
Method Summary
Modifier and TypeMethodDescription@NotNull Timestamp@Nullable LightweightBuildContextBagBuild context is only available if build finished 'cleanly' (i.e. not killed, orphaned or otherwise abnormally terminated)toString()Methods inherited from class com.atlassian.bamboo.event.BuildStateResultEvent
getBuildState, getLifeCycleStateMethods inherited from class com.atlassian.bamboo.event.BuildResultEvent
getBuildNumber, getBuildResultKey, getPlanResultKeyMethods inherited from class com.atlassian.bamboo.event.BuildEvent
getBuildPlanKey, getPlanKeyMethods inherited from class com.atlassian.bamboo.event.BambooEvent
equals, hashCodeMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSourceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.event.PlanEvent
getPlanKey
-
Constructor Details
-
BuildFinishedEvent
public BuildFinishedEvent(Object source, PlanResultKey planResultKey, BuildState buildState, LifeCycleState lifeCycleState, @Nullable @Nullable BuildContext buildContext) -
BuildFinishedEvent
public BuildFinishedEvent(Object source, PlanResultKey planResultKey, BuildState buildState, LifeCycleState lifeCycleState, @Nullable @Nullable BuildContext buildContext, @NotNull @NotNull Timestamp buildCompletionTimestamp)
-
-
Method Details
-
getBuildContext
Build context is only available if build finished 'cleanly' (i.e. not killed, orphaned or otherwise abnormally terminated) -
getBuildCompletionTimestamp
-
toString
- Overrides:
toStringin classBuildResultEvent
-