|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ThreadSafe @PublicApi public interface BuildContext
A class that encapsulates how to build a particular plan at a given instance
Method Summary | |
---|---|
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)
|
Methods inherited from interface com.atlassian.bamboo.v2.build.CommonContext |
---|
getCurrentResult, getDisplayName, getEntityId, getEntityKey, getErrorCollection, getRepositoryDefinitionMap, getRepositoryDefinitions, getResultKey, getRuntimeTaskDefinitions, getSharedCredentials, getTaskDefinitions, getTriggerReason, getVariableContext |
Methods inherited from interface com.atlassian.bamboo.v2.build.BuildIdentifier |
---|
getBuildNumber, getBuildResultKey, getParentBuildIdentifier, getPlanId, getPlanKey, getPlanName, getPlanResultKey, getProjectName, getShortName |
Method Detail |
---|
@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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |