public class BuildQueryOptions
extends java.lang.Object
Constructor and Description |
---|
BuildQueryOptions() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAgentName() |
int |
getAgentTypeId() |
java.lang.String |
getBranch() |
java.lang.String |
getBuildTypeId() |
java.util.Set<java.lang.String> |
getBuildTypeIds() |
User |
getOwner() |
java.lang.Boolean |
getPinStatus() |
java.lang.String |
getTagName() |
User |
getTagOwner() |
boolean |
isIncludeCanceled() |
boolean |
isIncludePersonal() |
boolean |
isIncludeRunning() |
boolean |
isMatchAllBranches() |
boolean |
isOrderByChanges() |
BuildQueryOptions |
setAgent(SBuildAgent agent)
Set agent to return only builds executed by the specified agent.
|
BuildQueryOptions |
setAgentName(java.lang.String agentName)
Set to filter builds by agents with specified name.
|
BuildQueryOptions |
setAgentTypeId(int agentTypeId)
Set to filter builds by agent type, see
SBuildAgent.getAgentTypeId() |
BuildQueryOptions |
setBranch(java.lang.String branch)
Only return builds with specified branch.
|
BuildQueryOptions |
setBuildTypeId(java.lang.String buildTypeId)
Only return builds from the build type with the specified internal id
|
BuildQueryOptions |
setBuildTypeIds(java.util.Collection<java.lang.String> buildTypeIds)
Only return builds from build types with the specified internal ids.
|
BuildQueryOptions |
setIncludeCanceled(boolean includeCanceled) |
BuildQueryOptions |
setIncludePersonal(boolean includePersonal,
User owner) |
BuildQueryOptions |
setIncludeRunning(boolean includeRunning) |
BuildQueryOptions |
setMatchAllBranches(boolean matchAllBranches) |
BuildQueryOptions |
setOrderByChanges(boolean orderByChanges) |
BuildQueryOptions |
setPinStatus(java.lang.Boolean pinStatus)
Sets pin status filter.
|
BuildQueryOptions |
setTagName(java.lang.String tagName,
User tagOwner)
Set tag name to return only builds with specified tag.
|
@NotNull public BuildQueryOptions setBuildTypeId(@NotNull java.lang.String buildTypeId)
buildTypeId
- internal id of a build configuration@Nullable public java.lang.String getBuildTypeId()
public BuildQueryOptions setBuildTypeIds(@NotNull java.util.Collection<java.lang.String> buildTypeIds)
buildTypeIds
- internal ids of build types@Nullable public java.util.Set<java.lang.String> getBuildTypeIds()
@NotNull public BuildQueryOptions setBranch(@NotNull java.lang.String branch)
Branch.DEFAULT_BRANCH_NAME
constant for builds from default branch.
By default only builds from default branch are returned (unless setMatchAllBranches(boolean)
is set to true).branch
- a particular branch to return builds from@Nullable public java.lang.String getBranch()
@NotNull public BuildQueryOptions setMatchAllBranches(boolean matchAllBranches)
public boolean isMatchAllBranches()
@NotNull public BuildQueryOptions setIncludeRunning(boolean includeRunning)
public boolean isIncludeRunning()
@NotNull public BuildQueryOptions setIncludeCanceled(boolean includeCanceled)
public boolean isIncludeCanceled()
@NotNull public BuildQueryOptions setIncludePersonal(boolean includePersonal, @Nullable User owner)
public boolean isIncludePersonal()
@Nullable public User getOwner()
@NotNull public BuildQueryOptions setOrderByChanges(boolean orderByChanges)
public boolean isOrderByChanges()
@NotNull public BuildQueryOptions setAgentTypeId(int agentTypeId)
SBuildAgent.getAgentTypeId()
agentTypeId
- agent type idpublic int getAgentTypeId()
@NotNull public BuildQueryOptions setAgentName(@NotNull java.lang.String agentName)
agentName
- name of an agent@Nullable public java.lang.String getAgentName()
@NotNull public BuildQueryOptions setAgent(@NotNull SBuildAgent agent)
agent
- agent@NotNull public BuildQueryOptions setTagName(@NotNull java.lang.String tagName, @Nullable User tagOwner)
tagName
- name of the tagtagOwner
- owner of a tag, if not null then search is performed by private tags@Nullable public java.lang.String getTagName()
@Nullable public User getTagOwner()
public BuildQueryOptions setPinStatus(java.lang.Boolean pinStatus)
pinStatus
- if true, only pinned builds are returned, if false, only not pinned builds are returned, if null, builds with any pin status are returned@Nullable public java.lang.Boolean getPinStatus()