public class DeploymentRepositoryBuildContext extends Object implements BuildContext
Constructor and Description |
---|
DeploymentRepositoryBuildContext(CommonContext commonContext) |
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() |
int |
getBuildNumber()
The build number being built
|
@NotNull CurrentBuildResult |
getBuildResult()
The information about the results of a build
|
@NotNull String |
getBuildResultKey()
Full build result key (e.g.
|
@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
|
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
|
Optional<Long> |
getMasterPlanId() |
long |
getMaximumBuildWarningsCount() |
@Nullable MergeResultContext |
getMergeResult()
If a build performs merge, this method returns the result.
|
@Nullable BuildContext |
getParentBuildContext() |
@Nullable BuildIdentifier |
getParentBuildIdentifier() |
Optional<Long> |
getPlanDbId() |
long |
getPlanId() |
@NotNull String |
getPlanKey()
Full plan key (e.g.
|
@NotNull String |
getPlanName()
The full name of the
Plan |
@NotNull PlanResultKey |
getPlanResultKey()
Gets the
PlanResultKey for the current BuildIdentifier |
@NotNull String |
getProjectName() |
@NotNull Set<Long> |
getRelevantRepositoryIds() |
ResultKey |
getResultKey() |
@NotNull List<RuntimeTaskDefinition> |
getRuntimeTaskDefinitions()
All tasks defined for this build.
|
@NotNull Iterable<CredentialsData> |
getSharedCredentials() |
@NotNull String |
getShortName()
The short name of the
Plan |
@NotNull TriggerReason |
getTriggerReason()
The reason this build was triggered
|
@NotNull PlanKey |
getTypedPlanKey()
Full plan key (e.g.
|
@NotNull UUID |
getUuid()
Id of the run.
|
@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(@Nullable MergeResultContext mergeResult) |
void |
setVariableContext(@NotNull VariableContext variableContext) |
public DeploymentRepositoryBuildContext(CommonContext commonContext)
@NotNull public @NotNull BuildKey getBuildKey()
getBuildKey
in interface CommonContext
@Nullable public @Nullable 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 BuildDefinition getBuildDefinition()
getBuildDefinition
in interface BuildContext
@NotNull public @NotNull ArtifactContext getArtifactContext()
getArtifactContext
in interface BuildContext
getArtifactContext
in interface CommonContext
@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 Set<Long> getRelevantRepositoryIds()
getRelevantRepositoryIds
in interface BuildContext
@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
public long getEntityId()
getEntityId
in interface CommonContext
public Key getEntityKey()
getEntityKey
in interface CommonContext
public ResultKey getResultKey()
getResultKey
in interface CommonContext
public String getDisplayName()
CommonContext
getDisplayName
in interface CommonContext
public CurrentResult getCurrentResult()
getCurrentResult
in interface CommonContext
@NotNull public @NotNull ErrorCollection getErrorCollection()
CommonContext
getErrorCollection
in interface CommonContext
@NotNull public @NotNull List<RuntimeTaskDefinition> getRuntimeTaskDefinitions()
CommonContext
getRuntimeTaskDefinitions
in interface CommonContext
List
of RuntimeTaskDefinition
s@NotNull public @NotNull VariableContext getVariableContext()
getVariableContext
in interface CommonContext
@NotNull public @NotNull TriggerReason getTriggerReason()
CommonContext
getTriggerReason
in interface CommonContext
@NotNull public @NotNull BambooBandanaContext getBandanaContext()
BuildContext
getBandanaContext
in interface BuildContext
BandanaContext
of the plan@NotNull public @NotNull Map<PlanKey,ChainStorageTag> getChainStorageTags()
getChainStorageTags
in interface CommonContext
@NotNull public @NotNull Iterable<CredentialsData> getSharedCredentials()
getSharedCredentials
in interface CommonContext
@Nullable public @Nullable BuildIdentifier getParentBuildIdentifier()
getParentBuildIdentifier
in interface BuildIdentifier
BuildContext
of the parent Plan
execution. Should return null if the current BuildContext
is for a Chain
public long getPlanId()
getPlanId
in interface BuildIdentifier
public Optional<Long> getPlanDbId()
getPlanDbId
in interface BuildIdentifier
@NotNull public @NotNull String getPlanKey()
BuildIdentifier
getPlanKey
in interface BuildIdentifier
@NotNull public @NotNull PlanKey getTypedPlanKey()
BuildIdentifier
getTypedPlanKey
in interface BuildIdentifier
@NotNull public @NotNull String getPlanName()
BuildIdentifier
Plan
getPlanName
in interface BuildIdentifier
DescriptionProvider.getName()
@NotNull public @NotNull String getShortName()
BuildIdentifier
Plan
getShortName
in interface BuildIdentifier
PlanIdentifier.getBuildName()
public int getBuildNumber()
BuildIdentifier
getBuildNumber
in interface BuildIdentifier
@NotNull public @NotNull String getBuildResultKey()
BuildIdentifier
getBuildResultKey
in interface BuildIdentifier
@NotNull public @NotNull PlanResultKey getPlanResultKey()
BuildIdentifier
PlanResultKey
for the current BuildIdentifier
getPlanResultKey
in interface BuildIdentifier
@NotNull public @NotNull String getProjectName()
getProjectName
in interface BuildIdentifier
public void setVariableContext(@NotNull @NotNull VariableContext variableContext)
setVariableContext
in interface BuildContext
@NotNull public @NotNull Map<Long,PlanRepositoryDefinition> getVcsRepositoryMap()
getVcsRepositoryMap
in interface CommonContext
@NotNull public @NotNull List<PlanRepositoryDefinition> getVcsRepositories()
getVcsRepositories
in interface CommonContext
public Long getEntityGroupId()
CommonContext
getEntityGroupId
in interface CommonContext
public long getMaximumBuildWarningsCount()
getMaximumBuildWarningsCount
in interface BuildContext
@NotNull public @NotNull DockerPipelineConfiguration getDockerPipelineConfiguration()
getDockerPipelineConfiguration
in interface CommonContext
public Optional<Long> getMasterPlanId()
getMasterPlanId
in interface BuildIdentifier
@Nullable public @Nullable MergeResultContext getMergeResult()
BuildContext
getMergeResult
in interface BuildContext
public void setMergeResult(@Nullable @Nullable MergeResultContext mergeResult)
setMergeResult
in interface BuildContext
@NotNull public @NotNull UUID getUuid()
BuildIdentifier
getUuid
in interface BuildIdentifier
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences