public abstract class AgentVcsSupport extends java.lang.Object implements AgentVcsSupportContext, AgentVcsSupportCore
AgentVcsSupportContext.
All VcsSupport on agent implementations are strongly recommended to inherit from
this class.
Inheriting from this class may strongly increase backward compatibility with
forthcoming TeamCity releases.| Constructor and Description |
|---|
AgentVcsSupport() |
| Modifier and Type | Method and Description |
|---|---|
AgentCheckoutAbility |
canCheckout(VcsRoot vcsRoot,
CheckoutRules checkoutRules,
AgentRunningBuild build)
Check whether this Vcs Support can checkout sources from the specified vcs root.
|
boolean |
canRun(BuildAgentConfiguration agentConfiguration,
TextLogger messageLog)
This method may be called at any time.
|
AgentVcsSupportCore |
getCore() |
abstract java.lang.String |
getName()
Name of the VCS plugin.
|
abstract UpdatePolicy |
getUpdatePolicy() |
@NotNull public AgentVcsSupportCore getCore()
getCore in interface AgentVcsSupportContext@NotNull public abstract UpdatePolicy getUpdatePolicy()
getUpdatePolicy in interface AgentVcsSupportContextUpdatePolicy
for details.@NotNull public abstract java.lang.String getName()
AgentVcsSupportCoregetName in interface AgentVcsSupportCorepublic boolean canRun(@NotNull
BuildAgentConfiguration agentConfiguration,
@NotNull
TextLogger messageLog)
AgentVcsSupportCorecanRun in interface AgentVcsSupportCoreagentConfiguration - - current agent configurationmessageLog - - logger to log user-related information on plugin availability@NotNull public AgentCheckoutAbility canCheckout(@NotNull VcsRoot vcsRoot, @NotNull CheckoutRules checkoutRules, @NotNull AgentRunningBuild build)
AgentVcsSupportCorecanCheckout in interface AgentVcsSupportCore