|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SRunningBuild
Running build interface, contains information specific for running build.
| Method Summary | |
|---|---|
void |
addBuildMessage(BuildMessage1 message)
Adds new message to the build. |
void |
addBuildMessages(java.util.List<BuildMessage1> messages)
Adds new messages to the build. |
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 |
getCompletedPercent()
|
java.lang.String |
getCurrentPath()
Returns short description of current running step. |
java.util.Date |
getLastBuildActivityTimestamp()
|
java.lang.Integer |
getQueuedAgentId()
Returns id of an agent this build was queued on (when build configuration was added to queue). |
int |
getSignature()
Signature is used to identify builds with the same results. |
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 |
isOutdated()
Returns true if this build is outdated. |
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)
Set current status of the running build. |
void |
setInterrupted(RunningBuildState state,
User user,
java.lang.String reason)
Mark this build as interrupted. |
void |
setSignature(int newSignatureValue)
This method should be used in form setSignature(getSignature() + n)
to update build signature upon some reason |
void |
stop(User user,
java.lang.String comment)
Stops the build. |
| Methods inherited from interface jetbrains.buildServer.serverSide.BuildPromotionOwner |
|---|
getBuildPromotion, getSequenceBuild |
| Methods inherited from interface jetbrains.buildServer.serverSide.ParametersSupport |
|---|
getParametersProvider |
| Methods inherited from interface jetbrains.buildServer.RunningBuild |
|---|
getDurationEstimate, getDurationOvertime, getElapsedTime, getEstimationForTimeLeft |
| 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 |
| Method Detail |
|---|
java.lang.String getCurrentPath()
@NotNull SBuildAgent getAgent()
@Nullable java.lang.Integer getQueuedAgentId()
boolean isInterrupted()
int getSignature()
void setSignature(int newSignatureValue)
setSignature(getSignature() + n)
to update build signature upon some reason
newSignatureValue - new signature value for the buildgetSignature()int getCompletedPercent()
void addBuildMessages(@NotNull
java.util.List<BuildMessage1> messages)
message - new build message.
void addBuildMessage(@NotNull
BuildMessage1 message)
addBuildMessages(java.util.List) method.
void setBuildNumber(@NotNull
java.lang.String newBuildNumber)
newBuildNumber - new value for this build build numbervoid setBuildStatus(Status status)
status - new status of the build
void 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()
boolean isOutdated()
java.util.Date getLastBuildActivityTimestamp()
long getTimeSpentSinceLastBuildActivity()
void stop(User user,
java.lang.String comment)
user - user who stopped build or nullcomment - comment for the action or null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||