Package com.atlassian.bamboo.event
Class BuildFinishedEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- com.atlassian.event.Event
-
- 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
@AsynchronousPreferred public class BuildFinishedEvent extends BuildStateResultEvent
Fired whenBuildExecutionManager#finishBuild(PlanResultKey)
is called Note that that a correspondingBuildResultsSummary
might not be available SeeBuildCompletedEvent
andPostBuildCompletedEvent
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.event.BuildStateResultEvent
buildState, lifeCycleState
-
Fields inherited from class com.atlassian.bamboo.event.BuildResultEvent
planResultKey
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description BuildFinishedEvent(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Timestamp
getBuildCompletionTimestamp()
@Nullable BuildContext
getBuildContext()
Build context is only available if build finished 'cleanly' (i.e.String
toString()
-
Methods inherited from class com.atlassian.bamboo.event.BuildStateResultEvent
getBuildState, getLifeCycleState
-
Methods inherited from class com.atlassian.bamboo.event.BuildResultEvent
getBuildNumber, getBuildResultKey, getPlanResultKey
-
Methods inherited from class com.atlassian.bamboo.event.BuildEvent
getBuildPlanKey, getPlanKey
-
Methods inherited from class java.util.EventObject
getSource
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.event.PlanEvent
getPlanKey
-
-
-
-
Constructor Detail
-
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 Detail
-
getBuildContext
@Nullable public @Nullable BuildContext getBuildContext()
Build context is only available if build finished 'cleanly' (i.e. not killed, orphaned or otherwise abnormally terminated)
-
getBuildCompletionTimestamp
@NotNull public @NotNull Timestamp getBuildCompletionTimestamp()
-
toString
public String toString()
- Overrides:
toString
in classBuildResultEvent
-
-