com.atlassian.bamboo.v2.build
Interface CommonContext

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
BuildContext, DeploymentContext
All Known Implementing Classes:
BuildContextImpl, DeploymentContextImpl, DeploymentRepositoryBuildContext

public interface CommonContext
extends java.io.Serializable


Method Summary
 CurrentResult getCurrentResult()
           
 java.lang.String getDisplayName()
          A human friendly description of what is being built.
 long getEntityId()
           
 Key getEntityKey()
           
 ErrorCollection getErrorCollection()
          Any errors associated with the build
 java.util.Map<java.lang.Long,RepositoryDefinition> getRepositoryDefinitionMap()
           
 java.util.List<RepositoryDefinition> getRepositoryDefinitions()
           
 ResultKey getResultKey()
           
 RuntimeTaskContext getRuntimeTaskContext()
          Runtime context for the tasks executed for given build context This context is set by pluggable RuntimeTaskDataProvider.populateRuntimeTaskData(TaskDefinition, CommonContext)
 java.util.List<TaskDefinition> getTaskDefinitions()
          All tasks defined for this build.
 TriggerReason getTriggerReason()
          The reason this build was triggered
 VariableContext getVariableContext()
           
 

Method Detail

getEntityId

long getEntityId()

getEntityKey

Key getEntityKey()

getResultKey

ResultKey getResultKey()

getDisplayName

java.lang.String getDisplayName()
A human friendly description of what is being built.

Returns:

getCurrentResult

CurrentResult getCurrentResult()

getErrorCollection

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


getTaskDefinitions

@NotNull
java.util.List<TaskDefinition> getTaskDefinitions()
All tasks defined for this build. Contains both regular tasks and finalising tasks.

Returns:
A List of TaskDefinitions

getRuntimeTaskContext

@NotNull
RuntimeTaskContext getRuntimeTaskContext()
Runtime context for the tasks executed for given build context This context is set by pluggable RuntimeTaskDataProvider.populateRuntimeTaskData(TaskDefinition, CommonContext)

Returns:

getVariableContext

@NotNull
VariableContext getVariableContext()

getTriggerReason

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

Returns:
triggerReason

getRepositoryDefinitionMap

@NotNull
java.util.Map<java.lang.Long,RepositoryDefinition> getRepositoryDefinitionMap()

getRepositoryDefinitions

@NotNull
java.util.List<RepositoryDefinition> getRepositoryDefinitions()


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.