Package com.atlassian.bamboo.chains
Interface Chain
- All Superinterfaces:
BambooIdProvider,BambooObject,BambooObjectWithOid,Deletable,Describable,DescriptionProvider,EntityWithOid,ImmutableChain,ImmutableDeletable,ImmutableEntityWithOid,ImmutablePlan,NameProvider,Plan,PlanIdentifier,PlanKeyProvider,Triggerable,Versionable
- All Known Subinterfaces:
ChainBranch,TopLevelPlan
- All Known Implementing Classes:
AbstractChain,ChainBranchImpl,DefaultChain
Mutable version of
ImmutableChain.-
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@NotNull ChainStageaddNewStage(@NotNull String name, @NotNull String description, boolean manual) Deprecated.voidaddStage(int index, @NotNull ChainStage chainStage) Add stage at given index.voidaddStage(@NotNull ChainStage chainStage) Note: Does not include Jobs that are marked for deletion.@NotNull List<ChainStage>Get Stages of the ChainReturn the master plan if one exists.@NotNull List<ChainStage>Get Stages of the chain.voidremoveStage(long chainStageId) voidremoveStagesIf(@NotNull Predicate<ChainStage> predicate) Remove all stages matching a predicate.voidsetNotificationSet(NotificationSet notificationSet) voidsetStorageTag(ChainStorageTag storageTag) Methods 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.plan.cache.ImmutableChain
containsStage, getCreationDate, getEntityType, getJobCount, getLastResultKey, getNotificationSet, getPlanRepositoryDefinitions, getStorageTag, getVcsBambooSpecsSourceMethods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOidMethods inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
getAverageBuildDuration, getBuildDefinition, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getProject, getType, getVariables, hasMaster, isActive, isBusy, isExecuting, isMarkedForDeletionMethods inherited from interface com.atlassian.bamboo.plan.Plan
getBuildDefinitionXml, getLabellings, getLatestResultsSummary, getRelatedLabellings, setBuildDefinitionXml, setBuildKey, setBuildName, setKey, setLabellings, setMaster, setPlanKey, setProject, setSuspendedFromBuildingMethods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
getBuildKey, getBuildName, getDatabaseId, getId, getMasterId, getMasterIdIfExists, getName, getPlanKey, getPlanType, isSuspendedFromBuildingMethods inherited from interface com.atlassian.bamboo.trigger.Triggerable
getTriggerDefinitions, isSuspendedMethods inherited from interface com.atlassian.bamboo.versioning.Versionable
getVersion
-
Method Details
-
setNotificationSet
-
addNewStage
@Deprecated @NotNull @NotNull ChainStage addNewStage(@NotNull @NotNull String name, @NotNull @NotNull String description, boolean manual) Deprecated.since 5.13 useaddStage(ChainStage)Adds a new stage and returns the stage- Parameters:
name-description-manual-- Returns:
-
addStage
-
addStage
Add stage at given index.- Since:
- 7.2
-
removeStage
void removeStage(long chainStageId) -
getMaster
Chain getMaster()Description copied from interface:ImmutablePlanReturn the master plan if one exists. The master is the plan which this one is derived from. Configuration is pulled from the master if one exists.- Specified by:
getMasterin interfaceImmutableChain- Specified by:
getMasterin interfaceImmutablePlan- Returns:
- the master
Planif one exists.
-
getStages
Description copied from interface:ImmutableChainGet Stages of the chain.Note that this excludes
ChainStages that have been marked for deletion- Specified by:
getStagesin interfaceImmutableChain- Returns:
- stages
-
getAllStages
Get Stages of the ChainNote that this includes
ChainStages that have been marked for deletion- Specified by:
getAllStagesin interfaceImmutableChain- Returns:
- unmodifiable list of all stages
-
getAllJobs
Note: Does not include Jobs that are marked for deletion.- Specified by:
getAllJobsin interfaceImmutableChain- Returns:
- a list of all Jobs that are currently contained within this chain - no order guaranteed.
-
setStorageTag
-
removeStagesIf
Remove all stages matching a predicate.- Since:
- 7.1
-
addStage(ChainStage)