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.
|
| 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<PlanKey,ChainStorageTag> |
getChainStorageTags() |
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.
|
DockerPipelineConfiguration |
getDockerPipelineConfiguration() |
Long |
getEntityGroupId()
Returns id of a group entity belongs to.
|
long |
getEntityId() |
Key |
getEntityKey() |
ErrorCollection |
getErrorCollection()
Any errors associated with the build
|
long |
getMaximumBuildWarningsCount() |
BuildContext |
getParentBuildContext() |
BuildIdentifier |
getParentBuildIdentifier() |
Set<Long> |
getRelevantRepositoryIds() |
ResultKey |
getResultKey() |
List<RuntimeTaskDefinition> |
getRuntimeTaskDefinitions()
All tasks defined for this build.
|
Iterable<CredentialsData> |
getSharedCredentials() |
TriggerReason |
getTriggerReason()
The reason this build was triggered
|
VariableContext |
getVariableContext() |
List<PlanRepositoryDefinition> |
getVcsRepositories() |
Map<Long,PlanRepositoryDefinition> |
getVcsRepositoryMap() |
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, getMasterPlanId, getPlanDbId, getPlanId, getPlanKey, getPlanName, getPlanResultKey, getProjectName, getShortName, getTypedPlanKey, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetBuildNumber, getBuildResultKey, getMasterPlanId, getPlanDbId, getPlanId, getPlanKey, getPlanName, getPlanResultKey, getProjectName, getShortName, getTypedPlanKeypublic 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 CommonContextpublic BuildIdentifier getParentBuildIdentifier()
getParentBuildIdentifier in interface BuildIdentifiergetParentBuildIdentifier in class BuildIdentifierImplBuildContext of the parent Plan execution. Should return null if the current BuildContext is for a Chainpublic BuildContext getParentBuildContext()
getParentBuildContext in interface BuildContextBuildContext of the parent Plan execution. Should return null if the current
BuildContext is for a TopLevelPlan@NotNull public TriggerReason getTriggerReason()
CommonContextgetTriggerReason in interface CommonContext@NotNull public BuildDefinition getBuildDefinition()
getBuildDefinition in interface BuildContext@NotNull public BuildChanges getBuildChanges()
BuildContextgetBuildChanges in interface BuildContextpublic void setBuildChanges(BuildChanges buildChanges)
setBuildChanges in interface BuildContext@NotNull public CurrentBuildResult getBuildResult()
BuildContextgetBuildResult in interface BuildContextCurrentBuildResult@NotNull public CurrentResult getCurrentResult()
getCurrentResult in interface CommonContext@NotNull public ArtifactContext getArtifactContext()
getArtifactContext in interface BuildContextgetArtifactContext in interface CommonContext@NotNull public VariableContext getVariableContext()
getVariableContext 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()
BuildContextgetCheckoutLocation in interface BuildContextpublic boolean isBranch()
BuildContextisBranch in interface BuildContextpublic boolean isOnceOff()
BuildContextisOnceOff in interface BuildContextpublic boolean isCustomBuild()
BuildContextisCustomBuild in interface BuildContext@NotNull public BambooBandanaContext getBandanaContext()
BuildContextgetBandanaContext in interface BuildContextBandanaContext of the plan@NotNull public ErrorCollection getErrorCollection()
CommonContextgetErrorCollection in interface CommonContextpublic void setRelevantRepositories(@NotNull
Set<RepositoryDefinition> relevantRepositories)
@NotNull public Set<Long> getRelevantRepositoryIds()
getRelevantRepositoryIds in interface BuildContextpublic Key getEntityKey()
getEntityKey in interface CommonContextpublic ResultKey getResultKey()
getResultKey in interface CommonContextpublic String getDisplayName()
CommonContextgetDisplayName in interface CommonContext@NotNull public List<RuntimeTaskDefinition> getRuntimeTaskDefinitions()
CommonContextgetRuntimeTaskDefinitions in interface CommonContextList of RuntimeTaskDefinitionspublic long getEntityId()
getEntityId in interface CommonContext@NotNull public Iterable<CredentialsData> getSharedCredentials()
getSharedCredentials in interface CommonContext@NotNull public Map<PlanKey,ChainStorageTag> getChainStorageTags()
getChainStorageTags in interface CommonContextpublic void setVariableContext(VariableContext variableContext)
setVariableContext in interface BuildContextpublic Long getEntityGroupId()
CommonContextgetEntityGroupId in interface CommonContext@NotNull public DockerPipelineConfiguration getDockerPipelineConfiguration()
getDockerPipelineConfiguration in interface CommonContextpublic long getMaximumBuildWarningsCount()
getMaximumBuildWarningsCount in interface BuildContextCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.