Package com.atlassian.bamboo.plan
Interface Plan
- All Superinterfaces:
BambooIdProvider,BambooObject,BambooObjectWithOid,Deletable,Describable,DescriptionProvider,EntityWithOid,ImmutableDeletable,ImmutableEntityWithOid,ImmutablePlan,NameProvider,PlanIdentifier,PlanKeyProvider,Versionable
- All Known Subinterfaces:
Buildable,Chain,ChainBranch,Job,TopLevelPlan
- All Known Implementing Classes:
AbstractChain,AbstractPlan,ChainBranchImpl,DefaultChain,DefaultJob
Mutable version of the plan.
The naming is different within the code and user interface.
As of Bamboo 10.2 Plan object can represent:
- Chain (known as Plan in the user interface)
- Chain Branch (known as Plan Branch in the user interface)
- Job
- Job present on a branch
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESSFields inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
NAME_DELIMITERFields inherited from interface com.atlassian.bamboo.plan.PlanKeyProvider
getPlanKey -
Method Summary
Modifier and TypeMethodDescription@Nullable BuildDefinitionForBuildDeprecated.3.4@Nullable ResultsSummaryGet the latest finished resultReturns labellings that are applicable for the plan levelvoidsetBuildDefinitionXml(@Nullable BuildDefinitionForBuild buildDefinitionXml) voidsetBuildKey(String buildKey) Define the build's unique key (uppercase alphanumeric)voidsetBuildName(String buildName) voidvoidsetLabellings(List<Labelling> labellings) voidSet which plan is the master of this plan.voidsetPlanKey(@NotNull PlanKey planKey) voidsetProject(Project project) voidsetSuspendedFromBuilding(boolean suspendFromBuilding) Sets the build to suspend temporarilyMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setIdMethods inherited from interface com.atlassian.bamboo.deletion.Deletable
setMarkedForDeletionMethods inherited from interface com.atlassian.bamboo.Describable
setDescription, setNameMethods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescriptionMethods inherited from interface com.atlassian.bamboo.core.EntityWithOid
setOidMethods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getEntityType, getOidMethods inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
getAverageBuildDuration, getBuildDefinition, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getMaster, getProject, getType, getVariables, hasMaster, isActive, isBusy, isExecuting, isMarkedForDeletionMethods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
getBuildKey, getBuildName, getDatabaseId, getId, getMasterId, getMasterIdIfExists, getName, getPlanKey, getPlanType, isSuspendedFromBuildingMethods inherited from interface com.atlassian.bamboo.versioning.Versionable
getVersion
-
Method Details
-
setKey
- Parameters:
fullKey-
-
setPlanKey
-
setBuildKey
Define the build's unique key (uppercase alphanumeric)- Parameters:
buildKey- The value of the key
-
setBuildName
-
setSuspendedFromBuilding
void setSuspendedFromBuilding(boolean suspendFromBuilding) Sets the build to suspend temporarily- Parameters:
suspendFromBuilding-
-
getBuildDefinitionXml
-
setBuildDefinitionXml
-
setMaster
Set which plan is the master of this plan. The master is the plan which this one is derived from. Configuration will be pulled from the master if one exists and if it is not a divergent branch- Parameters:
master-
-
setProject
-
getLatestResultsSummary
Description copied from interface:ImmutablePlanGet the latest finished result- Specified by:
getLatestResultsSummaryin interfaceImmutablePlan- Returns:
- The summary info for the last completed build. Returns null if there are no build results for this plan
-
setLabellings
-
getRelatedLabellings
Returns labellings that are applicable for the plan level- Returns:
- Empty list if no labels
-
getLabellings
Deprecated.3.4Used only for Hibernate mapping purposes. Deprecated for removal from the interface- Returns:
-