|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Build
Represents an instance of the build ever run or running at the moment. This interface provides a number of methods to work with instance of a TeamCity build on the server side or on any remote client.
| Method Summary | |
|---|---|
java.lang.String |
getAgentName()
Returns agent name where build is running or happened to run if finished. |
long |
getBuildId()
Returns buid id |
java.lang.String |
getBuildNumber()
Returns build number in the user defined format (unresolved parameters in build number will be replaced with '???'). |
Status |
getBuildStatus()
Returns current build status |
BuildType |
getBuildType()
Returns build configuration this build belongs to. |
java.lang.String |
getBuildTypeId()
Returns build configuration id |
java.lang.String |
getBuildTypeName()
Returns name of the build configuration this build belongs to. |
CanceledInfo |
getCanceledInfo()
Returns info related to interrupted build. |
java.util.List<? extends VcsModification> |
getChanges(SelectPrevBuildPolicy policy,
boolean includeModificationsIfPreviousBuildIsAbsent)
List of modifications detected in the version control since the previous build (selected according to the specified policy) Ordering: last detected modifications goes first in the list |
UserSet<? extends User> |
getCommitters(SelectPrevBuildPolicy policy)
Returns all users who made modifications since the previous build selected acoording to the speciifed policy. |
java.util.List<java.lang.String> |
getCompilationErrorMessages()
Returns compilation error messages of this build |
java.util.List<? extends VcsModification> |
getContainingChanges()
Returns changes in this build. |
long |
getDuration()
Returns current build duration in seconds. |
java.util.Date |
getFinishDate()
Returns finish timestamp for the build (server time) or null if it hasn't been finished yet. |
java.lang.String |
getFullName()
|
java.util.List<java.lang.String> |
getLogMessages(int startFromIdx,
int maxCount)
Allows to get messages logged for the build |
java.lang.String |
getProjectId()
Returns id of the project this build belongs to. |
java.util.Date |
getStartDate()
Returns timestamp when the build start command has been sent to an agent (server-time) or remove from queue time if start command has not been sent |
StatusDescriptor |
getStatusDescriptor()
Returns status descriptor of the build |
java.util.List<TestInfo> |
getTestMessages(int startFromIdx,
int maxTestsToLoad)
Retrieves information about tests failed in the build. |
boolean |
isFinished()
|
boolean |
isPersonal()
Returns if this build has been run to test personal changes |
| Method Detail |
|---|
@NotNull java.util.Date getStartDate()
java.lang.String getAgentName()
long getBuildId()
StatusDescriptor getStatusDescriptor()
java.util.List<java.lang.String> getLogMessages(int startFromIdx,
int maxCount)
startFromIdx - index of the first message to load (zero based)maxCount - messages count limit.
java.util.List<TestInfo> getTestMessages(int startFromIdx,
int maxTestsToLoad)
startFromIdx - index/order number of the first test to load (zero based)maxTestsToLoad - indicates how many tests to load, -1 to load all
java.util.List<java.lang.String> getCompilationErrorMessages()
@Nullable BuildType getBuildType()
@NotNull java.lang.String getBuildTypeId()
@NotNull java.lang.String getBuildTypeName()
@NotNull java.lang.String getFullName()
@Nullable java.lang.String getProjectId()
java.util.List<? extends VcsModification> getChanges(SelectPrevBuildPolicy policy,
boolean includeModificationsIfPreviousBuildIsAbsent)
policy - can be one of the two kinds:
SelectPrevBuildPolicy.SINCE_LAST_BUILD - all modifications made since previous running buildSelectPrevBuildPolicy.SINCE_LAST_SUCCESSFULLY_FINISHED_BUILD - all modifications made since
previous successfully finished buildincludeModificationsIfPreviousBuildIsAbsent - should the method return something if there's no previous build.
java.util.List<? extends VcsModification> getContainingChanges()
boolean isPersonal()
Status getBuildStatus()
boolean isFinished()
UserSet<? extends User> getCommitters(SelectPrevBuildPolicy policy)
policy - can be one of the two kinds:
SelectPrevBuildPolicy.SINCE_LAST_BUILD - all modifications made since previous running buildSelectPrevBuildPolicy.SINCE_LAST_SUCCESSFULLY_FINISHED_BUILD - all modifications made since
previous successfully finished buildjava.lang.String getBuildNumber()
@Nullable java.util.Date getFinishDate()
null if it hasn't been finished yet.
null if still running.CanceledInfo getCanceledInfo()
long getDuration()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||