void
|
calculateAndSetDeltaState(ResultsSummary resultsSummary)
Figures out the delta state for the provided results summary, if a 'fixing' build
will also calculate how long it took to fix.
|
int
|
countResultsWithState(PlanKey planKey, int lowerBuildNumber, int upperBuildNumber, BuildState buildState)
Counts results with a given state in a given build number range for plan.
|
<T extends ResultsSummary>
T
|
createResultsSummary(BuildContext buildContext, Class<T> aClass)
|
List<ChainResultsSummary>
|
findChainResultsWithJobLabelled(ResultsSummaryCriteria criteria, List<Label> labels)
Searches through all chains to find any that have jobs which match the given labels.
|
@Nullable
ResultsSummary
|
findFirstFailedBuildResultAfter(String buildKey, int buildNumber)
|
@Nullable
ResultsSummary
|
findFirstFailedBuildResultBetween(Plan build, int lowerBuildNumber, int upperBuildNumber)
Finds the first failed build between the upper and lower build numbers inclusively.
|
@Nullable
<T extends ResultsSummary>
T
|
findFirstResultAfter(PlanResultKey planResultKey, Class<T> aClass)
Finds the first ResultsSummary after a specified build which is either FINISHED or can be FINISHED, i.e.
|
@Nullable
ResultsSummary
|
findFirstSuccessfulBuildResultAfter(String buildKey, int buildNumber)
|
@NotNull
List<LinkedJiraIssue>
|
findJiraIssuesForPlan(Plan plan)
|
@NotNull
List<LinkedJiraIssue>
|
findJiraIssuesForResults(List<ResultsSummary> buildResults)
Retrieves a list of LinkedJiraIssue linked to the given build result summaries
|
@Nullable
ResultsSummary
|
findLastBuildResultBefore(String buildKey, int buildNumber)
|
@Nullable
<T extends ResultsSummary>
T
|
findLastBuildResultBeforeWithTests(PlanResultKey planResultKey, Class<T> aClass)
|
@Nullable
ResultsSummary
|
findLastFailingBuildResultBefore(Plan build, int buildNumber)
|
@Nullable
<T extends ResultsSummary>
T
|
findLastResultBefore(PlanResultKey planResultKey, Class<T> aClass)
Finds the last successful or failing ResultsSummary before planResultKey.getBuildNumber
|
@Nullable
<T extends ResultsSummary>
T
|
findLastResultSummaryWithState(PlanKey planKey, BuildState buildState, Class<T> aClass)
|
@Nullable
ResultsSummary
|
findLastSuccessfulBuildResultBefore(Plan build, int buildNumber)
|
@NotNull
List<? extends ResultsSummary>
|
findResultsSummariesByJiraIssues(List<String> issueKeys)
Finds a list of results which are linked to the given issue keys
|
@NotNull
List<? extends ResultsSummary>
|
findResultsSummariesByProjectKey(String projectKey)
Provide a list of results which are linked to any issues under the given jira project key
|
@NotNull
<T extends ResultsSummary>
Collection<T>
|
getAllActiveResultSummariesForPlan(PlanKey planKey, Class<T> aClass)
|
@NotNull
<T extends ResultsSummary>
Collection<T>
|
getAllBuildResultSummariesInUnknownState(Class<T> aClass)
|
@NotNull
List<BuildResultsSummary>
|
getAllBuildResultsSummariesForAgent(Long agentId)
|
@NotNull
<T extends ResultsSummary>
Collection<T>
|
getAllInProgressResultSummaries(Class<T> aClass)
|
@NotNull
<T extends ResultsSummary>
Collection<T>
|
getAllPendingResultSummaries(Class<T> aClass)
|
@NotNull
<T extends ResultsSummary>
Collection<T>
|
getAllQueuedResultSummaries(Class<T> aClass)
|
@NotNull
@Deprecated
<T extends ResultsSummary>
List<T>
|
getAllResultSummariesForPlan(Plan plan)
|
long
|
getAveragePlanExecutionDuration(Plan plan, int numberOfResults)
Get average duration from n last results summaries in finished state for a plan.
|
@Nullable
ResultsSummary
|
getBreakingBuild(ResultsSummary buildResultsSummary)
Returns the first failing build after the last successful build.
|
@Nullable
ChainStageResult
|
getChainStageResultById(Long id)
|
@NotNull
List<UnassociatedCommit>
|
getCommitsForUser(String username, int max)
Retrieve a list of recent Commits for the given user.
|
@NotNull
<T extends ResultsSummary>
List<T>
|
getFinalizedResultSummariesForPlan(PlanKey planKey, Class<T> aClass, int firstResult, int maxResults)
|
@Nullable
ResultsSummary
|
getFixingBuild(ResultsSummary buildResultsSummary)
|
@NotNull
@Deprecated
List<BuildResultsSummary>
|
getLastNBuildResultsSummaries(Buildable buildable, int numberOfResults)
This method is deprecated.
since 2.7 use getLastNResultsSummaries instead
|
@NotNull
List<ResultsSummary>
|
getLastNFailedResultsSummaries(Plan build, int numberOfResults)
Returns the most recent n failed build results.
|
@NotNull
List<ResultsSummary>
|
getLastNResultsSummaries(Plan plan, int numberOfResults)
Provides a list of the latest N results summaries for the given plan, newest first.
|
<T extends ResultsSummary>
T
|
getLastResultsSummary(String planKey, Class<T> aClass)
|
@Nullable
ResultsSummary
|
getLastSuccessfulResultSummary(PlanKey planKey)
|
List<ResultsSummary>
|
getLatestFailedResultSummaries()
Retrieve list of failed build results (for all builds) in the last few days (number of days is specified in the
DAO) This method is filtered to remove results that user doesn't have permission to see
|
List<ResultsSummary>
|
getLatestResultSummaries()
Retrieve list of build results (for all builds) in the last few days (number of days is specified in the DAO)
This method is filtered to remove results that user doesn't have permission to see
|
@NotNull
List<BuildResultsSummary>
|
getLatestSummariesForAgent(Long agentId, int maxCount)
Retrieves n last build summaries for agent.
|
@NotNull
List<BuildResultsSummary>
|
getLatestSummariesForAgent(Long agentId, Date fromDate)
Retrieves build summaries for agent id not older than certain date.
|
@Nullable
BuildResultsSummary
|
getLatestSummaryForAgent(long agentId)
|
@NotNull
List<ResultsSummary>
|
getNeighbouringSummaries(Plan plan, int buildNumber)
Returns all the ResultsSummary objects that matches the passed build numbers
|
@NotNull
List<ResultsSummary>
|
getNeighbouringSummaries(ImmutablePlan plan, int buildNumber, int neighbouringSummariesMaxCount)
Returns all the ResultsSummary objects that matches the passed build numbers
|
int
|
getNumberOfConcurrentlyRunningBuilds(PlanKey planKey)
Gets the number of concurrently running builds
|
long
|
getNumberOfFinalizedResults(Plan plan)
|
long
|
getNumberOfFinishedResults(Plan plan)
|
@Nullable
ChainResultsSummary
|
getParentResultSummary(ResultsSummary resultsSummary)
|
@NotNull
<T extends ResultsSummary>
List<T>
|
getResultSummaries(ResultsSummaryCriteria criteria)
Generic search to find any result summaries bases on the criteria provided.
|
@NotNull
<T extends ResultsSummary>
List<ResultWithPlanInfo<T>>
|
getResultSummariesByChangeSetId(String changeSetId, Class<T> discriminator)
Get a list of all build results containing a commit with the given change set ID.
|
@NotNull
<T extends ResultsSummary>
List<T>
|
getResultSummariesForPlan(ImmutablePlan plan, int firstResult, int maxResults)
|
@NotNull
<T extends ResultsSummary>
List<T>
|
getResultSummariesForPlanByLifeCycleState(Plan plan, LifeCycleState lifeCycleState, int firstResult, int maxResults)
|
@Nullable
ResultsSummary
|
getResultsSummary(long id)
Lookup the ResultsSummary by id
|
@Nullable
<T extends ResultsSummary>
T
|
getResultsSummary(PlanResultKey planResultKey, Class<T> aClass)
|
@Nullable
<T extends ResultsSummary>
T
|
getResultsSummary(PlanResultKey planResultKey, Class<T> aClass, ResultDataRead dataRead)
|
@Nullable
ResultsSummary
|
getResultsSummary(PlanResultKey planResultKey, ResultDataRead dataRead)
|
@Nullable
ResultsSummary
|
getResultsSummary(PlanResultKey planResultKey)
|
@Nullable
ChainStageResult
|
getStageForResult(ResultsSummary resultsSummary)
|
void
|
logSubstitutedVariables(BuildContext buildContext, ResultsSummary resultsSummary)
Adds variable substitution result to ResultsSummary
This method logs substitution after it was performed and will use only REALLY substituted values
|
void
|
logVariablesForSubstitution(BuildContext buildContext, ResultsSummary resultsSummary)
Adds expected variable substitution to ResultsSummary
This method logs substitution before build was performed and is used basically to log substitution against plan result
as there will be no possibility to track it afterwards
|
int
|
markResultSummariesForDeletion(PlanKey planKey)
Mass update of all ResultsSummary records in the database related to a Plan identified by planKey.
|
@Deprecated
void
|
moveResultSummaries(PlanKey oldPlanKey, PlanKey newPlanKey)
|
void
|
moveResultSummaries(Plan newParentPlan, PlanKey oldPlanKey, PlanKey newPlanKey)
Reassigns plan key ResultsSummaries associated with selected plan key.
|
int
|
removeAllOrphanedResultSummaries()
|
void
|
removeArtifacts(Plan plan, int buildNumber)
Remove any artifacts stored for this plan result
|
void
|
removeBuildLogs(Plan plan, int buildNumber)
Remove any build logs stored for this plan result
|
void
|
removeMatchingArtifacts(ResultsSummary resultsSummary, Predicate<ArtifactLink> predicate)
Remove artifacts from results summary that match a predicate.
|
void
|
removeResultSummary(Plan plan, int buildNumber)
Remove plan result summary and all associated objects.
|
int
|
removeResultsSummariesForPlan(Plan plan)
Remove all resultSummary objects for the given plan.
|
void
|
saveResultSummary(ResultsSummary resultsSummary)
|
long
|
scrollResultSummaries(String buildKey, Function<ResultsSummary, Void> function)
Scroll through and execute function for each of BuildResultsSummary
Objects passed to function are not fully initialized.
|
long
|
scrollResultSummaries(String buildKey, ResultDataRead resultDataRead, Function<ResultsSummary, Void> function)
Scroll through and execute function for each of BuildResultsSummary
Objects passed to function are not fully initialized.
|
void
|
updateCancelledDetails(ResultsSummary resultsSummary)
Marks ResultSummary as cancelled
|
void
|
updateLifeCycleState(BuildContext buildContext, LifeCycleState lifeCycleState, BuildState buildState)
|
void
|
updateLifeCycleState(ResultsSummary resultsSummary, LifeCycleState lifeCycleState, BuildState buildState)
|
void
|
updatePlanCompletedDate(ChainResultsSummary resultsSummary, Date completionDate)
|
void
|
updateProcessingDuration(ChainResultsSummary resultSummary)
|