|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SBuild
Server-side instance of a build.
| Method Summary | |
|---|---|
java.util.Date |
convertToAgentTime(java.util.Date serverTime)
Converts server time to agent time by taking into account agent and server time difference. |
java.util.Date |
convertToServerTime(java.util.Date agentTime)
Converts agent time to server time by taking into account agent and server time difference. |
java.io.File |
getArtifactsDirectory()
Returns artifacts directory of this build. |
Comment |
getBuildComment()
Returns build comment |
java.lang.String |
getBuildDescription()
Returns build description set to this build explicitly or null. |
BuildLog |
getBuildLog()
Returns build log. |
java.util.List<BuildProblem> |
getBuildProblems()
Returns all problems for this build (including custom build problems defined in extensions). |
BuildStatistics |
getBuildStatistics(BuildStatisticsOptions options)
Same as getFullStatistics() but with more control of data being loaded. |
SBuildType |
getBuildType()
Returns build configuration this build belongs to. |
java.util.List<SVcsModification> |
getChanges(SelectPrevBuildPolicy policy,
boolean includeModificationsIfPreviousBuildIsAbsent)
List of modifications detected in the version control since the previous build (selected according to the specified policy) |
java.util.Date |
getClientStartDate()
Returns the timestamp when the build was started on the build agent (in agent time) |
UserSet<SUser> |
getCommitters(SelectPrevBuildPolicy policy)
Returns all users who made modifications since the previous build selected acoording to the speciifed policy. |
java.util.List<SVcsModification> |
getContainingChanges()
Returns changes in this build. |
DownloadedArtifacts |
getDownloadedArtifacts()
Returns information about artifacts downloaded by this build according to configured artifact dependencies. |
byte[] |
getFileContent(java.lang.String filePath)
Get binary content of the single file related to this build. |
BuildStatistics |
getFullStatistics()
Calculates full statistics for this build. |
java.util.List<VcsLabel> |
getLabels()
VCS labels which were made by TeamCity for the build. |
SUser |
getOwner()
If this build is personal one, returns the owner of this build. |
DownloadedArtifacts |
getProvidedArtifacts()
Returns information about provided artifacts, i.e. artifacts that were downloaded from this build by other builds by artifact dependencies. |
java.util.Date |
getQueuedDate()
Returns the date when the build was added to queue. |
java.lang.String |
getRequestor()
Deprecated. see getTriggeredBy() |
java.util.List<BuildRevision> |
getRevisions()
List of all revisions which were used for the build instance |
java.util.Date |
getServerStartDate()
Returns the timestamp when the build was removed from the queue. |
ShortStatistics |
getShortStatistics()
Calculates short statistics for this build. |
java.util.List<java.lang.String> |
getTags()
Returns list of tags for this build |
TriggeredBy |
getTriggeredBy()
Returns details about how this build was triggered. |
ValueResolver |
getValueResolver()
Returns build-aware value resolver to be used to resolve values based on the build's properties. |
java.util.List<VcsRootEntry> |
getVcsRootEntries()
Returns vcs roots with checkout rules for the build start moment. |
boolean |
isArtifactsExists()
Returns true if this build has artifacts |
boolean |
isOutOfChangesSequence()
Returns true if there is a build started before but having more recent changes then this build. |
boolean |
isPinned()
Returns true if this build is pinned |
boolean |
isResponsibleNeeded()
Always returns false for personal and/or cancelled builds. |
boolean |
isStartedOnAgent()
Returns true if this build was started on agent. |
boolean |
isUsedByOtherBuilds()
Returns true if this build is used by other builds, i.e. there are dependencies by sources on this build or artifacts of this build were downloaded by other builds. |
void |
setBuildComment(User user,
java.lang.String comment)
Sets the comment for the build |
void |
setTags(java.util.List<java.lang.String> tags)
Deprecated. Use setTags(User, List) |
void |
setTags(User user,
java.util.List<java.lang.String> tags)
Sets tags for this build |
void |
visitBuildProblems(BuildProblemsVisitor visitor)
Visit all problems of this build (including custom build problems defined in extensions). |
| Methods inherited from interface jetbrains.buildServer.Build |
|---|
getAgentName, getBuildId, getBuildNumber, getBuildStatus, getBuildTypeId, getBuildTypeName, getCanceledInfo, getDuration, getFinishDate, getFullName, getLogMessages, getProjectId, getStartDate, getStatusDescriptor, getTestMessages, isFinished, isPersonal |
| Methods inherited from interface jetbrains.buildServer.serverSide.BuildPromotionOwner |
|---|
getBuildPromotion, getSequenceBuild |
| Method Detail |
|---|
java.io.File getArtifactsDirectory()
ArtifactsGuard for the period of their processing.
boolean isArtifactsExists()
boolean isResponsibleNeeded()
@NotNull BuildLog getBuildLog()
@NotNull ShortStatistics getShortStatistics()
getFullStatistics() method.
@NotNull BuildStatistics getFullStatistics()
getBuildStatistics(BuildStatisticsOptions) instead.
@NotNull
BuildStatistics getBuildStatistics(@NotNull
BuildStatisticsOptions options)
getFullStatistics() but with more control of data being loaded.
options - options
@Nullable SUser getOwner()
Build.isPersonal()@Nullable java.lang.String getRequestor()
getTriggeredBy()
TriggeredBy getTriggeredBy()
@Nullable SBuildType getBuildType()
getBuildType in interface Build@NotNull DownloadedArtifacts getDownloadedArtifacts()
@NotNull DownloadedArtifacts getProvidedArtifacts()
boolean isUsedByOtherBuilds()
@NotNull java.util.List<SVcsModification> getContainingChanges()
Build
getContainingChanges in interface Build
@NotNull
java.util.List<SVcsModification> getChanges(SelectPrevBuildPolicy policy,
boolean includeModificationsIfPreviousBuildIsAbsent)
Build
getChanges in interface Buildpolicy - 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.
UserSet<SUser> getCommitters(SelectPrevBuildPolicy policy)
Build
getCommitters in interface Buildpolicy - 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 buildboolean isOutOfChangesSequence()
java.util.List<java.lang.String> getTags()
void setTags(java.util.List<java.lang.String> tags)
setTags(User, List)
tags - tags to set
void setTags(User user,
java.util.List<java.lang.String> tags)
user - user who set tagstags - tags to set
@NotNull
byte[] getFileContent(java.lang.String filePath)
throws VcsException
filePath - - relative file path regarding to the project root,
"checkout root" from vcs root should not be included
VcsException - if some problem occurred while getting file content from the source control repository.java.util.List<BuildRevision> getRevisions()
java.util.List<VcsLabel> getLabels()
@NotNull java.util.Date getQueuedDate()
@NotNull java.util.Date getServerStartDate()
java.util.List<VcsRootEntry> getVcsRootEntries()
@Nullable java.util.Date getClientStartDate()
boolean isStartedOnAgent()
@NotNull
java.util.Date convertToServerTime(@NotNull
java.util.Date agentTime)
agentTime - time on agent
@NotNull
java.util.Date convertToAgentTime(@NotNull
java.util.Date serverTime)
serverTime - server time to convert
@Nullable java.lang.String getBuildDescription()
@NotNull ValueResolver getValueResolver()
@Nullable Comment getBuildComment()
void setBuildComment(@Nullable
User user,
@Nullable
java.lang.String comment)
user - user who sets the commentcomment - text of the commentboolean isPinned()
void visitBuildProblems(@NotNull
BuildProblemsVisitor visitor)
visitor - visitor@NotNull java.util.List<BuildProblem> getBuildProblems()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||