Class BuildResultsSummaryImpl
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.resultsummary.BuildResultsSummaryImpl
- All Implemented Interfaces:
BambooCustomDataAware
,BambooIdProvider
,BambooObject
,Deletable
,ImmutableDeletable
,PlanResultKeyProvider
,BuildResultsSummary
,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 TypeMethodDescriptionvoid
Remove all result variables related to this result.@Nullable ChainResultsSummary
TheChainResultsSummary
to which the currentBuildResultsSummary
is a child of Typically this is the link between aChain
andJob
result@Nullable ExtraBuildResultsData
Allow access toExtraBuildResultsData
@Nullable FilteredTestResults
Return a filtered view of all the tests that ran in this build.@NotNull String
@NotNull ImmutableChain
Gets theImmutableChain
that this result belongs to (directly or not)@NotNull List<ArtifactLink>
Returns all artifacts produced by this build.long
How long build was in the queue (in miliseconds)@NotNull List<RepositoryChangeset>
@NotNull TriggerReason
Why the build was was triggeredlong
How long checkout take (in miliseconds)When the source syncronisation was kicked offboolean
boolean
Tells whether this result belongs to a job that will run when next manual stage is kicked offvoid
setChainResultsSummary
(@NotNull ChainResultsSummary chainResultsSummary) void
setMarkedForDeletion
(boolean markedForDeletion) protected void
setProducedArtifactLinks
(@Nullable List<ArtifactLink> producedArtifactLinks) void
setTriggerReason
(TriggerReason triggerReason) void
setVcsUpdateTime
(Date vcsUpdateTime) 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, getImmutablePlan, getJiraIssues, getLabellings, getLifeCycleState, getLogSize, getPlanIfExists, getPlanKey, getPlanName, getProcessingDuration, getQueueTime, getReasonSummary, getRestartCount, getResultVariables, getStageResultId, getSubscriptions, getSubstitutedVariables, getSubstitutedVariablesEncrypted, getTestClassResults, getTestResultsSummary, getTimeToFix, getTriggerManager, 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, 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.resultsummary.BuildResultsSummary
getResultVariables
Methods inherited from interface java.lang.Comparable
compareTo
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, getPlanIfExists, getPlanKey, getPlanName, getPlanResultKey, getProcessingDuration, getProcessingDurationDescription, getQueueTime, getReasonSummary, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeBuildStartedDate, getRelativeBuildStartedDate, getRelativeQueueDate, getRelativeQueueDate, getRestartCount, getShortReasonSummary, getSubscriptions, getSubstitutedVariables, getTestResultsSummary, getTestSummary, getTimeToFix, 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, getImmutablePlan, getSubstitutedVariablesEncrypted, getVariableContextBaselineId, getVariableContextLogsEncrypted, incrementRestartCount, resetTestClassResults, setBuildAgentId, setBuildAgentType, setBuildCancelledDate, setBuildCompletedDate, setBuildDate, setCustomBuild, setDeltaState, setDuration, setLogSize, setOnceOff, setProcessingDuration, setQueueTime, setRebuild, setRestartCount, setTestResultsSummary, setTimeToFix, updateFormatVersion, updateLifeCycleState
Methods inherited from interface com.atlassian.bamboo.resultsummary.ResultStatisticsProvider
getBuildDate, getBuildNumber, getBuildState, getStatDate
-
Constructor Details
-
BuildResultsSummaryImpl
public BuildResultsSummaryImpl()
-
-
Method Details
-
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
-
getFilteredTestResults
Description copied from interface:BuildResultsSummary
Return a filtered view of all the tests that ran in this build. Provides some degree of caching but is still relatively intensive.- Specified by:
getFilteredTestResults
in interfaceBuildResultsSummary
- Returns:
- a filtered view of all the tests ran in this build. Null if the builds hasn't finished yet.
-
getExtraBuildResultsData
Description copied from interface:BuildResultsSummary
Allow access toExtraBuildResultsData
- Specified by:
getExtraBuildResultsData
in interfaceBuildResultsSummary
- Returns:
-
getChainResultsSummary
Description copied from interface:BuildResultsSummary
TheChainResultsSummary
to which the currentBuildResultsSummary
is a child of Typically this is the link between aChain
andJob
result- Specified by:
getChainResultsSummary
in interfaceBuildResultsSummary
-
getFullPlanName
- Specified by:
getFullPlanName
in interfaceImmutableResultsSummary
- Returns:
- full plan name
-
setChainResultsSummary
- Specified by:
setChainResultsSummary
in interfaceBuildResultsSummary
-
getProducedArtifactLinks
Description copied from interface:BuildResultsSummary
Returns all artifacts produced by this build. Even if the files don't exist- Specified by:
getProducedArtifactLinks
in interfaceBuildResultsSummary
- Returns:
-
setProducedArtifactLinks
protected void setProducedArtifactLinks(@Nullable @Nullable List<ArtifactLink> producedArtifactLinks) -
getQueueDuration
public long getQueueDuration()Description copied from interface:BuildResultsSummary
How long build was in the queue (in miliseconds)- Specified by:
getQueueDuration
in interfaceBuildResultsSummary
- Returns:
-
getVcsUpdateTime
Description copied from interface:BuildResultsSummary
When the source syncronisation was kicked off- Specified by:
getVcsUpdateTime
in interfaceBuildResultsSummary
- Returns:
-
getVcsUpdateDuration
public long getVcsUpdateDuration()Description copied from interface:BuildResultsSummary
How long checkout take (in miliseconds)- Specified by:
getVcsUpdateDuration
in interfaceBuildResultsSummary
- 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
-
getRepositoryChangesets
- Specified by:
getRepositoryChangesets
in interfaceImmutableResultsSummary
- Overrides:
getRepositoryChangesets
in classAbstractResultsSummary
-
setTriggerReason
- Specified by:
setTriggerReason
in interfaceResultsSummary
- Overrides:
setTriggerReason
in classAbstractResultsSummary
-
getTriggerReason
Description copied from interface:ImmutableResultsSummary
Why the build was was triggered- Specified by:
getTriggerReason
in interfaceImmutableResultsSummary
- Overrides:
getTriggerReason
in classAbstractResultsSummary
-
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:
-
setVcsUpdateTime
-
clearResultVariables
public void clearResultVariables()Description copied from interface:BuildResultsSummary
Remove all result variables related to this result.- Specified by:
clearResultVariables
in interfaceBuildResultsSummary
-