Package com.atlassian.bamboo.v2.build
Interface CommonContext
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
BuildContext
,DeploymentContext
- All Known Implementing Classes:
BuildContextImpl
,DeploymentContextImpl
,DeploymentRepositoryBuildContext
Parent interface for the object keeping the data required for the chain execution
-
Method Summary
Modifier and TypeMethodDescription@NotNull CommonArtifactContext
@NotNull BuildKey
@NotNull Map<PlanKey,
ChainStorageTag> A human friendly description of what is being built.@NotNull DockerPipelineConfiguration
Returns id of a group entity belongs to.long
@NotNull ErrorCollection
Any errors associated with the build@NotNull List<RuntimeTaskDefinition>
All tasks defined for this build.@NotNull Iterable<CredentialsData>
@NotNull TriggerReason
The reason this build was triggered@NotNull VariableContext
@NotNull List<PlanRepositoryDefinition>
@NotNull Map<Long,
PlanRepositoryDefinition> boolean
If this job is expected to be built on a custom dedicated agentboolean
Controls the amount of logging during the execution.
-
Method Details
-
getBuildKey
-
getEntityId
long getEntityId() -
getEntityGroupId
Long getEntityGroupId()Returns id of a group entity belongs to. E.g. returns deployment project's id if entity is a deployment environment.- Returns:
- id of entity group or null if not applicable.
-
getEntityKey
Key getEntityKey() -
getResultKey
ResultKey getResultKey() -
getDisplayName
String getDisplayName()A human friendly description of what is being built.- Returns:
-
getCurrentResult
CurrentResult getCurrentResult() -
getArtifactContext
- Returns:
- Artifact data associated with plan or deployment
-
getErrorCollection
Any errors associated with the build -
getRuntimeTaskDefinitions
All tasks defined for this build. Contains both regular tasks and finalising tasks.- Returns:
- A
List
ofRuntimeTaskDefinition
s
-
getVariableContext
-
getTriggerReason
The reason this build was triggered- Returns:
- triggerReason
-
getVcsRepositoryMap
-
getVcsRepositories
-
getChainStorageTags
-
getDockerPipelineConfiguration
-
isVerboseLoggingOn
boolean isVerboseLoggingOn()Controls the amount of logging during the execution. Some of the logging is only output in verbose mode.- Returns:
- true if verbose logging is enabled.
- Since:
- 7.2
-
isExpectingCustomDedicatedAgent
boolean isExpectingCustomDedicatedAgent()If this job is expected to be built on a custom dedicated agent
-