|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.bamboo.core.BambooEntityObject com.atlassian.bamboo.plan.AbstractPlan com.atlassian.bamboo.plan.AbstractChain
public abstract class AbstractChain
Field Summary | |
---|---|
protected Chain |
master
|
static int |
NUMBER_OF_RESULTS
|
Fields inherited from class com.atlassian.bamboo.plan.AbstractPlan |
---|
resultsSummaryManager |
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Fields inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan |
---|
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS |
Constructor Summary | |
---|---|
AbstractChain()
|
Method Summary | |
---|---|
ChainStage |
addNewStage(java.lang.String name,
java.lang.String description,
boolean manual)
Adds a new stage and returns the stage |
void |
addStage(ChainStage chainStage)
|
boolean |
containsStage(java.lang.String stageName)
Checks whether or not a stage exists in this chain by stage name. |
java.util.List<Job> |
getAllJobs()
Note: Does not include Jobs that are marked for deletion. |
java.util.List<ChainStage> |
getAllStages()
Get Stages of the Chain Note that this includes ChainStage s that have been marked for deletion |
long |
getAverageBuildDuration()
Returns an average duration of the recent builds |
java.lang.String |
getCurrentStatus()
Retuns a string key as to what the status is. |
java.util.List<RepositoryDefinition> |
getEffectiveRepositoryDefinitions()
Return list of repositories available to the chain. |
int |
getJobCount()
Note: Does not include Jobs that are marked for deletion. |
PlanResultKey |
getLastResultKey()
Get the latest result key including active (not finished) results |
Chain |
getMaster()
Return the master plan if one exists. |
NotificationSet |
getNotificationSet()
Get notifications defined for this plan. |
java.util.List<ChainStage> |
getStages()
Get Stages of the chain. |
boolean |
hasTests()
Deprecated. since 4.0 without replacement. Typically, you'll want to query ResultSummary for tests, not the plan |
boolean |
isActive()
Needed for Dependency Blocking for Chains. |
boolean |
isExecuting()
Is the build currently being executed? |
void |
removeStage(ChainStage chainStage)
|
void |
setAllStages(java.util.List<ChainStage> allStages)
|
void |
setChainExecutionManager(ChainExecutionManager chainExecutionManager)
|
void |
setNotificationSet(NotificationSet notificationSet)
|
void |
setRepositoryDefinitionManager(RepositoryDefinitionManager repositoryDefinitionManager)
|
ErrorCollection |
validateBuild()
Validates the build's builder and source code locations |
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
getId, setId |
Methods inherited from class com.atlassian.core.bean.EntityObject |
---|
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.plan.Plan |
---|
getLabellings, getRelatedLabellings, setBuildDefinitionXml, setBuildKey, setBuildName, setFirstBuildNumber, setKey, setLabellings, setLastBuildNumber, setMaster, setNextBuildNumber, setPlanKey, setProject, setSuspendedFromBuilding |
Methods inherited from interface com.atlassian.bamboo.Describable |
---|
setDescription, setName |
Methods inherited from interface com.atlassian.bamboo.deletion.Deletable |
---|
setMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
setId |
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable |
---|
isMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan |
---|
getBuildDefinition, getBuildDefinitionXml, getBuildLogger, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getLatestResultsSummary, getNextBuildNumber, getProject, getType, getVariables, hasMaster, isBusy, isMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier |
---|
getBuildKey, getBuildName, getId, getName, getPlanKey, getPlanType, isSuspendedFromBuilding |
Field Detail |
---|
public static final int NUMBER_OF_RESULTS
protected Chain master
Constructor Detail |
---|
public AbstractChain()
Method Detail |
---|
@NotNull public java.util.List<ChainStage> getStages()
ImmutableChain
ChainStage
s that have been marked for deletion
getStages
in interface Chain
getStages
in interface ImmutableChain
@NotNull public ChainStage addNewStage(@NotNull java.lang.String name, @NotNull java.lang.String description, boolean manual)
Chain
addNewStage
in interface Chain
public void addStage(@NotNull ChainStage chainStage)
addStage
in interface Chain
public void removeStage(@NotNull ChainStage chainStage)
removeStage
in interface Chain
public int getJobCount()
ImmutableChain
getJobCount
in interface ImmutableChain
@NotNull public java.util.List<Job> getAllJobs()
Chain
getAllJobs
in interface Chain
getAllJobs
in interface ImmutableChain
public boolean containsStage(@Nullable java.lang.String stageName)
ImmutableChain
containsStage
in interface ImmutableChain
stageName
- to check for
public ErrorCollection validateBuild()
Plan
validateBuild
in interface Plan
ErrorCollection
with relevent error messages@NotNull public java.lang.String getCurrentStatus()
ImmutablePlan
getCurrentStatus
in interface ImmutablePlan
public boolean isExecuting()
ImmutablePlan
isExecuting
in interface ImmutablePlan
public boolean isActive()
isActive
in interface ImmutablePlan
public PlanResultKey getLastResultKey()
ImmutableChain
getLastResultKey
in interface ImmutableChain
public long getAverageBuildDuration()
ImmutablePlan
getAverageBuildDuration
in interface ImmutablePlan
@Deprecated public boolean hasTests()
ImmutablePlan
TaskDefinition
being used in the plan implement TaskTestResultsSupport
hasTests
in interface ImmutablePlan
hasTests
in class AbstractPlan
@NotNull public java.util.List<RepositoryDefinition> getEffectiveRepositoryDefinitions()
ImmutableChain
getEffectiveRepositoryDefinitions
in interface ImmutableChain
List
of repositories available to this planpublic NotificationSet getNotificationSet()
ImmutableChain
getNotificationSet
in interface ImmutableChain
NotificationSet
containing notifications for this plan.public void setNotificationSet(NotificationSet notificationSet)
setNotificationSet
in interface Chain
public Chain getMaster()
ImmutablePlan
getMaster
in interface Chain
getMaster
in interface ImmutablePlan
Plan
if one exists.@NotNull public java.util.List<ChainStage> getAllStages()
Chain
ChainStage
s that have been marked for deletion
getAllStages
in interface Chain
getAllStages
in interface ImmutableChain
public void setAllStages(@NotNull java.util.List<ChainStage> allStages)
public void setChainExecutionManager(ChainExecutionManager chainExecutionManager)
public void setRepositoryDefinitionManager(RepositoryDefinitionManager repositoryDefinitionManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |