|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.bamboo.core.BambooEntityObject com.atlassian.bamboo.resultsummary.BaseResultSummary com.atlassian.bamboo.resultsummary.AbstractResultsSummary
public abstract class AbstractResultsSummary
Field Summary | |
---|---|
protected BuildState |
buildState
|
protected static com.google.common.base.Supplier<CachedPlanManager> |
cachedPlanManagerRef
|
protected LifeCycleState |
lifeCycleState
|
protected boolean |
markedForDeletion
|
protected static com.google.common.base.Supplier<PlanManager> |
planManagerRef
|
Fields inherited from class com.atlassian.bamboo.resultsummary.BaseResultSummary |
---|
DATE_FORMAT |
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Fields inherited from interface com.atlassian.bamboo.resultsummary.ImmutableResultsSummary |
---|
CUSTOM_DATA_BUILD_KEY |
Fields inherited from interface com.atlassian.bamboo.plan.PlanResultKeyProvider |
---|
getPlanKey |
Constructor Summary | |
---|---|
AbstractResultsSummary()
|
Method Summary | |
---|---|
List<ArtifactLink> |
getArtifactLinks()
Returns all artifacts associated with this build. |
Long |
getBuildAgentId()
The id of the latest agent that built the result |
Date |
getBuildCancelledDate()
When the build was cancelled |
Date |
getBuildCompletedDate()
When the build finished |
Date |
getBuildDate()
Date when build was passed to execution. |
String |
getBuildKey()
|
int |
getBuildNumber()
Get build number |
String |
getBuildResultKey()
|
BuildState |
getBuildState()
Build state. |
String |
getChangesListSummary()
|
List<Comment> |
getComments()
Deprecated. since 5.0 |
Map<String,String> |
getCustomBuildData()
Custom data map to store random metadata about the build |
List<CustomDataRow> |
getCustomBuildDataRows()
This method is not intended to be used outside BuildResultsSummaryHibernateDao |
DeltaState |
getDeltaState()
Gets the DeltaState of the summary. |
String |
getDiscriminator()
|
long |
getDuration()
Duration of the build in milliseconds |
int |
getFormatVersion()
|
ImmutablePlan |
getImmutablePlan()
Gets the Plan that this result belongs directly belongs to |
Set<LinkedJiraIssue> |
getJiraIssues()
Returns all the JIRA issues linked to this build result |
List<Labelling> |
getLabellings()
Tags / labels assocaited with the build |
LifeCycleState |
getLifeCycleState()
|
Long |
getLogSize()
Returns the size of log associated with this result. |
Plan |
getPlan()
Gets the Plan that this result belongs directly belongs to |
PlanKey |
getPlanKey()
Full key of the plan. |
long |
getProcessingDuration()
Duration of actual build processing in miliseconds |
Date |
getQueueTime()
Date when build was queued. |
String |
getReasonSummary()
|
List<RepositoryChangeset> |
getRepositoryChangesets()
|
int |
getRestartCount()
Return the number of build restart attempts |
Iterable<VariableContextSnapshot> |
getResultVariables()
|
Long |
getStageResultId()
|
List<ConsumedSubscription> |
getSubscriptions()
Returns list of consumed artifact dependencies ConsumedSubscription |
List<VariableSubstitution> |
getSubstitutedVariables()
Returns list of variables substituted during build execution |
List<TestClassResult> |
getTestClassResults()
|
TestResultsSummary |
getTestResultsSummary()
|
Long |
getTimeToFix()
A stored version of how long (milli seconds) it took for this build to fix a failure. |
protected TriggerManager |
getTriggerManager()
|
TriggerReason |
getTriggerReason()
Why the build was was triggered |
String |
getTriggerReasonKey()
|
com.google.common.collect.ImmutableList<VariableBaselineItem> |
getVariableContext()
|
VariableContextBaseline |
getVariableContextBaseline()
|
List<VariableContextSnapshot> |
getVariableContextLogs()
|
int |
incrementRestartCount()
Increments number of build restarts and returns the new value |
boolean |
isCustomBuild()
Indicates that this result was run with custom variables (some of the variables were overwritten) - used to display indicator in UI |
boolean |
isOnceOff()
Indicates that this result was run with custom revision and should be considered as 'once-off' when calculating telemetry and other stuff |
boolean |
isRebuild()
Indicates that this result was rebuild via "re-run this build" action. |
void |
resetTestClassResults(List<TestClassResult> testClassResults)
Overrides all current testClassResults with the new ones |
void |
setArtifactLinks(List<ArtifactLink> artifactLinks)
|
void |
setBuildAgentId(long buildAgentId)
|
void |
setBuildCancelledDate(Date buildCancelledDate)
|
void |
setBuildCompletedDate(Date buildCompletedDate)
|
void |
setBuildDate(Date buildDate)
|
void |
setBuildKey(String buildKey)
|
void |
setBuildNumber(int buildNumber)
|
void |
setBuildState(BuildState buildState)
|
void |
setComments(List<Comment> comments)
|
void |
setCustomBuild(boolean customBuild)
|
void |
setCustomBuildData(Map<String,String> customBuildData)
|
void |
setDeltaState(DeltaState deltaState)
Sets the DeltaState for the summary. |
void |
setDiscriminator(String discriminator)
|
void |
setDuration(long duration)
|
void |
setFormatVersion(int formatVersion)
|
void |
setJiraIssues(Set jiraIssues)
|
void |
setLabellings(List<Labelling> labellings)
|
void |
setLifeCycleState(LifeCycleState lifeCycleState)
|
void |
setLogSize(Long logSize)
Sets the size of the log file associated with this result, eg. |
void |
setOnceOff(boolean onceOff)
|
void |
setPlanKey(PlanKey planKey)
|
void |
setProcessingDuration(long processingDuration)
|
void |
setQueueTime(Date queueTime)
|
void |
setRebuild(boolean rebuild)
|
void |
setRestartCount(int restartCount)
|
void |
setStageResultId(Long stageResultId)
|
void |
setSubscriptions(List<ConsumedSubscription> subscriptions)
|
void |
setSubstitutedVariables(List<VariableSubstitution> substitutedVariables)
|
void |
setTestResultsSummary(TestResultsSummary testResultsSummary)
Set the test summary information from this build |
void |
setTimeToFix(Long timeToFix)
A stored version of how long (milli seconds) it took for this build to fix a failure. |
void |
setTriggerReason(TriggerReason triggerReason)
|
void |
setTriggerReasonKey(String triggerReasonKey)
|
void |
setVariableContextBaseline(VariableContextBaseline variableContextBaseline)
Internal use only. |
void |
setVariableContextLogs(List<VariableContextSnapshot> variableContextLogs)
|
void |
updateCustomDataEntry(String key,
String value)
Add or modify key value pair to Object's custom data map. |
void |
updateFormatVersion()
Sets format version to current Bamboo build number. |
void |
updateLifeCycleState(LifeCycleState lifeCycleState,
BuildState buildState)
Update lifeCycleState and buildState in one go. |
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
getId, setId |
Methods inherited from class com.atlassian.core.bean.EntityObject |
---|
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.deletion.Deletable |
---|
setMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
setId |
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider |
---|
getId |
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable |
---|
isMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.resultsummary.ResultStatisticsProvider |
---|
getStatDate |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.atlassian.bamboo.plan.PlanResultKeyProvider |
---|
getPlanResultKey |
Field Detail |
---|
protected boolean markedForDeletion
protected BuildState buildState
protected LifeCycleState lifeCycleState
protected static final com.google.common.base.Supplier<CachedPlanManager> cachedPlanManagerRef
protected static final com.google.common.base.Supplier<PlanManager> planManagerRef
Constructor Detail |
---|
public AbstractResultsSummary()
Method Detail |
---|
@NotNull public ImmutablePlan getImmutablePlan()
ResultsSummary
Plan
that this result belongs directly belongs to
getImmutablePlan
in interface ImmutableResultsSummary
getImmutablePlan
in interface ResultsSummary
@NotNull public Plan getPlan()
ResultsSummary
Plan
that this result belongs directly belongs to
getPlan
in interface ImmutableResultsSummary
getPlan
in interface ResultsSummary
@NotNull public String getBuildResultKey()
getBuildResultKey
in interface ResultsSummary
@NotNull public String getBuildKey()
getBuildKey
in interface ResultsSummary
public String getReasonSummary()
getReasonSummary
in interface ImmutableResultsSummary
public void setBuildKey(String buildKey)
setBuildKey
in interface MutableBuildKeyResultsSummary
public int getBuildNumber()
ResultStatisticsProvider
getBuildNumber
in interface ResultStatisticsProvider
public void setBuildNumber(int buildNumber)
public Date getBuildDate()
getBuildDate
in interface ResultStatisticsProvider
public void setBuildDate(Date buildDate)
setBuildDate
in interface ResultsSummary
public Date getQueueTime()
getQueueTime
in interface ImmutableResultsSummary
public void setQueueTime(Date queueTime)
setQueueTime
in interface ResultsSummary
public Date getBuildCompletedDate()
ImmutableResultsSummary
getBuildCompletedDate
in interface ImmutableResultsSummary
public void setBuildCompletedDate(Date buildCompletedDate)
setBuildCompletedDate
in interface ResultsSummary
public DeltaState getDeltaState()
ImmutableResultsSummary
DeltaState
of the summary. It can be a build that fixes, breaks, failing, successful. Provides a status
relative to the previous summary.
getDeltaState
in interface ImmutableResultsSummary
public void setDeltaState(DeltaState deltaState)
ResultsSummary
DeltaState
for the summary. Provides a status relative to the previous summary.
setDeltaState
in interface ResultsSummary
deltaState
- - the relative status for this summarypublic boolean isOnceOff()
ImmutableResultsSummary
isOnceOff
in interface ImmutableResultsSummary
public void setOnceOff(boolean onceOff)
setOnceOff
in interface ResultsSummary
public boolean isCustomBuild()
ImmutableResultsSummary
isCustomBuild
in interface ImmutableResultsSummary
public void setCustomBuild(boolean customBuild)
setCustomBuild
in interface ResultsSummary
public boolean isRebuild()
ImmutableResultsSummary
isRebuild
in interface ImmutableResultsSummary
public void setRebuild(boolean rebuild)
setRebuild
in interface ResultsSummary
@Nullable public Long getLogSize()
ImmutableResultsSummary
BuildResultsSummary
this method will return size of the log produced by the Job
.
For a ChainResultsSummary
the returned value will be equal to the maximum log size produced by this
Chain
's Job
s.
getLogSize
in interface ImmutableResultsSummary
public void setLogSize(@Nullable Long logSize)
ResultsSummary
Job
or
largest log produced by Chain
's Job
s.
setLogSize
in interface ResultsSummary
logSize
- size of the largest log associated with the result (use null if unknown)@NotNull public Set<LinkedJiraIssue> getJiraIssues()
ImmutableResultsSummary
getJiraIssues
in interface ImmutableResultsSummary
public void setJiraIssues(Set jiraIssues)
@NotNull public Map<String,String> getCustomBuildData()
ImmutableResultsSummary
getCustomBuildData
in interface ImmutableResultsSummary
public void setCustomBuildData(Map<String,String> customBuildData)
public void updateCustomDataEntry(@NotNull String key, @NotNull String value)
BambooCustomDataAware
updateCustomDataEntry
in interface BambooCustomDataAware
public Long getTimeToFix()
ImmutableResultsSummary
getTimeToFix
in interface ImmutableResultsSummary
public void setTimeToFix(Long timeToFix)
ResultsSummary
setTimeToFix
in interface ResultsSummary
timeToFix
- how long (milli seconds) it took for this build to fix a failure.public List<Labelling> getLabellings()
ImmutableResultsSummary
getLabellings
in interface ImmutableResultsSummary
public void setLabellings(List<Labelling> labellings)
public void setComments(List<Comment> comments)
@NotNull public List<ArtifactLink> getArtifactLinks()
ImmutableResultsSummary
getArtifactLinks
in interface ImmutableResultsSummary
public void setArtifactLinks(List<ArtifactLink> artifactLinks)
@NotNull public List<ConsumedSubscription> getSubscriptions()
ImmutableResultsSummary
ConsumedSubscription
getSubscriptions
in interface ImmutableResultsSummary
public void setSubscriptions(List<ConsumedSubscription> subscriptions)
public String getTriggerReasonKey()
public void setTriggerReasonKey(String triggerReasonKey)
@NotNull public TriggerReason getTriggerReason()
ImmutableResultsSummary
getTriggerReason
in interface ImmutableResultsSummary
public void setTriggerReason(TriggerReason triggerReason)
setTriggerReason
in interface ResultsSummary
public Long getBuildAgentId()
ImmutableResultsSummary
getBuildAgentId
in interface ImmutableResultsSummary
public void setBuildAgentId(long buildAgentId)
setBuildAgentId
in interface ResultsSummary
public long getDuration()
ImmutableResultsSummary
getDuration
in interface ImmutableResultsSummary
getDuration
in interface ResultStatisticsProvider
public void setDuration(long duration)
setDuration
in interface ResultsSummary
duration
- duration of the build in millisecondspublic long getProcessingDuration()
ImmutableResultsSummary
getProcessingDuration
in interface ImmutableResultsSummary
getProcessingDuration
in interface ResultStatisticsProvider
public void setProcessingDuration(long processingDuration)
setProcessingDuration
in interface ResultsSummary
@Nullable public Date getBuildCancelledDate()
ImmutableResultsSummary
getBuildCancelledDate
in interface ImmutableResultsSummary
public void setBuildCancelledDate(Date buildCancelledDate)
setBuildCancelledDate
in interface ResultsSummary
@NotNull public String getChangesListSummary()
getChangesListSummary
in interface ImmutableResultsSummary
protected TriggerManager getTriggerManager()
getTriggerManager
in class BaseResultSummary
public BuildState getBuildState()
ResultStatisticsProvider
getBuildState
in interface ResultStatisticsProvider
public void setBuildState(BuildState buildState)
public LifeCycleState getLifeCycleState()
getLifeCycleState
in interface ImmutableResultsSummary
public void setLifeCycleState(LifeCycleState lifeCycleState)
public void updateLifeCycleState(@NotNull LifeCycleState lifeCycleState, @NotNull BuildState buildState)
ResultsSummary
updateLifeCycleState
in interface ResultsSummary
lifeCycleState
- lifeCycleState to be setbuildState
- buildState to be setpublic String getDiscriminator()
public void setDiscriminator(String discriminator)
@NotNull @Deprecated public List<Comment> getComments()
ImmutableResultsSummary
getComments
in interface ImmutableResultsSummary
@NotNull public List<RepositoryChangeset> getRepositoryChangesets()
getRepositoryChangesets
in interface ImmutableResultsSummary
@NotNull public List<VariableSubstitution> getSubstitutedVariables()
ImmutableResultsSummary
getSubstitutedVariables
in interface ImmutableResultsSummary
public void setSubstitutedVariables(List<VariableSubstitution> substitutedVariables)
@NotNull public List<VariableContextSnapshot> getVariableContextLogs()
getVariableContextLogs
in interface ImmutableResultsSummary
public void setVariableContextLogs(List<VariableContextSnapshot> variableContextLogs)
@NotNull public Iterable<VariableContextSnapshot> getResultVariables()
@NotNull public com.google.common.collect.ImmutableList<VariableBaselineItem> getVariableContext()
getVariableContext
in interface ImmutableResultsSummary
public VariableContextBaseline getVariableContextBaseline()
getVariableContextBaseline
in interface ResultsSummary
public void setVariableContextBaseline(@Nullable VariableContextBaseline variableContextBaseline)
ResultsSummary
setVariableContextBaseline
in interface ResultsSummary
@NotNull public TestResultsSummary getTestResultsSummary()
getTestResultsSummary
in interface ImmutableResultsSummary
public void setTestResultsSummary(@NotNull TestResultsSummary testResultsSummary)
ResultsSummary
setTestResultsSummary
in interface ResultsSummary
testResultsSummary
- the test summary information@NotNull public List<TestClassResult> getTestClassResults()
public void resetTestClassResults(@NotNull List<TestClassResult> testClassResults)
ResultsSummary
resetTestClassResults
in interface ResultsSummary
testClassResults
- to setpublic List<CustomDataRow> getCustomBuildDataRows()
BuildResultsSummaryHibernateDao
public Long getStageResultId()
public void setStageResultId(Long stageResultId)
public int getRestartCount()
ImmutableResultsSummary
getRestartCount
in interface ImmutableResultsSummary
public int incrementRestartCount()
ResultsSummary
incrementRestartCount
in interface ResultsSummary
public void setRestartCount(int restartCount)
@NotNull public PlanKey getPlanKey()
ImmutableResultsSummary
getPlanKey
in interface ImmutableResultsSummary
public void setPlanKey(PlanKey planKey)
setPlanKey
in interface MutableBuildKeyResultsSummary
public int getFormatVersion()
getFormatVersion
in interface ResultsSummary
public void updateFormatVersion()
ResultsSummary
updateFormatVersion
in interface ResultsSummary
public void setFormatVersion(int formatVersion)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |