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 AgentVcsSupportContext
UpdatePolicy
for details.@NotNull public abstract java.lang.String getName()
AgentVcsSupportCore
getName
in interface AgentVcsSupportCore
public boolean canRun(@NotNull BuildAgentConfiguration agentConfiguration, @NotNull TextLogger messageLog)
AgentVcsSupportCore
canRun
in interface AgentVcsSupportCore
agentConfiguration
- - 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)
AgentVcsSupportCore
canCheckout
in interface AgentVcsSupportCore