com.atlassian.bamboo.v2.build
Interface BuildContext

All Superinterfaces:
BuildIdentifier, java.io.Serializable
All Known Implementing Classes:
BuildContextImpl

@ThreadSafe
public interface BuildContext
extends BuildIdentifier

A class that encapsulates how to build a particular plan at a given instance


Method Summary
 BuildChanges getBuildChanges()
          Returns the build changes, if any, that represents the changes that triggered this build.
 BuildPlanDefinition getBuildPlanDefinition()
           
 CurrentBuildResult getBuildResult()
          The information about the results of a build
 ErrorCollection getErrorCollection()
          Any errors associated with the build
 TriggerReason getTriggerReason()
          The reason this build was triggered
 
Methods inherited from interface com.atlassian.bamboo.v2.build.BuildIdentifier
getBuildNumber, getBuildResultKey, getPlanId, getPlanKey, getPlanName
 

Method Detail

getTriggerReason

@NotNull
TriggerReason getTriggerReason()
The reason this build was triggered

Returns:
@NotNull

getBuildPlanDefinition

@NotNull
BuildPlanDefinition getBuildPlanDefinition()
Returns:

getBuildChanges

@NotNull
BuildChanges getBuildChanges()
Returns the build changes, if any, that represents the changes that triggered this build.

Returns:
Never null. WIll return a build changes object with the approriate list of changes, the list will be null if no changes were found.

getBuildResult

@NotNull
CurrentBuildResult getBuildResult()
The information about the results of a build

Returns:
CurrentBuildResult

getErrorCollection

@NotNull
ErrorCollection getErrorCollection()
Any errors associated with the build



Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.