|
|||||||||
| 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.util.List<SArtifactDependency> |
getArtifactDependencies()
Returns the artifact dependencies of this build. |
BuildArtifacts |
getArtifacts(BuildArtifactsViewMode mode)
Returns accessor for build artifacts. |
java.io.File |
getArtifactsDirectory()
Deprecated. use getArtifacts(BuildArtifactsViewMode) to ensure all permissions are checked |
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.Map<java.lang.String,java.lang.String> |
getBuildOwnParameters()
Deprecated. Use ParametersSupport |
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) Ordering: last detected modifications goes first in the list |
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. |
java.lang.String |
getFirstInternalError()
Returns the first internal error in a build, or null. |
java.lang.String |
getFirstInternalErrorMessage()
Returns the error message associated with the first internal error, or null |
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. |
java.util.Date |
getQueuedDate()
Returns the date when the build was added to queue. |
java.lang.String |
getRawBuildNumber()
Returns raw build number (i.e. |
java.util.Collection<Issue> |
getRelatedIssues()
Returns the collection of related issues (e.g. |
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<VcsRootInstanceEntry> |
getVcsRootEntries()
Returns vcs roots with checkout rules for the build start moment. |
boolean |
isArtifactsExists()
Returns true if this build has artifacts. |
boolean |
isInternalError()
Returns whether this build failed because of internal error (infranstructural error not related to build script). |
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. |
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, getCompilationErrorMessages, getDuration, getFinishDate, getFullName, getLogMessages, getProjectId, getStartDate, getStatusDescriptor, getTestMessages, isFinished, isPersonal |
| Methods inherited from interface jetbrains.buildServer.serverSide.BuildPromotionOwner |
|---|
getBuildPromotion, getSequenceBuild |
| Methods inherited from interface jetbrains.buildServer.serverSide.ParametersSupport |
|---|
getParametersProvider |
| Method Detail |
|---|
java.io.File getArtifactsDirectory()
getArtifacts(BuildArtifactsViewMode) to ensure all permissions are checked
ArtifactsGuard for the period of their processing.
BuildTypeNotFoundException - if build configuration of the build does not exist anymore
@NotNull
BuildArtifacts getArtifacts(@NotNull
BuildArtifactsViewMode mode)
mode - view mode to see artifacts
@NotNull java.util.List<SArtifactDependency> getArtifactDependencies()
boolean isArtifactsExists()
jetbrains.buildServer.ArtifactsConstants.TEAMCITY_ARTIFACTS_DIRboolean isResponsibleNeeded()
@NotNull BuildLog getBuildLog()
@NotNull ShortStatistics getShortStatistics()
getBuildStatistics(jetbrains.buildServer.serverSide.BuildStatisticsOptions) 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<VcsRootInstanceEntry> 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()
getValueResolver in interface ParametersSupport@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()
@NotNull java.util.Collection<Issue> getRelatedIssues()
SVcsModification.getRelatedIssues()@NotNull @Deprecated java.util.Map<java.lang.String,java.lang.String> getBuildOwnParameters()
ParametersSupport
java.lang.String getRawBuildNumber()
Build.getBuildNumber() method which will return build number with all unresolved parameters replaced with ???.
boolean isInternalError()
@Nullable java.lang.String getFirstInternalError()
@Nullable java.lang.String getFirstInternalErrorMessage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||