@ThreadSafe @PublicApi public interface BuildContext extends CommonContext, BuildIdentifier
Modifier and Type | Method and Description |
---|---|
@NotNull ArtifactContext |
getArtifactContext() |
@NotNull BambooBandanaContext |
getBandanaContext()
BandanaContext of the plan.
|
@NotNull BuildChanges |
getBuildChanges()
Returns the build changes, if any, that represents the changes that triggered this build.
|
@NotNull BuildDefinition |
getBuildDefinition() |
@NotNull CurrentBuildResult |
getBuildResult()
The information about the results of a build
|
@NotNull Map<Long,String> |
getCheckoutLocation()
Map holds final checkout where repository was checked out by VcsCheckoutTask Elements are kept in order of
checkout
|
long |
getMaximumBuildWarningsCount() |
@Nullable MergeResultContext |
getMergeResult()
If a build performs merge, this method returns the result.
|
@Nullable BuildContext |
getParentBuildContext() |
@NotNull 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 |
setMergeResult(@Nullable MergeResultContext mergeResult) |
void |
setVariableContext(@NotNull 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, getUuid
@Nullable @Nullable BuildContext getParentBuildContext()
BuildContext
of the parent Plan
execution. Should return null if the current
BuildContext
is for a TopLevelPlan
@NotNull @NotNull BuildDefinition getBuildDefinition()
@NotNull @NotNull ArtifactContext getArtifactContext()
getArtifactContext
in interface CommonContext
@NotNull @NotNull BuildChanges getBuildChanges()
void setBuildChanges(BuildChanges buildChanges)
@NotNull @NotNull CurrentBuildResult getBuildResult()
CurrentBuildResult
@NotNull @NotNull Set<Long> getRelevantRepositoryIds()
@NotNull @NotNull Map<Long,String> getCheckoutLocation()
boolean isBranch()
boolean isOnceOff()
boolean isCustomBuild()
@NotNull @NotNull BambooBandanaContext getBandanaContext()
BandanaContext
of the planvoid setVariableContext(@NotNull @NotNull VariableContext variableContext)
long getMaximumBuildWarningsCount()
@Nullable @Nullable MergeResultContext getMergeResult()
void setMergeResult(@Nullable @Nullable MergeResultContext mergeResult)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.