public class DeploymentRepositoryBuildContext extends Object implements BuildContext
Constructor and Description |
---|
DeploymentRepositoryBuildContext(CommonContext commonContext) |
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() |
int |
getBuildNumber()
The build number being built
|
CurrentBuildResult |
getBuildResult()
The information about the results of a build
|
String |
getBuildResultKey()
Full build result key (e.g.
|
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
|
Optional<Long> |
getMasterPlanId() |
long |
getMaximumBuildWarningsCount() |
BuildContext |
getParentBuildContext() |
BuildIdentifier |
getParentBuildIdentifier() |
Optional<Long> |
getPlanDbId() |
long |
getPlanId() |
String |
getPlanKey()
Full plan key (e.g.
|
String |
getPlanName()
The full name of the
Plan |
PlanResultKey |
getPlanResultKey()
Gets the
PlanResultKey for the current BuildIdentifier |
String |
getProjectName() |
Set<Long> |
getRelevantRepositoryIds() |
ResultKey |
getResultKey() |
List<RuntimeTaskDefinition> |
getRuntimeTaskDefinitions()
All tasks defined for this build.
|
Iterable<CredentialsData> |
getSharedCredentials() |
String |
getShortName()
The short name of the
Plan |
TriggerReason |
getTriggerReason()
The reason this build was triggered
|
PlanKey |
getTypedPlanKey()
Full plan key (e.g.
|
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
|
boolean |
isVerboseLoggingOn()
Controls the amount of logging during the execution.
|
void |
setBuildChanges(BuildChanges buildChanges) |
void |
setVariableContext(VariableContext variableContext) |
public DeploymentRepositoryBuildContext(CommonContext commonContext)
@NotNull public BuildKey getBuildKey()
getBuildKey
in interface CommonContext
@Nullable 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 BuildDefinition getBuildDefinition()
getBuildDefinition
in interface BuildContext
@NotNull public ArtifactContext getArtifactContext()
getArtifactContext
in interface BuildContext
getArtifactContext
in interface CommonContext
@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 Set<Long> getRelevantRepositoryIds()
getRelevantRepositoryIds
in interface BuildContext
@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
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 ErrorCollection getErrorCollection()
CommonContext
getErrorCollection
in interface CommonContext
@NotNull public List<RuntimeTaskDefinition> getRuntimeTaskDefinitions()
CommonContext
getRuntimeTaskDefinitions
in interface CommonContext
List
of RuntimeTaskDefinition
s@NotNull public VariableContext getVariableContext()
getVariableContext
in interface CommonContext
@NotNull public TriggerReason getTriggerReason()
CommonContext
getTriggerReason
in interface CommonContext
@NotNull public BambooBandanaContext getBandanaContext()
BuildContext
getBandanaContext
in interface BuildContext
BandanaContext
of the plan@NotNull public Map<PlanKey,ChainStorageTag> getChainStorageTags()
getChainStorageTags
in interface CommonContext
@NotNull public Iterable<CredentialsData> getSharedCredentials()
getSharedCredentials
in interface CommonContext
@Nullable public 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 String getPlanKey()
BuildIdentifier
getPlanKey
in interface BuildIdentifier
@NotNull public PlanKey getTypedPlanKey()
BuildIdentifier
getTypedPlanKey
in interface BuildIdentifier
@NotNull public String getPlanName()
BuildIdentifier
Plan
getPlanName
in interface BuildIdentifier
DescriptionProvider.getName()
@NotNull public String getShortName()
BuildIdentifier
Plan
getShortName
in interface BuildIdentifier
PlanIdentifier.getBuildName()
public int getBuildNumber()
BuildIdentifier
getBuildNumber
in interface BuildIdentifier
@NotNull public String getBuildResultKey()
BuildIdentifier
getBuildResultKey
in interface BuildIdentifier
@NotNull public PlanResultKey getPlanResultKey()
BuildIdentifier
PlanResultKey
for the current BuildIdentifier
getPlanResultKey
in interface BuildIdentifier
@NotNull public String getProjectName()
getProjectName
in interface BuildIdentifier
public void setVariableContext(@NotNull VariableContext variableContext)
setVariableContext
in interface BuildContext
@NotNull public Map<Long,PlanRepositoryDefinition> getVcsRepositoryMap()
getVcsRepositoryMap
in interface CommonContext
@NotNull public List<PlanRepositoryDefinition> getVcsRepositories()
getVcsRepositories
in interface CommonContext
public Long getEntityGroupId()
CommonContext
getEntityGroupId
in interface CommonContext
public long getMaximumBuildWarningsCount()
getMaximumBuildWarningsCount
in interface BuildContext
@NotNull public DockerPipelineConfiguration getDockerPipelineConfiguration()
getDockerPipelineConfiguration
in interface CommonContext
public Optional<Long> getMasterPlanId()
getMasterPlanId
in interface BuildIdentifier
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.