public class BuildLookupService
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LAST_FINISHED_FINDER
Last finished build finder name
|
static java.lang.String |
LAST_PINNED_FINDER
Last pinned build finder name
|
Constructor and Description |
---|
BuildLookupService(SBuildServer server,
RevisionRuleBuildFinders buildFinders) |
Modifier and Type | Method and Description |
---|---|
SBuild |
findBuild(javax.servlet.http.HttpServletRequest request)
Finds build information for given request, using parameters buildTypeId, buildId, buildNumber.
|
SBuild |
getBuild(SBuildType buildType,
RevisionRule rule,
javax.servlet.http.HttpServletRequest request)
Get a build from given RevisionRule
|
BuildFinder |
getFinder(java.lang.String name) |
@NonNls public static final java.lang.String LAST_FINISHED_FINDER
@NonNls public static final java.lang.String LAST_PINNED_FINDER
public BuildLookupService(@NotNull SBuildServer server, @NotNull RevisionRuleBuildFinders buildFinders)
@Nullable public SBuild getBuild(@NotNull SBuildType buildType, RevisionRule rule, javax.servlet.http.HttpServletRequest request)
buildType
- build configuration to find build inrule
- corresponding revision rulerequest
- http servlet requestpublic BuildFinder getFinder(java.lang.String name)
@NotNull public SBuild findBuild(javax.servlet.http.HttpServletRequest request) throws BuildNotFoundException, BuildTypeNotFoundException
page.html/buildTypeId/bt453/buildId/(lastFinished|lastSuccessful|lastPinned) page.html/buildTypeId/bt453/buildNumber/345.32 page.html/buildId/345 page.html?buildTypeId=bt453&buildId=(lastFinished|lastSuccessful|lastPinned) page.html?buildId=345
request
- http requestBuildNotFoundException
- Was able to find build type, but cannot find corresponding buildBuildTypeNotFoundException
- Unable to find neither build nor build type