public class AbstractImmutableChain extends AbstractImmutablePlan implements ImmutableChain
averageBuildDuration, resultsSummaryManager
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS
getPlanKeyFunction
getPlanKey
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, getPlanKey, getPlanType, getProject, getRelatedLabellings, getType, getVariables, hashCode, hasMaster, isMarkedForDeletion, isSuspendedFromBuilding
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAverageBuildDuration, getBuildDefinition, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getNextBuildNumber, getProject, getType, getVariables, hasMaster, isMarkedForDeletion
getBuildKey, getBuildName, getId, getMasterId, getName, getPlanKey, getPlanType, isSuspendedFromBuilding
getDescription
public AbstractImmutableChain(@NotNull Chain chain, BuildLoggerManager buildLoggerManager, ImmutablePlanCacheService immutablePlanCacheService, ImmutablePlanManager immutablePlanManager, LabelManager labelManager, ResultsSummaryManager resultsSummaryManager, RepositoryDefinitionManager repositoryDefinitionManager, VariableDefinitionManager variableDefinitionManager, @NotNull BuildDefinition buildDefinition)
public boolean isActive()
ImmutablePlan
isActive
in interface ImmutablePlan
public boolean isExecuting()
ImmutablePlan
isExecuting
in interface ImmutablePlan
public PlanResultKey getLastResultKey()
ImmutableChain
getLastResultKey
in interface ImmutableChain
public ImmutableResultsSummary getLatestResultsSummary()
ImmutablePlan
getLatestResultsSummary
in interface ImmutablePlan
public void resetLatestResultsSummary()
resetLatestResultsSummary
in class AbstractImmutablePlan
public boolean isBusy()
ImmutablePlan
Plan
"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 ChainStage
s that have been marked for deletion
getStages
in interface ImmutableChain
@NotNull public com.google.common.collect.ImmutableList<ImmutableChainStage> getAllStages()
ImmutableChain
Note that this includes ChainStage
s that have been marked for deletion
getAllStages
in interface ImmutableChain
public int getJobCount()
ImmutableChain
getJobCount
in interface ImmutableChain
@NotNull public com.google.common.collect.ImmutableList<ImmutableJob> getAllJobs()
getAllJobs
in interface ImmutableChain
public boolean containsStage(@Nullable String stageName)
ImmutableChain
containsStage
in interface ImmutableChain
stageName
- to check for@NotNull public com.google.common.collect.ImmutableList<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 ImmutableChain getMaster()
ImmutablePlan
getMaster
in interface ImmutableChain
getMaster
in interface ImmutablePlan
Plan
if one exists.public boolean isSuspended()
isSuspended
in interface Triggerable
@NotNull public List<TriggerDefinition> getTriggerDefinitions()
getTriggerDefinitions
in interface Triggerable
@NotNull public List<BuildStrategy> getTriggers()
Triggerable
Triggerable.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 Triggerable
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.