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<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.
|
long |
getEntityId() |
Key |
getEntityKey() |
ErrorCollection |
getErrorCollection()
Any errors associated with the build
|
BuildContext |
getParentBuildContext() |
BuildIdentifier |
getParentBuildIdentifier() |
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() |
Map<Long,RepositoryDefinition> |
getRepositoryDefinitionMap() |
List<RepositoryDefinition> |
getRepositoryDefinitions() |
ResultKey |
getResultKey() |
RuntimeTaskContext |
getRuntimeTaskContext()
Runtime context for the tasks executed for given build context This context is set by pluggable
RuntimeTaskDataProvider.populateRuntimeTaskData(TaskDefinition, CommonContext) |
List<RuntimeTaskDefinition> |
getRuntimeTaskDefinitions()
All tasks defined for this build.
|
Iterable<CredentialsData> |
getSharedCredentials() |
String |
getShortName()
The short name of the
Plan |
List<TaskDefinition> |
getTaskDefinitions()
All tasks defined for this build.
|
TriggerReason |
getTriggerReason()
The reason this build was triggered
|
VariableContext |
getVariableContext() |
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 |
setVariableContext(VariableContext variableContext) |
public DeploymentRepositoryBuildContext(CommonContext commonContext)
@NotNull public BuildKey getBuildKey()
getBuildKey in interface CommonContext@Nullable public BuildContext getParentBuildContext()
getParentBuildContext in interface BuildContextBuildContext 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@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 Set<Long> getRelevantRepositoryIds()
getRelevantRepositoryIds in interface BuildContext@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 BuildContextpublic long getEntityId()
getEntityId in interface CommonContextpublic Key getEntityKey()
getEntityKey in interface CommonContextpublic ResultKey getResultKey()
getResultKey in interface CommonContextpublic String getDisplayName()
CommonContextgetDisplayName in interface CommonContextpublic CurrentResult getCurrentResult()
getCurrentResult in interface CommonContext@NotNull public ErrorCollection getErrorCollection()
CommonContextgetErrorCollection in interface CommonContext@NotNull public List<TaskDefinition> getTaskDefinitions()
CommonContextgetTaskDefinitions in interface CommonContextList of TaskDefinitions@NotNull public List<RuntimeTaskDefinition> getRuntimeTaskDefinitions()
CommonContextgetRuntimeTaskDefinitions in interface CommonContextList of RuntimeTaskDefinitions@NotNull public RuntimeTaskContext getRuntimeTaskContext()
BuildContextRuntimeTaskDataProvider.populateRuntimeTaskData(TaskDefinition, CommonContext)getRuntimeTaskContext in interface BuildContextgetRuntimeTaskContext in interface CommonContext@NotNull public VariableContext getVariableContext()
getVariableContext in interface CommonContext@NotNull public TriggerReason getTriggerReason()
CommonContextgetTriggerReason in interface CommonContext@NotNull public Map<Long,RepositoryDefinition> getRepositoryDefinitionMap()
getRepositoryDefinitionMap in interface CommonContext@NotNull public List<RepositoryDefinition> getRepositoryDefinitions()
getRepositoryDefinitions in interface CommonContext@NotNull public BambooBandanaContext getBandanaContext()
BuildContextgetBandanaContext in interface BuildContextBandanaContext of the plan@NotNull public Iterable<CredentialsData> getSharedCredentials()
getSharedCredentials in interface CommonContext@Nullable public BuildIdentifier getParentBuildIdentifier()
getParentBuildIdentifier in interface BuildIdentifierBuildContext of the parent Plan execution. Should return null if the current BuildContext is for a TopLevelPlanpublic long getPlanId()
getPlanId in interface BuildIdentifier@NotNull public String getPlanKey()
BuildIdentifiergetPlanKey in interface BuildIdentifier@NotNull public String getPlanName()
BuildIdentifierPlangetPlanName in interface BuildIdentifierDescriptionProvider.getName()@NotNull public String getShortName()
BuildIdentifierPlangetShortName in interface BuildIdentifierPlanIdentifier.getBuildName()public int getBuildNumber()
BuildIdentifiergetBuildNumber in interface BuildIdentifier@NotNull public String getBuildResultKey()
BuildIdentifiergetBuildResultKey in interface BuildIdentifier@NotNull public PlanResultKey getPlanResultKey()
BuildIdentifierPlanResultKey for the current BuildIdentifiergetPlanResultKey in interface BuildIdentifier@NotNull public String getProjectName()
getProjectName in interface BuildIdentifierpublic void setVariableContext(@NotNull
VariableContext variableContext)
setVariableContext in interface BuildContextCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.