@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
NAME_DELIMITER
getPlanKey
Modifier and Type | Method and Description |
---|---|
@NotNull ChainStage |
addNewStage(@NotNull String name,
@NotNull String description,
boolean manual)
Deprecated.
since 5.13 use
addStage(ChainStage) |
void |
addStage(@NotNull ChainStage chainStage) |
void |
addStage(int index,
@NotNull ChainStage chainStage)
Add stage at given index.
|
@NotNull List<Job> |
getAllJobs()
Note: Does not include Jobs that are marked for deletion.
|
@NotNull List<ChainStage> |
getAllStages()
Get Stages of the Chain
|
Chain |
getMaster()
Return the master plan if one exists.
|
@NotNull List<ChainStage> |
getStages()
Get Stages of the chain.
|
void |
removeStage(long chainStageId) |
void |
removeStagesIf(@NotNull Predicate<ChainStage> predicate)
Remove all stages matching a predicate.
|
void |
setNotificationSet(NotificationSet notificationSet) |
void |
setStorageTag(ChainStorageTag storageTag) |
containsStage, getCreationDate, getEffectiveRepositoryDefinitions, getEntityType, getJobCount, getLastResultKey, getNotificationSet, getPlanRepositoryDefinitions, getStorageTag, getVcsBambooSpecsSource
getTriggerDefinitions, isSuspended
getBuildDefinitionXml, getLabellings, getLatestResultsSummary, getRelatedLabellings, setBuildDefinitionXml, setBuildKey, setBuildName, setKey, setLabellings, setMaster, setPlanKey, setProject, setSuspendedFromBuilding
setOid
getOid
setDescription, setName
setMarkedForDeletion
setId
getAverageBuildDuration, getBuildDefinition, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getProject, getType, getVariables, hasMaster, isActive, isBusy, isExecuting, isMarkedForDeletion
getBuildKey, getBuildName, getDatabaseId, getId, getMasterId, getMasterIdIfExists, getName, getPlanKey, getPlanType, isSuspendedFromBuilding
void setNotificationSet(NotificationSet notificationSet)
@Deprecated @NotNull @NotNull ChainStage addNewStage(@NotNull @NotNull String name, @NotNull @NotNull String description, boolean manual)
addStage(ChainStage)
name
- description
- manual
- void addStage(@NotNull @NotNull ChainStage chainStage)
void addStage(int index, @NotNull @NotNull ChainStage chainStage)
void removeStage(long chainStageId)
Chain getMaster()
ImmutablePlan
getMaster
in interface ImmutableChain
getMaster
in interface ImmutablePlan
Plan
if one exists.@NotNull @NotNull List<ChainStage> getStages()
ImmutableChain
Note that this excludes ChainStage
s that have been marked for deletion
getStages
in interface ImmutableChain
@NotNull @NotNull List<ChainStage> getAllStages()
Note that this includes ChainStage
s that have been marked for deletion
getAllStages
in interface ImmutableChain
@NotNull @NotNull List<Job> getAllJobs()
getAllJobs
in interface ImmutableChain
void setStorageTag(ChainStorageTag storageTag)
void removeStagesIf(@NotNull @NotNull Predicate<ChainStage> predicate)
Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.