@PublicApi public interface Chain extends ImmutableChain, Plan
ImmutableChain
.MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS
getPlanKeyFunction
getPlanKey
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) |
List<Job> |
getAllJobs()
Note: Does not include Jobs that are marked for deletion.
|
List<ChainStage> |
getAllStages()
Get Stages of the Chain
|
Chain |
getMaster()
Return the master plan if one exists.
|
List<ChainStage> |
getStages()
Get Stages of the chain.
|
void |
removeStage(long chainStageId) |
void |
setNotificationSet(NotificationSet notificationSet) |
containsStage, getEffectiveRepositoryDefinitions, getJobCount, getLastResultKey, getNotificationSet
getTriggerDefinitions, getTriggers, isSuspended
getBuildDefinitionXml, getLabellings, getLatestResultsSummary, getRelatedLabellings, setBuildDefinitionXml, setBuildKey, setBuildName, setKey, setLabellings, setMaster, setPlanKey, setProject, setSuspendedFromBuilding
setDescription, setName
setMarkedForDeletion
setId
isMarkedForDeletion
getAverageBuildDuration, getBuildDefinition, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getNextBuildNumber, getProject, getType, getVariables, hasMaster, isActive, isBusy, isExecuting, isMarkedForDeletion
getBuildKey, getBuildName, getId, getMasterId, getName, getPlanKey, getPlanType, isSuspendedFromBuilding
void setNotificationSet(NotificationSet notificationSet)
@NotNull ChainStage addNewStage(@NotNull String name, @NotNull String description, boolean manual)
name
- description
- manual
- void addStage(@NotNull ChainStage chainStage)
void removeStage(long chainStageId)
Chain getMaster()
ImmutablePlan
getMaster
in interface ImmutableChain
getMaster
in interface ImmutablePlan
Plan
if one exists.@NotNull List<ChainStage> getStages()
ImmutableChain
Note that this excludes ChainStage
s that have been marked for deletion
getStages
in interface ImmutableChain
@NotNull List<ChainStage> getAllStages()
Note that this includes ChainStage
s that have been marked for deletion
getAllStages
in interface ImmutableChain
@NotNull List<Job> getAllJobs()
getAllJobs
in interface ImmutableChain
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.