public interface SRunningBuild extends SBuild, RunningBuild
| Modifier and Type | Method and Description |
|---|---|
void |
addBuildMessage(BuildMessage1 message)
Deprecated.
since 10.0 messages in build log should be logged via
BuildLog, see SBuild.getBuildLog() method. |
void |
addBuildMessages(java.util.List<BuildMessage1> messages)
Deprecated.
since 10.0 messages in build log should be logged via
BuildLog, see SBuild.getBuildLog() method. |
SBuildAgent |
getAgent()
Get build agent this running build is running on.
|
java.lang.String |
getAgentAccessCode()
Returns access code which can be used by agent to access server resources by HTTP.
|
int |
getAgentId() |
int |
getCompletedPercent() |
java.lang.String |
getCurrentPath()
Returns short description of current running step.
|
java.util.Date |
getLastBuildActivityTimestamp() |
java.lang.Integer |
getQueuedAgentId()
Deprecated.
use
getQueuedAgentRestrictor().
Returns id of an agent this build was queued on (when build configuration was added to queue).
Returns null if build was not queued on a specific agent. |
AgentRestrictor |
getQueuedAgentRestrictor()
Returns an agent restrictor this build was queued with (when build configuration was added to queue).
|
long |
getTimeSpentSinceLastBuildActivity()
Returns time in seconds spent since last build activity.
|
boolean |
isInterrupted()
When processing buildFinished event, returns true if build was
finished unexpectedly (for instance, killed)
|
boolean |
isProbablyHanging()
Returns true if server thinks this build has hung.
|
void |
setBuildNumber(java.lang.String newBuildNumber)
Set new value for this build build number instead of current one.
|
void |
setBuildStatus(Status status)
Deprecated.
use jetbrains.buildServer.serverSide.SBuild#addBuildProblem to fail build
and jetbrains.buildServer.serverSide.SBuild#muteBuildProblems to mark build as successful
|
void |
setInterrupted(RunningBuildState state,
User user,
java.lang.String reason)
Mark this build as interrupted.
|
void |
stop(User user,
java.lang.String comment)
Stops the build.
|
addBuildProblem, addUserBuildProblem, convertToAgentTime, convertToServerTime, getArtifactDependencies, getArtifacts, getArtifactsDirectory, getBranch, getBuildComment, getBuildDescription, getBuildFeaturesOfType, getBuildLog, getBuildOwnParameters, getBuildStatistics, getBuildType, getChanges, getClientStartDate, getClientTimeZone, getCommitters, getContainingChanges, getDownloadedArtifacts, getFailureReasons, getFileContent, getFirstInternalError, getFirstInternalErrorMessage, getFullStatistics, getLabels, getOwner, getPreviousFinished, getProvidedArtifacts, getQueuedDate, getRawBuildNumber, getRecentlyFinishedBuild, getRelatedIssues, getRevisions, getServerStartDate, getShortStatistics, getStatisticValue, getStatisticValues, getTags, getTriggeredBy, getValueResolver, getVcsRootEntries, hasBuildProblemOfType, isAgentLessBuild, isArtifactsExists, isCompositeBuild, isHasInternalArtifactsOnly, isHasRelatedIssues, isInternalError, isOutdated, isOutOfChangesSequence, isPinned, isResponsibleNeeded, isStartedOnAgent, isUsedByOtherBuilds, muteBuildProblems, setBuildComment, setTags, setTagsgetBuildPromotion, getSequenceBuildgetParametersProvidergetDurationEstimate, getDurationOvertime, getElapsedTime, getEstimationForTimeLeftgetAgentName, getBuildId, getBuildNumber, getBuildStatus, getBuildTypeExternalId, getBuildTypeId, getBuildTypeName, getCanceledInfo, getCompilationErrorMessages, getDuration, getFinishDate, getFullName, getLogMessages, getProjectExternalId, getProjectId, getStartDate, getStatusDescriptor, getTestMessages, isFinished, isPersonaljava.lang.String getCurrentPath()
@NotNull SBuildAgent getAgent()
int getAgentId()
@Deprecated @Nullable java.lang.Integer getQueuedAgentId()
getQueuedAgentRestrictor().
Returns id of an agent this build was queued on (when build configuration was added to queue).
Returns null if build was not queued on a specific agent.@Nullable AgentRestrictor getQueuedAgentRestrictor()
boolean isInterrupted()
int getCompletedPercent()
void addBuildMessages(@NotNull
java.util.List<BuildMessage1> messages)
BuildLog, see SBuild.getBuildLog() method.messages - new build messages.void addBuildMessage(@NotNull
BuildMessage1 message)
BuildLog, see SBuild.getBuildLog() method.void setBuildNumber(@NotNull
java.lang.String newBuildNumber)
newBuildNumber - new value for this build build numbervoid setBuildStatus(Status status)
status - new status of the buildvoid setInterrupted(@NotNull
RunningBuildState state,
@Nullable
User user,
@Nullable
java.lang.String reason)
state - running build stateuser - user who initiated interruption or nullreason - reason why interruption initiated or nulljava.lang.String getAgentAccessCode()
boolean isProbablyHanging()
java.util.Date getLastBuildActivityTimestamp()
long getTimeSpentSinceLastBuildActivity()
void stop(@Nullable
User user,
@Nullable
java.lang.String comment)
user - user who stopped build or nullcomment - comment for the action or null