|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BuildResultsSummaryDao
Method Summary | ||
---|---|---|
int |
countBuildResultsSummaries(long agentId,
BuildState buildState)
Count how many build results match the agent & optional build state |
|
int |
countBuildResultsSummaries(java.lang.String planKey)
|
|
|
findBuildResultsSummaries(BuildResultsSummaryCriteria criteria)
Searches for BuildResultsSummary objects given a BuildResultsSummaryCriteria |
|
java.util.List<ExtendedBuildResultsSummary> |
findBuildResultsSummariesByJiraIssues(java.util.List<java.lang.String> issueKeys)
|
|
java.util.List<ExtendedBuildResultsSummary> |
findBuildResultsSummariesByProjectKey(java.lang.String projectKey)
This seems to be the Jira project key not the Bamboo Project key |
|
java.util.List<Pair<ArtifactLink,BuildResultsSummary>> |
findBuildResultsWithArtifacts(java.lang.String planKey)
Find all build results which have matching artifacts. |
|
java.util.List<ExtendedBuildResultsSummary> |
findBuildsForImageConfiguration(java.lang.String planKey,
ElasticImageConfiguration elasticImageConfiguration,
BuildState buildState,
int maxResults)
Searcher for builds of an image |
|
ExtendedBuildResultsSummary |
findFirstBuildResultWithBuildStateAfter(java.lang.String buildKey,
int buildNumber,
BuildState buildState)
Finds the last successful ExtendedBuildResultsSummary after buildNumber |
|
ExtendedBuildResultsSummary |
findFirstBuildResultWithBuildStateBetween(java.lang.String buildKey,
int lowerBuildNumber,
int upperBuildNumber,
BuildState buildState)
Returns the first build that matches BuildState between the given build number range
Note that this function is inclusive of the upper and lower bound |
|
ExtendedBuildResultsSummary |
findLastBuildResultBefore(java.lang.String buildKey,
int buildNumber)
Finds the last successful or failed ExtendedBuildResultsSummary before buildNumber |
|
ExtendedBuildResultsSummary |
findLastBuildResultWithBuildStateBefore(java.lang.String buildKey,
int buildNumber,
BuildState buildState)
Finds the last ExtendedBuildResultsSummary before buildNumber with BuildState |
|
java.util.Collection<BuildResultsSummary> |
getAllPendingBuildResultSummaries()
Returns all the BuildResultsSummary in a BuildState.PENDING state |
|
BuildResultsSummary |
getBreakingBuild(BuildResultsSummary summary)
|
|
ExtendedBuildResultsSummary |
getBuildResultsSummary(PlanResultKey planResultKey)
|
|
ExtendedBuildResultsSummary |
getBuildResultsSummaryByBuildKeyAndBuildNumber(java.lang.String buildKey,
int buildNumber)
|
|
BuildResultsSummary |
getFirstBuildSummary(Build build)
Returns the first available BuildResultsSummary for the given Build |
|
BuildResultsSummary |
getFixingBuild(BuildResultsSummary summary)
Returns the first successful BuildResultsSummary for given BuildResultsSummary . |
|
java.util.List<LinkedJiraIssue> |
getJiraIssuesForBuild(Build build)
Retrieves a list of LinkedJiraIssue that are linked to the given build. |
|
java.util.List<LinkedJiraIssue> |
getJiraIssuesForBuildResults(java.util.List<BuildResultsSummary> buildResults)
Retrieves a list of LinkedJiraIssue linked to the given build result summaries |
|
ExtendedBuildResultsSummary |
getLastBuildSummary(java.lang.String planKey)
Returns the latest ExtendedBuildResultsSummary for the build represented by planKey |
|
java.util.List<ExtendedBuildResultsSummary> |
getNeighbouringSummaries(Build build,
int currentBuildNumber)
|
|
long |
getNumberOfResults(Build build)
Returns the number of results available for the given Build |
|
void |
removeBuildResultsSummary(BuildResultsSummary buildResultsSummary)
Removes the passed build result summary |
|
long |
scrollBuildResultSummariesForExport(java.lang.String buildKey,
com.google.common.base.Function<ExtendedBuildResultsSummary,java.lang.Void> function)
Scroll through and execute function for each of BuildResultsSummary Objects passed to function are not fully initialized. |
|
long |
scrollJiraIssuesForExport(com.google.common.base.Function<LinkedJiraIssue,java.lang.Void> function)
Scroll through and execute function for each of LinkedJiraIssue Objects passed to function are not fully initialized. |
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao |
---|
findById |
Methods inherited from interface bucket.core.persistence.ObjectDao |
---|
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw |
Method Detail |
---|
@NotNull java.util.Collection<BuildResultsSummary> getAllPendingBuildResultSummaries()
BuildResultsSummary
in a BuildState.PENDING
state
@Nullable ExtendedBuildResultsSummary getBuildResultsSummaryByBuildKeyAndBuildNumber(java.lang.String buildKey, int buildNumber)
@Nullable ExtendedBuildResultsSummary getBuildResultsSummary(@NotNull PlanResultKey planResultKey)
@Nullable BuildResultsSummary getFirstBuildSummary(Build build)
BuildResultsSummary
for the given Build
build
-
@Nullable ExtendedBuildResultsSummary getLastBuildSummary(java.lang.String planKey)
ExtendedBuildResultsSummary
for the build represented by planKey
planKey
-
long getNumberOfResults(Build build)
Build
build
-
@NotNull java.util.List<ExtendedBuildResultsSummary> getNeighbouringSummaries(Build build, int currentBuildNumber)
@Nullable BuildResultsSummary getBreakingBuild(BuildResultsSummary summary)
@Nullable BuildResultsSummary getFixingBuild(BuildResultsSummary summary)
BuildResultsSummary
for given BuildResultsSummary
.
The input build is returned if it is successful.
summary
-
@NotNull <T extends BuildResultsSummary> java.util.List<T> findBuildResultsSummaries(@NotNull BuildResultsSummaryCriteria criteria)
BuildResultsSummary
objects given a BuildResultsSummaryCriteria
criteria
- @NotNull
List
of ExtendedBuildResultsSummary
int countBuildResultsSummaries(long agentId, @Nullable BuildState buildState)
agentId
- buildState
- - can be null.
int countBuildResultsSummaries(@Nullable java.lang.String planKey)
@NotNull java.util.List<ExtendedBuildResultsSummary> findBuildResultsSummariesByJiraIssues(@Nullable java.util.List<java.lang.String> issueKeys)
void removeBuildResultsSummary(BuildResultsSummary buildResultsSummary)
buildResultsSummary
- - @NotNull@NotNull java.util.List<ExtendedBuildResultsSummary> findBuildResultsSummariesByProjectKey(@Nullable java.lang.String projectKey)
projectKey
-
@NotNull java.util.List<LinkedJiraIssue> getJiraIssuesForBuildResults(@NotNull java.util.List<BuildResultsSummary> buildResults)
LinkedJiraIssue
linked to the given build result summaries
buildResults
-
@NotNull java.util.List<LinkedJiraIssue> getJiraIssuesForBuild(@NotNull Build build)
LinkedJiraIssue
that are linked to the given build.
build
-
@NotNull java.util.List<ExtendedBuildResultsSummary> findBuildsForImageConfiguration(java.lang.String planKey, ElasticImageConfiguration elasticImageConfiguration, @Nullable BuildState buildState, int maxResults)
planKey
- elasticImageConfiguration
- buildState
- @NullablemaxResults
-
@Nullable ExtendedBuildResultsSummary findLastBuildResultBefore(@NotNull java.lang.String buildKey, int buildNumber)
ExtendedBuildResultsSummary
before buildNumber
buildKey
- buildNumber
-
@Nullable ExtendedBuildResultsSummary findFirstBuildResultWithBuildStateAfter(@NotNull java.lang.String buildKey, int buildNumber, @NotNull BuildState buildState)
ExtendedBuildResultsSummary
after buildNumber
buildKey
- buildNumber
-
ExtendedBuildResultsSummary findLastBuildResultWithBuildStateBefore(@NotNull java.lang.String buildKey, int buildNumber, @NotNull BuildState buildState)
ExtendedBuildResultsSummary
before buildNumber with BuildState
buildKey
- buildNumber
- buildState
-
@Nullable ExtendedBuildResultsSummary findFirstBuildResultWithBuildStateBetween(@NotNull java.lang.String buildKey, int lowerBuildNumber, int upperBuildNumber, @NotNull BuildState buildState)
BuildState
between the given build number range
Note that this function is inclusive of the upper and lower bound
buildKey
- lowerBuildNumber
- upperBuildNumber
- buildState
-
java.util.List<Pair<ArtifactLink,BuildResultsSummary>> findBuildResultsWithArtifacts(java.lang.String planKey)
planKey
-
long scrollBuildResultSummariesForExport(@NotNull java.lang.String buildKey, @NotNull com.google.common.base.Function<ExtendedBuildResultsSummary,java.lang.Void> function)
function
- function to be executed on each of the BuildResultSummary
long scrollJiraIssuesForExport(@NotNull com.google.common.base.Function<LinkedJiraIssue,java.lang.Void> function)
function
- function to be executed on each of the LinkedJiraIssue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |