public class AbstractImmutableChain extends AbstractImmutablePlan implements ImmutableChain
averageBuildDuration, resultsSummaryManagerMAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESSgetPlanKeyFunctiongetPlanKey| Constructor and Description |
|---|
AbstractImmutableChain(Chain chain,
BuildLoggerManager buildLoggerManager,
ImmutablePlanCacheService immutablePlanCacheService,
ImmutablePlanManager immutablePlanManager,
LabelManager labelManager,
ResultsSummaryManager resultsSummaryManager,
RepositoryDefinitionManager repositoryDefinitionManager,
VariableDefinitionManager variableDefinitionManager,
BuildDefinition buildDefinition) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsStage(String stageName)
Checks whether or not a stage exists in this chain by stage name.
|
com.google.common.collect.ImmutableList<ImmutableJob> |
getAllJobs()
Get list of jobs sorted by
- stage order
- job name (case insensitive)
|
com.google.common.collect.ImmutableList<ImmutableChainStage> |
getAllStages()
Get Stages of the Chain
|
com.google.common.collect.ImmutableList<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
|
ImmutableResultsSummary |
getLatestResultsSummary()
Get the latest finished result
|
ImmutableChain |
getMaster()
Return the master plan if one exists.
|
NotificationSet |
getNotificationSet()
Get notifications defined for this plan.
|
com.google.common.collect.ImmutableList<ImmutableChainStage> |
getStages()
Get Stages of the chain.
|
List<TriggerDefinition> |
getTriggerDefinitions() |
List<BuildStrategy> |
getTriggers()
Returns triggers defined for this object as BuildStrategies.
|
boolean |
isActive()
Is the plan queued or building?
|
boolean |
isBusy()
Is the
Plan "busy". |
boolean |
isExecuting()
Is the build currently being executed?
|
boolean |
isSuspended() |
void |
resetLatestResultsSummary() |
compareTo, equals, exceptionOnModification, getAverageBuildDuration, getBuildDefinition, getBuildKey, getBuildLogger, getBuildName, getCurrentStatus, getDescription, getEffectiveVariables, getFirstBuildNumber, getId, getKey, getLabellings, getLabelNames, getLastBuildNumber, getMasterId, getName, getNextBuildNumber, getOid, getPlanKey, getPlanType, getProject, getRelatedLabellings, getType, getVariables, hashCode, hasMaster, isMarkedForDeletion, isSuspendedFromBuildingclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetEntityTypegetAverageBuildDuration, getBuildDefinition, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getNextBuildNumber, getProject, getType, getVariables, hasMaster, isMarkedForDeletiongetBuildKey, getBuildName, getId, getMasterId, getName, getPlanKey, getPlanType, isSuspendedFromBuildinggetDescriptiongetOidpublic AbstractImmutableChain(@NotNull
Chain chain,
BuildLoggerManager buildLoggerManager,
ImmutablePlanCacheService immutablePlanCacheService,
ImmutablePlanManager immutablePlanManager,
LabelManager labelManager,
ResultsSummaryManager resultsSummaryManager,
RepositoryDefinitionManager repositoryDefinitionManager,
VariableDefinitionManager variableDefinitionManager,
@NotNull
BuildDefinition buildDefinition)
public boolean isActive()
ImmutablePlanisActive in interface ImmutablePlanpublic boolean isExecuting()
ImmutablePlanisExecuting in interface ImmutablePlanpublic PlanResultKey getLastResultKey()
ImmutableChaingetLastResultKey in interface ImmutableChainpublic ImmutableResultsSummary getLatestResultsSummary()
ImmutablePlangetLatestResultsSummary in interface ImmutablePlanpublic void resetLatestResultsSummary()
resetLatestResultsSummary in class AbstractImmutablePlanpublic boolean isBusy()
ImmutablePlanPlan "busy". Busy is defined by the plan having a lock held on it. This is done during change
detection, dependency listner and the likeisBusy in interface ImmutablePlan@NotNull public com.google.common.collect.ImmutableList<ImmutableChainStage> getStages()
ImmutableChain
Note that this excludes ChainStages that have been marked for deletion
getStages in interface ImmutableChain@NotNull public com.google.common.collect.ImmutableList<ImmutableChainStage> getAllStages()
ImmutableChain
Note that this includes ChainStages that have been marked for deletion
getAllStages in interface ImmutableChainpublic int getJobCount()
ImmutableChaingetJobCount in interface ImmutableChain@NotNull public com.google.common.collect.ImmutableList<ImmutableJob> getAllJobs()
getAllJobs in interface ImmutableChainpublic boolean containsStage(@Nullable
String stageName)
ImmutableChaincontainsStage in interface ImmutableChainstageName - to check for@NotNull public com.google.common.collect.ImmutableList<RepositoryDefinition> getEffectiveRepositoryDefinitions()
ImmutableChaingetEffectiveRepositoryDefinitions in interface ImmutableChainList of repositories available to this planpublic NotificationSet getNotificationSet()
ImmutableChaingetNotificationSet in interface ImmutableChainNotificationSet containing notifications for this plan.public ImmutableChain getMaster()
ImmutablePlangetMaster 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<BuildStrategy> getTriggers()
TriggerableTriggerable.getTriggerDefinitions() and converting its results. Note that this conversion can be lossy,
as not all trigger types are convertible to BuildStrategies. Items that cannot be converted are skipped.getTriggers in interface TriggerableCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.