com.atlassian.bamboo.chains
Interface Chain
- All Superinterfaces:
- BambooObject, Deletable, Describable, DescriptionProvider, NameProvider, Plan, TopLevelPlan
- All Known Implementing Classes:
- DefaultChain
public interface Chain
- extends TopLevelPlan
Methods inherited from interface com.atlassian.bamboo.plan.Plan |
getAverageBuildDuration, getBuildDefinition, getBuildDefinitionXml, getBuildKey, getBuildLogger, getBuildName, getCurrentStatus, getFirstBuildNumber, getKey, getLabellings, getLabelNames, getLastBuildNumber, getLatestResultsSummary, getName, getNextBuildNumber, getPlanKey, getProject, getRelatedLabellings, getType, hasTests, isActive, isBusy, isExecuting, isSuspendedFromBuilding, setBuildDefinitionXml, setBuildKey, setBuildName, setFirstBuildNumber, setKey, setLabellings, setLastBuildNumber, setNextBuildNumber, setPlanKey, setProject, setSuspendedFromBuilding, validateBuild |
getStages
@NotNull
java.util.List<ChainStage> getStages()
- Get Stages of the chain.
Note that this excludes
ChainStage
s that have been marked for deletion
- Returns:
- stages
getAllStages
@NotNull
java.util.List<ChainStage> getAllStages()
- Get Stages of the Chain
Note that this includes
ChainStage
s that have been marked for deletion
- Returns:
- stages
addNewStage
@NotNull
ChainStage addNewStage(@NotNull
java.lang.String name,
@NotNull
java.lang.String description,
boolean manual)
addStage
void addStage(@NotNull
ChainStage chainStage)
removeStage
void removeStage(@NotNull
ChainStage chainStage)
getJobCount
int getJobCount()
- Note: Does not include Jobs that are marked for deletion.
- Returns:
- how many Jobs are currently contained within this chain
getAllJobs
@NotNull
java.util.List<Job> getAllJobs()
- Note: Does not include Jobs that are marked for deletion.
- Returns:
- a list of all Jobs that are currently contained within this chain - no order guaranteed.
containsStage
boolean containsStage(@Nullable
java.lang.String stageName)
- Checks whether or not a stage exists in this chain by stage name.
- Parameters:
stageName
- to check for
- Returns:
- true if a stage with the given name exists, otherwise false
getRepositoryDefinitionMap
@NotNull
java.util.Map<java.lang.Long,RepositoryDefinition> getRepositoryDefinitionMap()
- Returns:
Map
of repositories available to this plan
getRepositoryDefinitions
@NotNull
java.util.List<RepositoryDefinition> getRepositoryDefinitions()
- Returns:
- ordered (see $
RepositoryDefinitionManager.getRepositoryDefinitionMapForPlan(com.atlassian.bamboo.plan.Plan)
for order) List
of repositories available to this plan
Copyright © 2011 Atlassian. All Rights Reserved.