public class BuildContextImpl extends BuildIdentifierImpl implements BuildContext
Constructor and Description |
---|
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,
boolean isVerboseLoggingOn,
BambooBandanaContext bandanaContext,
@NotNull Iterable<CredentialsData> relevantSharedCredentials,
@NotNull Map<PlanKey,ChainStorageTag> relevantStorageTags,
BuildKey buildKey,
MergeResultContext mergeResult)
Using this constructor directly is not recommended.
|
Modifier and Type | Method and Description |
---|---|
@NotNull ArtifactContext |
getArtifactContext() |
@NotNull BambooBandanaContext |
getBandanaContext()
BandanaContext of the plan.
|
@NotNull BuildChanges |
getBuildChanges()
Returns the build changes, if any, that represents the changes that triggered this build.
|
@NotNull BuildDefinition |
getBuildDefinition() |
@NotNull BuildKey |
getBuildKey() |
@NotNull CurrentBuildResult |
getBuildResult()
The information about the results of a build
|
@NotNull Map<PlanKey,ChainStorageTag> |
getChainStorageTags() |
@NotNull Map<Long,String> |
getCheckoutLocation()
Map holds final checkout where repository was checked out by VcsCheckoutTask Elements are kept in order of
checkout
|
@NotNull CurrentResult |
getCurrentResult() |
String |
getDisplayName()
A human friendly description of what is being built.
|
@NotNull DockerPipelineConfiguration |
getDockerPipelineConfiguration() |
Long |
getEntityGroupId()
Returns id of a group entity belongs to.
|
long |
getEntityId() |
Key |
getEntityKey() |
@NotNull ErrorCollection |
getErrorCollection()
Any errors associated with the build
|
long |
getMaximumBuildWarningsCount() |
MergeResultContext |
getMergeResult()
If a build performs merge, this method returns the result.
|
BuildContext |
getParentBuildContext() |
BuildIdentifier |
getParentBuildIdentifier() |
@NotNull Set<Long> |
getRelevantRepositoryIds() |
ResultKey |
getResultKey() |
@NotNull List<RuntimeTaskDefinition> |
getRuntimeTaskDefinitions()
All tasks defined for this build.
|
@NotNull Iterable<CredentialsData> |
getSharedCredentials() |
@NotNull TriggerReason |
getTriggerReason()
The reason this build was triggered
|
@NotNull VariableContext |
getVariableContext() |
@NotNull List<PlanRepositoryDefinition> |
getVcsRepositories() |
@NotNull 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
|
boolean |
isVerboseLoggingOn()
Controls the amount of logging during the execution.
|
void |
setBuildChanges(BuildChanges buildChanges) |
void |
setMergeResult(MergeResultContext mergeResultSummary) |
void |
setRelevantRepositories(@NotNull Set<RepositoryDefinition> relevantRepositories) |
void |
setVariableContext(VariableContext variableContext) |
equals, getBuildNumber, getBuildResultKey, getMasterPlanId, getPlanDbId, getPlanId, getPlanKey, getPlanName, getPlanResultKey, getProjectName, getShortName, getTypedPlanKey, getUuid, hashCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getBuildNumber, getBuildResultKey, getMasterPlanId, getPlanDbId, getPlanId, getPlanKey, getPlanName, getPlanResultKey, getProjectName, getShortName, getTypedPlanKey, getUuid
public BuildContextImpl(BuildIdentifier identifier, TriggerReason triggerReason, BuildDefinition buildDefinition, @Nullable @Nullable BuildChanges buildChanges, BuildContext parentBuildContext, @Nullable @Nullable ArtifactContext artifactContext, VariableContext variableContext, @Nullable @Nullable Map<String,String> customBuildData, Map<Long,PlanRepositoryDefinition> planRepositoryDefinitionMap, Set<Long> relevantRepositoryIds, Map<Long,String> checkoutLocation, boolean isBranch, boolean isOnceOff, boolean isCustomBuild, boolean isVerboseLoggingOn, BambooBandanaContext bandanaContext, @NotNull @NotNull Iterable<CredentialsData> relevantSharedCredentials, @NotNull @NotNull Map<PlanKey,ChainStorageTag> relevantStorageTags, BuildKey buildKey, MergeResultContext mergeResult)
BuildContextBuilder
instead.@NotNull public @NotNull 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 Chain
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 @NotNull TriggerReason getTriggerReason()
CommonContext
getTriggerReason
in interface CommonContext
@NotNull public @NotNull BuildDefinition getBuildDefinition()
getBuildDefinition
in interface BuildContext
@NotNull public @NotNull BuildChanges getBuildChanges()
BuildContext
getBuildChanges
in interface BuildContext
public void setBuildChanges(BuildChanges buildChanges)
setBuildChanges
in interface BuildContext
@NotNull public @NotNull CurrentBuildResult getBuildResult()
BuildContext
getBuildResult
in interface BuildContext
CurrentBuildResult
@NotNull public @NotNull CurrentResult getCurrentResult()
getCurrentResult
in interface CommonContext
@NotNull public @NotNull ArtifactContext getArtifactContext()
getArtifactContext
in interface BuildContext
getArtifactContext
in interface CommonContext
@NotNull public @NotNull VariableContext getVariableContext()
getVariableContext
in interface CommonContext
@NotNull public @NotNull List<PlanRepositoryDefinition> getVcsRepositories()
getVcsRepositories
in interface CommonContext
@NotNull public @NotNull Map<Long,PlanRepositoryDefinition> getVcsRepositoryMap()
getVcsRepositoryMap
in interface CommonContext
@NotNull public @NotNull 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
public boolean isVerboseLoggingOn()
CommonContext
isVerboseLoggingOn
in interface CommonContext
@NotNull public @NotNull BambooBandanaContext getBandanaContext()
BuildContext
getBandanaContext
in interface BuildContext
BandanaContext
of the plan@NotNull public @NotNull ErrorCollection getErrorCollection()
CommonContext
getErrorCollection
in interface CommonContext
public void setRelevantRepositories(@NotNull @NotNull Set<RepositoryDefinition> relevantRepositories)
@NotNull public @NotNull 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 @NotNull List<RuntimeTaskDefinition> getRuntimeTaskDefinitions()
CommonContext
getRuntimeTaskDefinitions
in interface CommonContext
List
of RuntimeTaskDefinition
spublic long getEntityId()
getEntityId
in interface CommonContext
@NotNull public @NotNull Iterable<CredentialsData> getSharedCredentials()
getSharedCredentials
in interface CommonContext
@NotNull public @NotNull 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 @NotNull DockerPipelineConfiguration getDockerPipelineConfiguration()
getDockerPipelineConfiguration
in interface CommonContext
public long getMaximumBuildWarningsCount()
getMaximumBuildWarningsCount
in interface BuildContext
public MergeResultContext getMergeResult()
BuildContext
getMergeResult
in interface BuildContext
public void setMergeResult(MergeResultContext mergeResultSummary)
setMergeResult
in interface BuildContext
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences