public interface BuildStatusService
statuses
.Modifier and Type | Method and Description |
---|---|
Page<BuildStatus> |
findAll(String commitId)
Deprecated.
in 6.7 for removal in 8.0. Please use
findAll(String, PageRequest, BuildOrder) |
Page<BuildStatus> |
findAll(String commitId,
PageRequest pageRequest,
BuildOrder orderBy)
Retrieves a page of
build statuses associated with the specified commit. |
Map<String,BuildSummary> |
getSummaries(Collection<String> commitIds)
Retrieves
summaries for the builds associated with all of the specified commits. |
BuildSummary |
getSummary(String commitId)
Retrieves a
summary of all the builds associated with the specified commit. |
void |
set(BuildStatusSetRequest request)
Sets the build status for a commit, replacing any existing status with the same
key |
@Deprecated @Nonnull Page<BuildStatus> findAll(@Nonnull String commitId)
findAll(String, PageRequest, BuildOrder)
build statuses
associated with the specified commit. By default the page
size is 100 and the order is BuildOrder.NEWEST
commitId
- the ID
of the commit to retrieve builds forAuthorisationException
- if the current user is not licensed@Nonnull Page<BuildStatus> findAll(@Nonnull String commitId, @Nonnull PageRequest pageRequest, @Nonnull BuildOrder orderBy)
build statuses
associated with the specified commit.commitId
- the ID
of the commit to retrieve builds forpageRequest
- the page to be returnedorderBy
- the field to order by in addition to descending date orderingAuthorisationException
- if the current user is not licensed@Nonnull BuildSummary getSummary(@Nonnull String commitId)
summary
of all the builds associated with the specified commit.commitId
- the ID
of the commit to retrieve a summary forstats
for all the builds associated with the commitId
.AuthorisationException
- if the current user is not licensed@Nonnull Map<String,BuildSummary> getSummaries(@Nonnull Collection<String> commitIds)
summaries
for the builds associated with all of the specified commits. If
any of the specified commits do not have builds associated with them, their ID will not be included in
the returned Map
.commit IDs
to summaries
, which can have a length smaller than
the number of specified commits if any do not have build statuses associated with them.AuthorisationException
- if the current user is not licensedgetSummary(String)
void set(@Nonnull BuildStatusSetRequest request)
key
request
- describes the build status and the commit it should be associated withAuthorisationException
- if the current user is not licensedCopyright © 2020 Atlassian. All rights reserved.