com.atlassian.bamboo.v2.build
Class BuildContextImpl
java.lang.Object
com.atlassian.bamboo.v2.build.BuildIdentifierImpl
com.atlassian.bamboo.v2.build.BuildContextImpl
- All Implemented Interfaces:
- BuildContext, BuildIdentifier, java.io.Serializable
public class BuildContextImpl
- extends BuildIdentifierImpl
- implements BuildContext
- See Also:
- Serialized Form
Constructor Summary |
BuildContextImpl(Plan buildPlan,
int buildNumber,
TriggerReason triggerReason,
BuildDefinition buildDefinition,
BuildChanges buildChanges)
|
BuildContextImpl(Plan buildPlan,
int buildNumber,
TriggerReason triggerReason,
BuildDefinition buildDefinition,
BuildChanges buildChanges,
BuildContext parentBuildContext,
ArtifactContext artifactContext,
VariableContext variableContext)
|
BuildContextImpl(Plan buildPlan,
int buildNumber,
TriggerReason triggerReason,
BuildDefinition buildDefinition,
BuildChanges buildChanges,
VariableContext variableContext)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
BuildContextImpl
public BuildContextImpl(Plan buildPlan,
int buildNumber,
TriggerReason triggerReason,
BuildDefinition buildDefinition,
BuildChanges buildChanges,
BuildContext parentBuildContext,
ArtifactContext artifactContext,
VariableContext variableContext)
BuildContextImpl
public BuildContextImpl(Plan buildPlan,
int buildNumber,
TriggerReason triggerReason,
BuildDefinition buildDefinition,
BuildChanges buildChanges)
BuildContextImpl
public BuildContextImpl(Plan buildPlan,
int buildNumber,
TriggerReason triggerReason,
BuildDefinition buildDefinition,
BuildChanges buildChanges,
@NotNull
VariableContext variableContext)
getParentBuildIdentifier
public BuildIdentifier getParentBuildIdentifier()
- Specified by:
getParentBuildIdentifier
in interface BuildIdentifier
- Overrides:
getParentBuildIdentifier
in class BuildIdentifierImpl
- Returns:
- the
BuildContext
of the parent Plan
execution. Should return null if the current BuildContext
is for a TopLevelPlan
getParentBuildContext
public BuildContext getParentBuildContext()
- Specified by:
getParentBuildContext
in interface BuildContext
- Returns:
- the
BuildContext
of the parent Plan
execution. Should return null if the current BuildContext
is for a TopLevelPlan
getTriggerReason
@NotNull
public TriggerReason getTriggerReason()
- Description copied from interface:
BuildContext
- The reason this build was triggered
- Specified by:
getTriggerReason
in interface BuildContext
- Returns:
- triggerReason
getBuildPlanDefinition
@NotNull
public BuildPlanDefinition getBuildPlanDefinition()
- Specified by:
getBuildPlanDefinition
in interface BuildContext
- Returns:
- buildPlanDefinition
getBuildDefinition
@NotNull
public BuildDefinition getBuildDefinition()
- Specified by:
getBuildDefinition
in interface BuildContext
- Returns:
- BuildDefinition associated with Plan this context relates to
getBuildChanges
@NotNull
public BuildChanges getBuildChanges()
- Description copied from interface:
BuildContext
- Returns the build changes, if any, that represents the changes that triggered this build.
- Specified by:
getBuildChanges
in interface BuildContext
- Returns:
- Never null. WIll return a build changes object with the appropriate list of changes, the list will be null if no changes were found.
getBuildResult
@NotNull
public CurrentBuildResult getBuildResult()
- Description copied from interface:
BuildContext
- The information about the results of a build
- Specified by:
getBuildResult
in interface BuildContext
- Returns:
CurrentBuildResult
getArtifactContext
@NotNull
public ArtifactContext getArtifactContext()
- Specified by:
getArtifactContext
in interface BuildContext
- Returns:
- Artifact data associated with Plan
getVariableContext
@NotNull
public VariableContext getVariableContext()
- Specified by:
getVariableContext
in interface BuildContext
getErrorCollection
@NotNull
public ErrorCollection getErrorCollection()
- Description copied from interface:
BuildContext
- Any errors associated with the build
- Specified by:
getErrorCollection
in interface BuildContext
Copyright © 2011 Atlassian. All Rights Reserved.