@ThreadSafe @PublicApi public interface BuildContext extends CommonContext, BuildIdentifier
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() |
CurrentBuildResult |
getBuildResult()
The information about the results of a build
|
Map<Long,String> |
getCheckoutLocation()
Map holds final checkout where repository was checked out by VcsCheckoutTask Elements are kept in order of
checkout
|
BuildContext |
getParentBuildContext() |
Set<Long> |
getRelevantRepositoryIds() |
RuntimeTaskContext |
getRuntimeTaskContext()
Runtime context for the tasks executed for given build context This context is set by pluggable
RuntimeTaskDataProvider.populateRuntimeTaskData(TaskDefinition, CommonContext) |
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) |
getBuildKey, getCurrentResult, getDisplayName, getEntityId, getEntityKey, getErrorCollection, getRepositoryDefinitionMap, getRepositoryDefinitions, getResultKey, getRuntimeTaskDefinitions, getSharedCredentials, getTaskDefinitions, getTriggerReason, getVariableContext
getBuildNumber, getBuildResultKey, getParentBuildIdentifier, getPlanId, getPlanKey, getPlanName, getPlanResultKey, getProjectName, getShortName
@Nullable BuildContext getParentBuildContext()
BuildContext
of the parent Plan
execution. Should return null if the current
BuildContext
is for a TopLevelPlan
@NotNull BuildDefinition getBuildDefinition()
@NotNull ArtifactContext getArtifactContext()
@NotNull BuildChanges getBuildChanges()
void setBuildChanges(BuildChanges buildChanges)
@NotNull CurrentBuildResult getBuildResult()
CurrentBuildResult
@NotNull Set<Long> getRelevantRepositoryIds()
@NotNull Map<Long,String> getCheckoutLocation()
boolean isBranch()
boolean isOnceOff()
boolean isCustomBuild()
@NotNull RuntimeTaskContext getRuntimeTaskContext()
RuntimeTaskDataProvider.populateRuntimeTaskData(TaskDefinition, CommonContext)
getRuntimeTaskContext
in interface CommonContext
@NotNull BambooBandanaContext getBandanaContext()
BandanaContext
of the planvoid setVariableContext(@NotNull VariableContext variableContext)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.