Class SecuredQueuedBuild
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.QueuedBuildImpl
-
- jetbrains.buildServer.serverSide.impl.auth.SecuredQueuedBuild
-
- All Implemented Interfaces:
Comparable<BuildTypeDescriptor>,BuildTypeDescriptor,Loggable,QueuedBuild,QueuedBuildInfo,BuildPromotionOwner,CompatibleAgents,QueuedBuildEx,SQueuedBuild
public class SecuredQueuedBuild extends QueuedBuildImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.BuildTypeDescriptor
BuildTypeDescriptor.CheckoutType
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.BuildTypeDescriptor
FULL_NAME_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description SecuredQueuedBuild(BuildPromotion buildPromotion, SAgentRestrictor agentRestrictor, String rawTriggeredBy, BuildEstimator buildEstimator, BuildQueueEx buildQueue, BuildAgentManager agentManager, AgentPoolManager agentPoolManager, BuildServerEx server, TriggeredByParser triggeredByParser, SecurityContextEx securityContext, BuildAgentFactory buildAgentFactory, WaitReasonStatisticsCollector waitReasonStatisticsCollector, CanRunOnAgentsCalculator canRunOnCalculator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SBuildAgentgetBuildAgent()BuildEstimatesgetBuildEstimates()Returns a BuildEstimates object describing the estimated values of the pending build.voidremoveFromQueue(User user, String comment)Removes this queued build from the build queueRunningBuildExstartBuild(String requestor)Start build.-
Methods inherited from class jetbrains.buildServer.serverSide.impl.QueuedBuildImpl
canRunInPool, compareTo, describe, getAgentCompatibility, getAgentRestrictor, getBuildAgentId, getBuildConfiguration, getBuildPromotion, getBuildPromotionInfo, getBuildType, getBuildTypeEx, getBuildTypeId, getCanRunOnAgents, getCanRunOnAgents, getCanRunOnAgentTypes, getCheckoutType, getCompatibilityMap, getCompatibleAgents, getCompatibleAgents, getDescription, getExternalId, getFullName, getItemId, getLatestWaitReason, getName, getOrderNumber, getProjectExternalId, getProjectId, getProjectName, getRequestor, getRunnerTypes, getSequenceBuild, getTriggeredBy, getWaitReasons, getWhenQueued, isCanBeReplacedByMergeOptimization, isPaused, isPersisted, isPersonal, isStarted, markAsStarted, markPersisted, removeFailedToStartFromQueue, startChangesCollecting, terminate, toString, tryLockBuildStarting, unlockBuildStarting
-
-
-
-
Constructor Detail
-
SecuredQueuedBuild
public SecuredQueuedBuild(@NotNull BuildPromotion buildPromotion, @Nullable SAgentRestrictor agentRestrictor, @NotNull String rawTriggeredBy, @NotNull BuildEstimator buildEstimator, @NotNull BuildQueueEx buildQueue, @NotNull BuildAgentManager agentManager, @NotNull AgentPoolManager agentPoolManager, @NotNull BuildServerEx server, @NotNull TriggeredByParser triggeredByParser, @NotNull SecurityContextEx securityContext, @NotNull BuildAgentFactory buildAgentFactory, @NotNull WaitReasonStatisticsCollector waitReasonStatisticsCollector, @NotNull CanRunOnAgentsCalculator canRunOnCalculator)
-
-
Method Detail
-
getBuildEstimates
@Nullable public BuildEstimates getBuildEstimates()
Description copied from interface:SQueuedBuildReturns a BuildEstimates object describing the estimated values of the pending build. The returned time interval can be open, that is it doesn't contain the finish estimate (getEndPoint() returns null) in case of inability to estimate build duration. The time base for the time interval is the moment of invocation (with some accuracy).- Specified by:
getBuildEstimatesin interfaceSQueuedBuild- Overrides:
getBuildEstimatesin classQueuedBuildImpl- Returns:
- null if the times cannot be estimated or the build isn't in the queue.
-
removeFromQueue
public void removeFromQueue(User user, String comment)
Description copied from interface:SQueuedBuildRemoves this queued build from the build queue- Specified by:
removeFromQueuein interfaceSQueuedBuild- Overrides:
removeFromQueuein classQueuedBuildImpl- Parameters:
user- user who initiated removecomment- comment
-
getBuildAgent
@Nullable public SBuildAgent getBuildAgent()
- Specified by:
getBuildAgentin interfaceQueuedBuildEx- Specified by:
getBuildAgentin interfaceSQueuedBuild- Overrides:
getBuildAgentin classQueuedBuildImpl- Returns:
- build agent to run build on or null
-
startBuild
@NotNull public RunningBuildEx startBuild(@NotNull String requestor)
Description copied from interface:QueuedBuildExStart build. The method can be used to start build wihtout agent.- Specified by:
startBuildin interfaceQueuedBuildEx- Overrides:
startBuildin classQueuedBuildImpl- Parameters:
requestor- build requestor information like name or so
-
-