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,PlanRepositoryDefinition> planRepositoryDefinitionMap,
Set<Long> relevantRepositoryIds,
Map<Long,String> checkoutLocation,
boolean isBranch,
boolean isOnceOff,
boolean isCustomBuild,
BambooBandanaContext bandanaContext,
Iterable<CredentialsData> relevantSharedCredentials,
Map<PlanKey,ChainStorageTag> relevantStorageTags,
BuildKey buildKey)
Using this constructor directly is not recommended.
|
equals, getBuildNumber, getBuildResultKey, getPlanId, getPlanKey, getPlanName, getPlanResultKey, getProjectName, getShortName, getTypedPlanKey, hashCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getBuildNumber, getBuildResultKey, getPlanId, getPlanKey, getPlanName, getPlanResultKey, getProjectName, getShortName, getTypedPlanKey
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,PlanRepositoryDefinition> planRepositoryDefinitionMap, Set<Long> relevantRepositoryIds, Map<Long,String> checkoutLocation, boolean isBranch, boolean isOnceOff, boolean isCustomBuild, BambooBandanaContext bandanaContext, @NotNull Iterable<CredentialsData> relevantSharedCredentials, @NotNull Map<PlanKey,ChainStorageTag> relevantStorageTags, BuildKey buildKey)
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 List<PlanRepositoryDefinition> getVcsRepositories()
getVcsRepositories
in interface CommonContext
@NotNull public Map<Long,PlanRepositoryDefinition> getVcsRepositoryMap()
getVcsRepositoryMap
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 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
@NotNull public Map<PlanKey,ChainStorageTag> getChainStorageTags()
getChainStorageTags
in interface CommonContext
public void setVariableContext(VariableContext variableContext)
setVariableContext
in interface BuildContext
public Long getEntityGroupId()
CommonContext
getEntityGroupId
in interface CommonContext
@NotNull public DockerPipelineConfiguration getDockerPipelineConfiguration()
getDockerPipelineConfiguration
in interface CommonContext
public long getMaximumBuildWarningsCount()
getMaximumBuildWarningsCount
in interface BuildContext
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.