@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
|
long |
getMaximumBuildWarningsCount() |
BuildContext |
getParentBuildContext() |
Set<Long> |
getRelevantRepositoryIds() |
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, getChainStorageTags, getCurrentResult, getDisplayName, getDockerPipelineConfiguration, getEntityGroupId, getEntityId, getEntityKey, getErrorCollection, getResultKey, getRuntimeTaskDefinitions, getSharedCredentials, getTriggerReason, getVariableContext, getVcsRepositories, getVcsRepositoryMap, isVerboseLoggingOn
getBuildNumber, getBuildResultKey, getMasterPlanId, getParentBuildIdentifier, getPlanDbId, getPlanId, getPlanKey, getPlanName, getPlanResultKey, getProjectName, getShortName, getTypedPlanKey
@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()
getArtifactContext
in interface CommonContext
@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 BambooBandanaContext getBandanaContext()
BandanaContext
of the planvoid setVariableContext(@NotNull VariableContext variableContext)
long getMaximumBuildWarningsCount()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.