@ThreadSafe public interface CurrentlyBuilding extends ExecutionStatus
BuildContext
that'd being built and the BuildAgent
id it's related toModifier and Type | Interface and Description |
---|---|
static interface |
CurrentlyBuilding.ExecutableInfo
Executable information.
|
Modifier and Type | Method and Description |
---|---|
Long |
getBuildAgentId()
The current build agent id iff the build is current building on an agent.
|
BuildCancelledDetails |
getBuildCancelledDetails() |
BuildHungDetails |
getBuildHangDetails()
Details about the build if it hung.
|
BuildQueueTimeoutDetails |
getBuildQueueTimeoutDetails()
Details about the build if queue timeout was detected.
|
Collection<BuildAgent> |
getExecutableBuildAgentsBREAK()
Deprecated.
|
Collection<ElasticImageConfiguration> |
getExecutableElasticImagesBREAK()
Deprecated.
|
Date |
getQueueTime()
The
Date when the build was originally queued |
Date |
getVcsUpdateTime()
The time
Date when updating / checking out source repository began |
boolean |
hasExecutableAgentsBREAK()
Deprecated.
|
boolean |
isCurrentlyQueuedOnly()
Is the build queued?
|
boolean |
isUpdatingVcs() |
void |
setBuildAgentId(Long agentId)
Sets the fact that the build will now be building on an agent
|
void |
setBuildCancelledDetails(BuildCancelledDetails buildCancelledDetails) |
void |
setBuildHangDetails(BuildHungDetails buildHungDetails)
Set the details if the build was detected to be hung.
|
void |
setBuildQueueTimeoutDetails(BuildQueueTimeoutDetails buildQueueTimeoutDetails)
Sets build queue timeout details
|
void |
setExecutableInfo(CurrentlyBuilding.ExecutableInfo info)
Set the information about the current agents and elastic images.
|
void |
setVcsUpdateTime(Date vcsUpdateTime) |
void |
startTimer()
Starts an internal timer to the currently running build
|
void |
stopTimer()
Stops the internal timer for the current running build
|
boolean |
tryToFinish()
Attempt to mark this object for operation requiring exclusive access: i.e.
|
getAverageDuration, getBuildChanges, getBuildIdentifier, getElapsedTime, getProgressBar, getStartTime, getTriggerReason
@Deprecated @NotNull Collection<BuildAgent> getExecutableBuildAgentsBREAK()
BuildQueueManager.getExecutorsForQueuedExecutable(ResultKey)
BuildAgent
which can execute this build.@NotNull @Deprecated Collection<ElasticImageConfiguration> getExecutableElasticImagesBREAK()
BuildQueueManager.getImagesForQueuedExecutable(ResultKey)
ElasticImageConfiguration
which can execute this plan@Deprecated boolean hasExecutableAgentsBREAK()
BuildQueueManager.getExecutorsForQueuedExecutable(ResultKey)
@Nullable Long getBuildAgentId()
boolean isCurrentlyQueuedOnly()
boolean isUpdatingVcs()
@NotNull Date getQueueTime()
Date
when the build was originally queuedgetQueueTime
in interface ExecutionStatus
@Nullable Date getVcsUpdateTime()
Date
when updating / checking out source repository began@Nullable BuildHungDetails getBuildHangDetails()
@Nullable BuildCancelledDetails getBuildCancelledDetails()
@Nullable BuildQueueTimeoutDetails getBuildQueueTimeoutDetails()
void setBuildAgentId(@Nullable Long agentId)
agentId
- void setBuildCancelledDetails(@Nullable BuildCancelledDetails buildCancelledDetails)
void setBuildHangDetails(@Nullable BuildHungDetails buildHungDetails)
buildHungDetails
- void setBuildQueueTimeoutDetails(BuildQueueTimeoutDetails buildQueueTimeoutDetails)
buildQueueTimeoutDetails
- void setVcsUpdateTime(@NotNull Date vcsUpdateTime)
void setExecutableInfo(CurrentlyBuilding.ExecutableInfo info)
info
- to set.void startTimer()
void stopTimer()
boolean tryToFinish()
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.