Package com.atlassian.bamboo.chains
Class ChainResultsSummaryImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.resultsummary.BaseResultSummary
com.atlassian.bamboo.resultsummary.AbstractResultsSummary
com.atlassian.bamboo.chains.ChainResultsSummaryImpl
- All Implemented Interfaces:
ChainResultsSummary
,ImmutableChainResultsSummary
,BambooCustomDataAware
,BambooIdProvider
,BambooObject
,Deletable
,ImmutableDeletable
,PlanResultKeyProvider
,ImmutableResultsSummary
,MutableBuildKeyResultsSummary
,ResultsSummary
,ResultStatisticsProvider
,Cloneable
,Comparable<ImmutableResultsSummary>
-
Field Summary
Fields inherited from class com.atlassian.bamboo.resultsummary.AbstractResultsSummary
buildState, cachedPlanManagerRef, decryptedSubstitutedVariablesReference, decryptedVariableContextLogsReference, lifeCycleState, markedForDeletion, specsResult
Fields inherited from class com.atlassian.bamboo.resultsummary.BaseResultSummary
DATE_FORMAT
Fields inherited from interface com.atlassian.bamboo.resultsummary.ImmutableResultsSummary
CUSTOM_DATA_BUILD_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addStageResult
(@NotNull ChainStageResult chainStageResult) Add a stage result@NotNull ChainStageResult
createStageResult
(@NotNull ImmutableChainStage chainStage) Create a newChainStageResult
and associates it with theChainResultsSummary
@NotNull List<BuildResultsSummary>
Get a list of all failed job Results in this chain resultGet build result that this build was fixed in.@NotNull String
@NotNull ImmutableChain
Gets theImmutableChain
that this result belongs to (directly or not)@NotNull ImmutableChain
Gets theImmutablePlan
that this result belongs directly belongs to.Note: this API is experimental.@NotNull List<ResultsSummary>
Returns all jobsResultsSummary
related to chain result summary Summaries are ordered by stages@NotNull Optional<ImmutableChain>
Gets theImmutablePlan
that this result directly belongs to.@NotNull String
@NotNull List<ChainStageResult>
Get all theChainStageResult
's associated with thisChainResultsSummary
@Nullable FilteredTestResults<TestClassResultDescriptor>
Get the helper class to provide filtered test lists for this chain resultint
boolean
Indicates thatChain
execution has been stopped on manual stage and is waiting for user actionboolean
boolean
Tells whether this result belongs to a job that will run when next manual stage is kicked offboolean
Indicates thatChain
execution has been failed and could be restarted from failure placeboolean
removeStageResult
(@NotNull ChainStageResult chainStageResult) Remove a stage resultvoid
setContinuable
(boolean continuable) void
setFixedInResult
(Integer fixedInBuild) Set the result that this result was fixed in.void
setMarkedForDeletion
(boolean markedForDeletion) void
setMergeResult
(MergeResultSummary mergeResult) Note: this API is experimental.void
setStageResults
(@NotNull List<ChainStageResult> stageResults) Methods inherited from class com.atlassian.bamboo.resultsummary.AbstractResultsSummary
addVariableContextItem, getArtifactLinks, getBuildAgentId, getBuildAgentType, getBuildCancelledDate, getBuildCompletedDate, getBuildDate, getBuildKey, getBuildNumber, getBuildResultKey, getBuildState, getChangesListSummary, getCustomBuildData, getCustomBuildDataRows, getDeltaState, getDiscriminator, getDuration, getFormatVersion, getJiraIssues, getLabellings, getLifeCycleState, getLogSize, getPlanKey, getProcessingDuration, getQueueTime, getReasonSummary, getRepositoryChangesets, getRestartCount, getResultVariables, getStageResultId, getSubscriptions, getSubstitutedVariables, getSubstitutedVariablesEncrypted, getTestClassResults, getTestResultsSummary, getTimeToFix, getTriggerManager, getTriggerReason, getTriggerReasonKey, getVariableContextBaseline, getVariableContextBaselineId, getVariableContextLogs, getVariableContextLogsEncrypted, incrementRestartCount, isCustomBuild, isOnceOff, isRebuild, isSpecsResult, resetTestClassResults, setArtifactLinks, setBuildAgentId, setBuildAgentType, setBuildCancelledDate, setBuildCompletedDate, setBuildDate, setBuildKey, setBuildNumber, setBuildState, setComments, setCustomBuild, setCustomBuildData, setDeltaState, setDiscriminator, setDuration, setFormatVersion, setJiraIssues, setLabellings, setLifeCycleState, setLogSize, setOnceOff, setPlanKey, setPlanName, setProcessingDuration, setQueueTime, setRebuild, setRestartCount, setSpecsResult, setStageResultId, setSubscriptions, setTestResultsSummary, setTimeToFix, setTriggerReason, setTriggerReasonKey, setVariableContextBaseline, setVariableContextLogsEncrypted, toString, updateCustomDataEntry, updateFormatVersion, updateLifeCycleState
Methods inherited from class com.atlassian.bamboo.resultsummary.BaseResultSummary
compareTo, createChangeListSummary, equals, getArtifactLinksThatExist, getBuildTime, getCommits, getDurationDescription, getFixingJiraIssues, getJiraIssueKeys, getLabelNames, getManuallyOverriddenVariables, getPlanResultKey, getProcessingDurationDescription, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeBuildStartedDate, getRelativeBuildStartedDate, getRelativeQueueDate, getRelativeQueueDate, getShortReasonSummary, getStatDate, getTestSummary, getUniqueAuthors, hasChanges, hasComments, hashCode, isActive, isFailed, isFinalized, isFinished, isInProgress, isNotBuilt, isPending, isQueued, isSuccessful, isWaiting
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.core.BambooCustomDataAware
updateCustomDataEntry
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
Methods inherited from interface com.atlassian.bamboo.chains.ChainResultsSummary
setSpecsResult
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.atlassian.bamboo.chains.ImmutableChainResultsSummary
isSpecsResult
Methods inherited from interface com.atlassian.bamboo.resultsummary.ImmutableResultsSummary
getArtifactLinks, getArtifactLinksThatExist, getBuildAgentId, getBuildAgentType, getBuildCancelledDate, getBuildCompletedDate, getBuildTime, getChangesListSummary, getCommits, getCustomBuildData, getDeltaState, getDuration, getDurationDescription, getFixingJiraIssues, getJiraIssueKeys, getJiraIssues, getLabellings, getLabelNames, getLifeCycleState, getLogSize, getManuallyOverriddenVariables, getPlanKey, getPlanResultKey, getProcessingDuration, getProcessingDurationDescription, getQueueTime, getReasonSummary, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeBuildStartedDate, getRelativeBuildStartedDate, getRelativeQueueDate, getRelativeQueueDate, getRepositoryChangesets, getRestartCount, getShortReasonSummary, getSubscriptions, getSubstitutedVariables, getTestResultsSummary, getTestSummary, getTimeToFix, getTriggerReason, getUniqueAuthors, getVariableContextLogs, hasChanges, hasComments, isActive, isCustomBuild, isFailed, isFinished, isInProgress, isNotBuilt, isOnceOff, isPending, isQueued, isRebuild, isSuccessful, isWaiting
Methods inherited from interface com.atlassian.bamboo.plan.PlanResultKeyProvider
getPlanResultKey
Methods inherited from interface com.atlassian.bamboo.resultsummary.ResultsSummary
addVariableContextItem, getBuildKey, getBuildResultKey, getFormatVersion, getSubstitutedVariablesEncrypted, getVariableContextBaselineId, getVariableContextLogsEncrypted, incrementRestartCount, resetTestClassResults, setBuildAgentId, setBuildAgentType, setBuildCancelledDate, setBuildCompletedDate, setBuildDate, setCustomBuild, setDeltaState, setDuration, setLogSize, setOnceOff, setProcessingDuration, setQueueTime, setRebuild, setRestartCount, setTestResultsSummary, setTimeToFix, setTriggerReason, updateFormatVersion, updateLifeCycleState
Methods inherited from interface com.atlassian.bamboo.resultsummary.ResultStatisticsProvider
getBuildDate, getBuildNumber, getBuildState, getStatDate
-
Constructor Details
-
ChainResultsSummaryImpl
public ChainResultsSummaryImpl()
-
-
Method Details
-
getImmutablePlan
Description copied from interface:ResultsSummary
Gets theImmutablePlan
that this result belongs directly belongs to. Since version 6.9 it is possible thatImmutableJob
no longer exists but its results do, therefore it is recommended to useImmutableResultsSummary.getPlanIfExists()
instead when operating on job results.- Specified by:
getImmutablePlan
in interfaceImmutableChainResultsSummary
- Specified by:
getImmutablePlan
in interfaceImmutableResultsSummary
- Specified by:
getImmutablePlan
in interfaceResultsSummary
- Overrides:
getImmutablePlan
in classAbstractResultsSummary
- Returns:
- the owning plan for the result
-
getImmutableChain
Description copied from interface:ImmutableResultsSummary
Gets theImmutableChain
that this result belongs to (directly or not)- Specified by:
getImmutableChain
in interfaceImmutableResultsSummary
- Returns:
- the owning plan for the result
-
getPlanIfExists
Description copied from interface:ImmutableResultsSummary
Gets theImmutablePlan
that this result directly belongs to.- Specified by:
getPlanIfExists
in interfaceImmutableChainResultsSummary
- Specified by:
getPlanIfExists
in interfaceImmutableResultsSummary
- Overrides:
getPlanIfExists
in classAbstractResultsSummary
- Returns:
- the owning plan for the result or empty if id doesn't exist.
-
getFullPlanName
- Specified by:
getFullPlanName
in interfaceImmutableResultsSummary
- Returns:
- full plan name
-
getPlanName
- Specified by:
getPlanName
in interfaceImmutableResultsSummary
- Overrides:
getPlanName
in classAbstractResultsSummary
- Returns:
- short plan name
-
createStageResult
@NotNull public @NotNull ChainStageResult createStageResult(@NotNull @NotNull ImmutableChainStage chainStage) Description copied from interface:ChainResultsSummary
Create a newChainStageResult
and associates it with theChainResultsSummary
- Specified by:
createStageResult
in interfaceChainResultsSummary
- Parameters:
chainStage
- the Stage related to result- Returns:
- chainStageResult
-
getStageResults
Description copied from interface:ImmutableChainResultsSummary
Get all theChainStageResult
's associated with thisChainResultsSummary
- Specified by:
getStageResults
in interfaceImmutableChainResultsSummary
- Returns:
- results
-
setStageResults
-
addStageResult
Description copied from interface:ChainResultsSummary
Add a stage result- Specified by:
addStageResult
in interfaceChainResultsSummary
- Returns:
- success
-
removeStageResult
Description copied from interface:ChainResultsSummary
Remove a stage result- Specified by:
removeStageResult
in interfaceChainResultsSummary
- Returns:
- success
-
getFailedJobResults
Description copied from interface:ImmutableChainResultsSummary
Get a list of all failed job Results in this chain result- Specified by:
getFailedJobResults
in interfaceImmutableChainResultsSummary
- Returns:
- a list of all failed job Results in this chain result
-
getTotalJobCount
public int getTotalJobCount()- Specified by:
getTotalJobCount
in interfaceImmutableChainResultsSummary
- Returns:
- how many job results exist
-
getTestResults
Description copied from interface:ImmutableChainResultsSummary
Get the helper class to provide filtered test lists for this chain result- Specified by:
getTestResults
in interfaceImmutableChainResultsSummary
- Returns:
- helper class to provide filtered test lists for this chain result, null if the chain is still being built
-
getOrderedJobResultSummaries
Description copied from interface:ImmutableChainResultsSummary
Returns all jobsResultsSummary
related to chain result summary Summaries are ordered by stages- Specified by:
getOrderedJobResultSummaries
in interfaceImmutableChainResultsSummary
- Returns:
-
isContinuable
public boolean isContinuable()Description copied from interface:ImmutableChainResultsSummary
Indicates thatChain
execution has been stopped on manual stage and is waiting for user action- Specified by:
isContinuable
in interfaceImmutableChainResultsSummary
- Returns:
-
setContinuable
public void setContinuable(boolean continuable) - Specified by:
setContinuable
in interfaceChainResultsSummary
-
isRestartable
public boolean isRestartable()Description copied from interface:ImmutableChainResultsSummary
Indicates thatChain
execution has been failed and could be restarted from failure place- Specified by:
isRestartable
in interfaceImmutableChainResultsSummary
- Returns:
-
isNotRunYet
public boolean isNotRunYet()Description copied from interface:ImmutableResultsSummary
Tells whether this result belongs to a job that will run when next manual stage is kicked off- Specified by:
isNotRunYet
in interfaceImmutableResultsSummary
- Returns:
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletion
in interfaceImmutableDeletable
- Returns:
- Whether or not the Object has been marked for deletion
-
setMarkedForDeletion
public void setMarkedForDeletion(boolean markedForDeletion) - Specified by:
setMarkedForDeletion
in interfaceDeletable
-
getMergeResult
Description copied from interface:ImmutableChainResultsSummary
Note: this API is experimental.- Specified by:
getMergeResult
in interfaceImmutableChainResultsSummary
-
setMergeResult
Description copied from interface:ChainResultsSummary
Note: this API is experimental.- Specified by:
setMergeResult
in interfaceChainResultsSummary
-
getFixedInResult
Description copied from interface:ImmutableChainResultsSummary
Get build result that this build was fixed in. If the build is succussful it will be null. If there is no successful build after this it will also be null. If the fixed in build is deleted. This will still reference the deleted result.- Specified by:
getFixedInResult
in interfaceImmutableChainResultsSummary
- Returns:
-
setFixedInResult
Description copied from interface:ChainResultsSummary
Set the result that this result was fixed in.- Specified by:
setFixedInResult
in interfaceChainResultsSummary
-