public class BuildResultsSummaryDocument extends AbstractResultsSummary implements BuildResultsSummary
AbstractResultsSummary
which mirrors the BuildResultsSummary
object closely.buildState, cachedPlanManagerRef, lifeCycleState, markedForDeletion
DATE_FORMAT
CUSTOM_DATA_BUILD_KEY
getPlanKey
Constructor and Description |
---|
BuildResultsSummaryDocument(org.apache.lucene.document.Document doc,
ResultsSummaryManager resultsSummaryManager) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ImmutableResultsSummary obj) |
boolean |
equals(Object object) |
List<ArtifactLink> |
getArtifactLinks()
Returns all artifacts associated with this build.
|
ChainResultsSummary |
getChainResultsSummary()
Not available from Lucene
|
ExtraBuildResultsData |
getExtraBuildResultsData()
Allow access to
ExtraBuildResultsData |
FilteredTestResults |
getFilteredTestResults()
Return a filtered view of all the tests that ran in this build.
|
String |
getFullPlanName() |
ImmutableChain |
getImmutableChain()
Gets the
ImmutableChain that this result belongs to (directly or not) |
Set<String> |
getJiraIssueKeys()
Returns all the JIRA issue keys linked to this build result
|
Set<LinkedJiraIssue> |
getJiraIssues()
Returns all the JIRA issues linked to this build result
|
List<Labelling> |
getLabellings()
Tags / labels associated with the build
|
List<String> |
getLabelNames()
A shortcut method to get all of the label names from the labellings
|
String |
getPlanName() |
Collection<ArtifactLink> |
getProducedArtifactLinks()
Returns all artifacts produced by this build.
|
long |
getQueueDuration()
How long build was in the queue (in miliseconds)
|
Date |
getQueueTime()
Date when build was queued.
|
Set<Author> |
getUniqueAuthors()
A shortcut method to get the unique set of authors contributing to this build.
|
long |
getVcsUpdateDuration()
How long checkout take (in miliseconds)
|
Date |
getVcsUpdateTime()
When the source syncronisation was kicked off
|
int |
hashCode() |
boolean |
isMarkedForDeletion() |
boolean |
isNotRunYet()
Tells whether this result belongs to a job that will run when next manual stage is kicked off
|
void |
resetTestClassResults(List<TestClassResult> testClassResults)
Overrides all current testClassResults with the new ones
|
void |
setChainResultsSummary(ChainResultsSummary chainResultSummary) |
void |
setMarkedForDeletion(boolean markedForDeletion) |
void |
setQueueTime(Date queueTime) |
void |
setVcsUpdateTime(Date vcsUpdateTime) |
getBuildAgentId, getBuildCancelledDate, getBuildCompletedDate, getBuildDate, getBuildKey, getBuildNumber, getBuildResultKey, getBuildState, getChangesListSummary, getCustomBuildData, getCustomBuildDataRows, getDeltaState, getDiscriminator, getDuration, getFormatVersion, getImmutablePlan, getLifeCycleState, getLogSize, getPlanIfExists, getPlanKey, getProcessingDuration, getReasonSummary, getRepositoryChangesets, getRestartCount, getResultVariables, getStageResultId, getSubscriptions, getSubstitutedVariables, getTestClassResults, getTestResultsSummary, getTimeToFix, getTriggerManager, getTriggerReason, getTriggerReasonKey, getVariableContext, getVariableContextBaseline, getVariableContextBaselineId, getVariableContextLogs, incrementRestartCount, isCustomBuild, isOnceOff, isRebuild, setArtifactLinks, setBuildAgentId, setBuildCancelledDate, setBuildCompletedDate, setBuildDate, setBuildKey, setBuildNumber, setBuildState, setComments, setCustomBuild, setCustomBuildData, setDeltaState, setDiscriminator, setDuration, setFormatVersion, setJiraIssues, setLabellings, setLifeCycleState, setLogSize, setOnceOff, setPlanKey, setPlanName, setProcessingDuration, setRebuild, setRestartCount, setStageResultId, setSubscriptions, setSubstitutedVariables, setTestResultsSummary, setTimeToFix, setTriggerReason, setTriggerReasonKey, setVariableContextBaseline, setVariableContextLogs, toString, updateCustomDataEntry, updateFormatVersion, updateLifeCycleState
createChangeListSummary, getArtifactLinksThatExist, getBuildTime, getCommits, getDurationDescription, getFixingJiraIssues, getManuallyOverriddenVariables, getPlanResultKey, getProcessingDurationDescription, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeBuildStartedDate, getRelativeBuildStartedDate, getRelativeQueueDate, getRelativeQueueDate, getShortReasonSummary, getStatDate, getTestSummary, hasChanges, hasComments, isActive, isFailed, isFinalized, isFinished, isInProgress, isNotBuilt, isPending, isQueued, isSuccessful, isWaiting
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, wait, wait, wait
getResultVariables
getBuildKey, getBuildResultKey, getFormatVersion, getImmutablePlan, getVariableContextBaselineId, incrementRestartCount, setBuildAgentId, setBuildCancelledDate, setBuildCompletedDate, setBuildDate, setCustomBuild, setDeltaState, setDuration, setLogSize, setOnceOff, setProcessingDuration, setRebuild, setTestResultsSummary, setTimeToFix, setTriggerReason, updateFormatVersion, updateLifeCycleState
setId
getId
getArtifactLinksThatExist, getBuildAgentId, getBuildCancelledDate, getBuildCompletedDate, getBuildTime, getChangesListSummary, getCommits, getCustomBuildData, getDeltaState, getDuration, getDurationDescription, getFixingJiraIssues, getLifeCycleState, getLogSize, getManuallyOverriddenVariables, getPlanIfExists, getPlanKey, getPlanResultKey, getProcessingDuration, getProcessingDurationDescription, getReasonSummary, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeBuildStartedDate, getRelativeBuildStartedDate, getRelativeQueueDate, getRelativeQueueDate, getRepositoryChangesets, getRestartCount, getShortReasonSummary, getSubscriptions, getSubstitutedVariables, getTestResultsSummary, getTestSummary, getTimeToFix, getTriggerReason, getVariableContext, getVariableContextLogs, hasChanges, hasComments, isActive, isCustomBuild, isFailed, isFinished, isInProgress, isNotBuilt, isOnceOff, isPending, isQueued, isRebuild, isSuccessful, isWaiting
getBuildDate, getBuildNumber, getBuildState, getStatDate
updateCustomDataEntry
getPlanResultKey
public static final String FIELD_ID
public static final String FIELD_BUILD_RESULT_ID
public static final IndexedEntityIntegerField FIELD_BUILD_NUMBER
public static final String FIELD_BUILD_KEY
public static final String FIELD_BUILD_ID
public static final String FIELD_STORAGE_KEY
public static final String FIELD_PERMISSION_PLAN_ID
public static final String FIELD_STATE
public static final String FIELD_LIFE_CYCLE_STATE
public static final String FIELD_TIMESTAMP
public static final String FIELD_COMPLETED_TIMESTAMP
public static final String FIELD_DOC_TYPE
public static final String DOCTYPE_BUILD_RESULT
public static final IndexedEntityLongField FIELD_DURATION
public static final String FIELD_JIRA_ISSUE_KEY
public static final String FIELD_JIRA_ISSUE_KEY_FIXES
public static final String FIELD_JIRA_PROJECT_KEY
public static final String FIELD_AUTHORS
public static final String FIELD_AUTHORS_LINKED_USER_SUFFIX
public static final String FIELD_TRIGGER_REASON_KEY
public static final String FIELD_DELTA_STATE
public static final String FIELD_LABELS
public static final String FIELD_VCS_REVISION_KEY
public static final IndexedEntityLongField FIELD_BUILD_AGENT_ID
public static final String FIELD_ARTIFACTS
public static final String FIELD_CUSTOM_DATA_PREFIX
public static final String FIELD_QUEUE_TIME
public static final String FIELD_VCS_UPDATE_TIME
public static final String FIELD_TYPE
public BuildResultsSummaryDocument(org.apache.lucene.document.Document doc, @NotNull ResultsSummaryManager resultsSummaryManager)
@NotNull public ImmutableChain getImmutableChain()
ImmutableResultsSummary
ImmutableChain
that this result belongs to (directly or not)getImmutableChain
in interface ImmutableResultsSummary
public Date getQueueTime()
AbstractResultsSummary
getQueueTime
in interface ImmutableResultsSummary
getQueueTime
in class AbstractResultsSummary
public long getQueueDuration()
BuildResultsSummary
getQueueDuration
in interface BuildResultsSummary
public void setQueueTime(Date queueTime)
setQueueTime
in interface ResultsSummary
setQueueTime
in class AbstractResultsSummary
public Date getVcsUpdateTime()
BuildResultsSummary
getVcsUpdateTime
in interface BuildResultsSummary
public long getVcsUpdateDuration()
BuildResultsSummary
getVcsUpdateDuration
in interface BuildResultsSummary
public void setVcsUpdateTime(Date vcsUpdateTime)
@NotNull public Set<LinkedJiraIssue> getJiraIssues()
ImmutableResultsSummary
getJiraIssues
in interface ImmutableResultsSummary
getJiraIssues
in class AbstractResultsSummary
public Set<String> getJiraIssueKeys()
ImmutableResultsSummary
getJiraIssueKeys
in interface ImmutableResultsSummary
getJiraIssueKeys
in class BaseResultSummary
public Set<Author> getUniqueAuthors()
ImmutableResultsSummary
getUniqueAuthors
in interface ImmutableResultsSummary
getUniqueAuthors
in class BaseResultSummary
Set
of Author
s@NotNull public List<ArtifactLink> getArtifactLinks()
ImmutableResultsSummary
getArtifactLinks
in interface ImmutableResultsSummary
getArtifactLinks
in class AbstractResultsSummary
@NotNull public Collection<ArtifactLink> getProducedArtifactLinks()
BuildResultsSummary
getProducedArtifactLinks
in interface BuildResultsSummary
public List<Labelling> getLabellings()
ImmutableResultsSummary
getLabellings
in interface ImmutableResultsSummary
getLabellings
in class AbstractResultsSummary
@NotNull public List<String> getLabelNames()
ImmutableResultsSummary
getLabelNames
in interface ImmutableResultsSummary
getLabelNames
in class BaseResultSummary
public ChainResultsSummary getChainResultsSummary()
getChainResultsSummary
in interface BuildResultsSummary
public void setChainResultsSummary(@NotNull ChainResultsSummary chainResultSummary)
setChainResultsSummary
in interface BuildResultsSummary
@NotNull public FilteredTestResults getFilteredTestResults()
BuildResultsSummary
getFilteredTestResults
in interface BuildResultsSummary
public void resetTestClassResults(@NotNull List<TestClassResult> testClassResults)
ResultsSummary
resetTestClassResults
in interface ResultsSummary
resetTestClassResults
in class AbstractResultsSummary
testClassResults
- to setpublic boolean isMarkedForDeletion()
isMarkedForDeletion
in interface ImmutableDeletable
public void setMarkedForDeletion(boolean markedForDeletion)
setMarkedForDeletion
in interface Deletable
@NotNull public String getFullPlanName()
getFullPlanName
in interface ImmutableResultsSummary
@NotNull public String getPlanName()
getPlanName
in interface ImmutableResultsSummary
getPlanName
in class AbstractResultsSummary
public boolean isNotRunYet()
ImmutableResultsSummary
isNotRunYet
in interface ImmutableResultsSummary
@Nullable public ExtraBuildResultsData getExtraBuildResultsData()
BuildResultsSummary
ExtraBuildResultsData
getExtraBuildResultsData
in interface BuildResultsSummary
public int hashCode()
hashCode
in class BaseResultSummary
public int compareTo(ImmutableResultsSummary obj)
compareTo
in interface Comparable<ImmutableResultsSummary>
compareTo
in class BaseResultSummary
public boolean equals(Object object)
equals
in class BaseResultSummary
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.