@MappedSuperclass public abstract class AbstractChain extends AbstractPlan implements Plan, Chain
| Modifier and Type | Field and Description |
|---|---|
protected Chain |
master |
static int |
NUMBER_OF_RESULTS |
resultsSummaryManagerMAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESSgetPlanKeyFunction, NAME_DELIMITERgetPlanKey| Constructor and Description |
|---|
AbstractChain() |
| Modifier and Type | Method and Description |
|---|---|
ChainStage |
addNewStage(String name,
String description,
boolean manual)
Adds a new stage and returns the stage
|
void |
addStage(ChainStage chainStage) |
boolean |
containsStage(String stageName)
Checks whether or not a stage exists in this chain by stage name.
|
List<Job> |
getAllJobs()
Note: Does not include Jobs that are marked for deletion.
|
List<ChainStage> |
getAllStages()
Get Stages of the Chain
|
long |
getAverageBuildDuration()
Returns an average duration of the recent builds
|
String |
getCurrentStatus() |
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.
|
NotificationSet |
getNotificationSetField()
Raw access to notification set field used in import/export, upgrade tasks and Hibernate.
|
List<PlanRepositoryDefinition> |
getPlanRepositoryDefinitions()
Return list of repositories available to the chain.
|
List<ChainStage> |
getStages()
Get Stages of the chain.
|
ChainStorageTag |
getStorageTag() |
List<TriggerDefinition> |
getTriggerDefinitions() |
VcsBambooSpecsSource |
getVcsBambooSpecsSource() |
boolean |
isActive()
Needed for Dependency Blocking for Chains.
|
boolean |
isExecuting()
Is the build currently being executed?
|
boolean |
isSuspended() |
void |
removeStage(long chainStageId) |
void |
setAllStages(List<ChainStage> allStages) |
void |
setChainExecutionManager(ChainExecutionManager chainExecutionManager) |
void |
setNotificationSet(NotificationSet notificationSet) |
void |
setRepositoryDefinitionManager(RepositoryDefinitionManager repositoryDefinitionManager) |
void |
setStorageTag(ChainStorageTag storageTag) |
void |
setVcsBambooSpecsSource(VcsBambooSpecsSourceImpl vcsBambooSpecsSource) |
compareTo, equals, getBuildDefinition, getBuildDefinitionXml, getBuildKey, getBuildLogger, getBuildName, getDatabaseId, getDescription, getDiscriminator, getEffectiveVariables, getFirstBuildNumber, getKey, getLabellings, getLabelNames, getLastBuildNumber, getLatestResultsSummary, getMasterId, getMasterIdIfExists, getName, getPlanKey, getProject, getRelatedLabellings, getTestClasses, getType, getVariables, hashCode, hasMaster, isBusy, isMarkedForDeletion, isSuspendedFromBuilding, setBuildDefinitionManager, setBuildDefinitionXml, setBuildKey, setBuildLoggerManager, setBuildName, setDescription, setDiscriminator, setKey, setLabellings, setLabelManager, setMarkedForDeletion, setName, setPlanExecutionManager, setPlanKey, setProject, setResultsSummaryManager, setSuspendedFromBuilding, setTestClasses, setVariableDefinitionManagergetId, getOid, setId, setOidclone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDatefinalize, getClass, notify, notifyAll, toString, wait, wait, waitgetCreationDate, getEntityType, getVcsLocationBambooSpecsStategetBuildDefinitionXml, getLabellings, getLatestResultsSummary, getRelatedLabellings, setBuildDefinitionXml, setBuildKey, setBuildName, setKey, setLabellings, setMaster, setPlanKey, setProject, setSuspendedFromBuildingsetOidgetOidsetDescription, setNamesetMarkedForDeletionsetIdisMarkedForDeletiongetBuildDefinition, getBuildLogger, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getProject, getType, getVariables, hasMaster, isBusy, isMarkedForDeletiongetBuildKey, getBuildName, getDatabaseId, getId, getMasterId, getMasterIdIfExists, getName, getPlanKey, getPlanType, isSuspendedFromBuildingpublic static final int NUMBER_OF_RESULTS
protected Chain master
public ChainStorageTag getStorageTag()
getStorageTag in interface ImmutableChainpublic void setStorageTag(ChainStorageTag storageTag)
setStorageTag in interface Chain@NotNull public List<ChainStage> getStages()
ImmutableChain
Note that this excludes ChainStages that have been marked for deletion
getStages in interface ChaingetStages in interface ImmutableChainpublic ChainStage addNewStage(@NotNull String name, @NotNull String description, boolean manual)
ChainaddNewStage in interface Chainpublic void addStage(@NotNull
ChainStage chainStage)
public void removeStage(long chainStageId)
removeStage in interface Chainpublic int getJobCount()
ImmutableChaingetJobCount in interface ImmutableChain@NotNull public List<Job> getAllJobs()
ChaingetAllJobs in interface ChaingetAllJobs in interface ImmutableChainpublic boolean containsStage(@Nullable
String stageName)
ImmutableChaincontainsStage in interface ImmutableChainstageName - to check for@NotNull public String getCurrentStatus()
getCurrentStatus in interface ImmutablePlanpublic boolean isExecuting()
ImmutablePlanisExecuting in interface ImmutablePlanpublic boolean isActive()
isActive in interface ImmutablePlanpublic PlanResultKey getLastResultKey()
ImmutableChaingetLastResultKey in interface ImmutableChainpublic long getAverageBuildDuration()
ImmutablePlangetAverageBuildDuration in interface ImmutablePlan@NotNull public List<RepositoryDefinition> getEffectiveRepositoryDefinitions()
ImmutableChaingetEffectiveRepositoryDefinitions in interface ImmutableChainList of repositories available to this plan@NotNull public List<PlanRepositoryDefinition> getPlanRepositoryDefinitions()
ImmutableChaingetPlanRepositoryDefinitions in interface ImmutableChainList of repositories available to this planpublic NotificationSet getNotificationSet()
ImmutableChaingetNotificationSet in interface ImmutableChainNotificationSet containing notifications for this plan.public final void setNotificationSet(NotificationSet notificationSet)
setNotificationSet in interface Chainpublic final NotificationSet getNotificationSetField()
public Chain getMaster()
ImmutablePlangetMaster in interface ChaingetMaster in interface ImmutableChaingetMaster in interface ImmutablePlanPlan if one exists.public boolean isSuspended()
isSuspended in interface Triggerable@NotNull public List<TriggerDefinition> getTriggerDefinitions()
getTriggerDefinitions in interface Triggerable@NotNull public List<ChainStage> getAllStages()
Chain
Note that this includes ChainStages that have been marked for deletion
getAllStages in interface ChaingetAllStages in interface ImmutableChainpublic void setAllStages(@NotNull
List<ChainStage> allStages)
public void setChainExecutionManager(ChainExecutionManager chainExecutionManager)
public void setRepositoryDefinitionManager(RepositoryDefinitionManager repositoryDefinitionManager)
@Nullable public VcsBambooSpecsSource getVcsBambooSpecsSource()
getVcsBambooSpecsSource in interface ImmutableChainpublic void setVcsBambooSpecsSource(VcsBambooSpecsSourceImpl vcsBambooSpecsSource)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.