public class BuildContextImpl extends BuildIdentifierImpl implements BuildContext
Constructor and Description |
---|
BuildContextImpl(BuildIdentifier identifier,
TriggerReason triggerReason,
BuildDefinition buildDefinition,
BuildChanges buildChanges,
BuildContext parentBuildContext,
ArtifactContext artifactContext,
VariableContext variableContext,
Map<String,String> customBuildData,
Map<Long,RepositoryDefinition> repositoryDefinitionMap,
Set<Long> relevantRepositoryIds,
Map<Long,String> checkoutLocation,
boolean isBranch,
boolean isOnceOff,
boolean isCustomBuild,
BambooBandanaContext bandanaContext,
Iterable<CredentialsData> relevantSharedCredentials)
Using this constructor directly is not recommended.
|
Modifier and Type | Method and Description |
---|---|
ArtifactContext |
getArtifactContext() |
BambooBandanaContext |
getBandanaContext()
BandanaContext of the plan.
|
BuildChanges |
getBuildChanges()
Returns the build changes, if any, that represents the changes that triggered this build.
|
BuildDefinition |
getBuildDefinition() |
BuildKey |
getBuildKey() |
CurrentBuildResult |
getBuildResult()
The information about the results of a build
|
Map<Long,String> |
getCheckoutLocation()
Map holds final checkout where repository was checked out by VcsCheckoutTask Elements are kept in order of
checkout
|
CurrentResult |
getCurrentResult() |
String |
getDisplayName()
A human friendly description of what is being built.
|
long |
getEntityId() |
Key |
getEntityKey() |
ErrorCollection |
getErrorCollection()
Any errors associated with the build
|
BuildContext |
getParentBuildContext() |
BuildIdentifier |
getParentBuildIdentifier() |
Set<Long> |
getRelevantRepositoryIds() |
Map<Long,RepositoryDefinition> |
getRepositoryDefinitionMap() |
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) |
List<RuntimeTaskDefinition> |
getRuntimeTaskDefinitions()
All tasks defined for this build.
|
Iterable<CredentialsData> |
getSharedCredentials() |
List<TaskDefinition> |
getTaskDefinitions()
All tasks defined for this build.
|
TriggerReason |
getTriggerReason()
The reason this build was triggered
|
VariableContext |
getVariableContext() |
boolean |
isBranch()
Provides information if context refers to the branch of the Chain
|
boolean |
isCustomBuild()
Provides information if context refers to the build that had some variables overwritten
|
boolean |
isOnceOff()
Provides information if context refers to the "once-off" build - a build that have been run with customized
revision
|
void |
setBuildChanges(BuildChanges buildChanges) |
void |
setRelevantRepositories(Set<RepositoryDefinition> relevantRepositories) |
void |
setVariableContext(VariableContext variableContext) |
equals, getBuildNumber, getBuildResultKey, getPlanId, getPlanKey, getPlanName, getPlanResultKey, getProjectName, getShortName, hashCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getBuildNumber, getBuildResultKey, getPlanId, getPlanKey, getPlanName, getPlanResultKey, getProjectName, getShortName
public BuildContextImpl(BuildIdentifier identifier, TriggerReason triggerReason, BuildDefinition buildDefinition, @Nullable BuildChanges buildChanges, BuildContext parentBuildContext, @Nullable ArtifactContext artifactContext, VariableContext variableContext, @Nullable Map<String,String> customBuildData, Map<Long,RepositoryDefinition> repositoryDefinitionMap, Set<Long> relevantRepositoryIds, Map<Long,String> checkoutLocation, boolean isBranch, boolean isOnceOff, boolean isCustomBuild, BambooBandanaContext bandanaContext, @NotNull Iterable<CredentialsData> relevantSharedCredentials)
BuildContextBuilder
instead.@NotNull public BuildKey getBuildKey()
getBuildKey
in interface CommonContext
public BuildIdentifier getParentBuildIdentifier()
getParentBuildIdentifier
in interface BuildIdentifier
getParentBuildIdentifier
in class BuildIdentifierImpl
BuildContext
of the parent Plan
execution. Should return null if the current BuildContext
is for a TopLevelPlan
public BuildContext getParentBuildContext()
getParentBuildContext
in interface BuildContext
BuildContext
of the parent Plan
execution. Should return null if the current
BuildContext
is for a TopLevelPlan
@NotNull public TriggerReason getTriggerReason()
CommonContext
getTriggerReason
in interface CommonContext
@NotNull public BuildDefinition getBuildDefinition()
getBuildDefinition
in interface BuildContext
@NotNull public BuildChanges getBuildChanges()
BuildContext
getBuildChanges
in interface BuildContext
public void setBuildChanges(BuildChanges buildChanges)
setBuildChanges
in interface BuildContext
@NotNull public CurrentBuildResult getBuildResult()
BuildContext
getBuildResult
in interface BuildContext
CurrentBuildResult
@NotNull public CurrentResult getCurrentResult()
getCurrentResult
in interface CommonContext
@NotNull public ArtifactContext getArtifactContext()
getArtifactContext
in interface BuildContext
@NotNull public VariableContext getVariableContext()
getVariableContext
in interface CommonContext
@NotNull public Map<Long,RepositoryDefinition> getRepositoryDefinitionMap()
getRepositoryDefinitionMap
in interface CommonContext
@NotNull public List<RepositoryDefinition> getRepositoryDefinitions()
getRepositoryDefinitions
in interface CommonContext
@NotNull public Map<Long,String> getCheckoutLocation()
BuildContext
getCheckoutLocation
in interface BuildContext
public boolean isBranch()
BuildContext
isBranch
in interface BuildContext
public boolean isOnceOff()
BuildContext
isOnceOff
in interface BuildContext
public boolean isCustomBuild()
BuildContext
isCustomBuild
in interface BuildContext
@NotNull public RuntimeTaskContext getRuntimeTaskContext()
BuildContext
RuntimeTaskDataProvider.populateRuntimeTaskData(TaskDefinition, CommonContext)
getRuntimeTaskContext
in interface BuildContext
getRuntimeTaskContext
in interface CommonContext
@NotNull public BambooBandanaContext getBandanaContext()
BuildContext
getBandanaContext
in interface BuildContext
BandanaContext
of the plan@NotNull public ErrorCollection getErrorCollection()
CommonContext
getErrorCollection
in interface CommonContext
public void setRelevantRepositories(@NotNull Set<RepositoryDefinition> relevantRepositories)
@NotNull public Set<Long> getRelevantRepositoryIds()
getRelevantRepositoryIds
in interface BuildContext
public Key getEntityKey()
getEntityKey
in interface CommonContext
public ResultKey getResultKey()
getResultKey
in interface CommonContext
public String getDisplayName()
CommonContext
getDisplayName
in interface CommonContext
@NotNull public List<TaskDefinition> getTaskDefinitions()
CommonContext
getTaskDefinitions
in interface CommonContext
List
of TaskDefinition
s@NotNull public List<RuntimeTaskDefinition> getRuntimeTaskDefinitions()
CommonContext
getRuntimeTaskDefinitions
in interface CommonContext
List
of RuntimeTaskDefinition
spublic long getEntityId()
getEntityId
in interface CommonContext
@NotNull public Iterable<CredentialsData> getSharedCredentials()
getSharedCredentials
in interface CommonContext
public void setVariableContext(VariableContext variableContext)
setVariableContext
in interface BuildContext
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.