Package jetbrains.buildServer.agent.vcs
Class AgentCheckoutAbility
- java.lang.Object
-
- jetbrains.buildServer.agent.vcs.AgentCheckoutAbility
-
public final class AgentCheckoutAbility extends java.lang.Object
Result ofAgentVcsSupportCore.canCheckout(VcsRoot, CheckoutRules, AgentRunningBuild)
Can contain the reason why the agent can't checkout sources for the build. Should be created using provided factory methods:canCheckout()
noVcsClientOnAgent(String)
notSupportedCheckoutRules(String)
canNotCheckout(String)
- Since:
- 10.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AgentCheckoutAbility
canCheckout()
Agent-side checkout is possible.static AgentCheckoutAbility
canNotCheckout(java.lang.String details)
Agent-side checkout is not possible due to any non-standard reasonAgentCanNotCheckoutReason
getCanNotCheckoutReason()
boolean
isUnknown()
static AgentCheckoutAbility
notSupportedCheckoutRules(java.lang.String optionalDetails)
Agent-side checkout is not possible due to complex specified checkout rules.static AgentCheckoutAbility
notSure()
Vcs plugin doesn't know whether agent-side checkout is possible or not.static AgentCheckoutAbility
noVcsClientOnAgent(java.lang.String optionalDetails)
Agent-side checkout is not possible because native VCS client is not found on the agent or has unsupported version.
-
-
-
Method Detail
-
canCheckout
public static AgentCheckoutAbility canCheckout()
Agent-side checkout is possible.
-
notSure
public static AgentCheckoutAbility notSure()
Vcs plugin doesn't know whether agent-side checkout is possible or not. In this case agent can try to perform agent-side checkout before fallback to server-side, but currently it fallbacks immediately.
-
noVcsClientOnAgent
public static AgentCheckoutAbility noVcsClientOnAgent(@Nullable java.lang.String optionalDetails)
Agent-side checkout is not possible because native VCS client is not found on the agent or has unsupported version.
-
notSupportedCheckoutRules
public static AgentCheckoutAbility notSupportedCheckoutRules(@Nullable java.lang.String optionalDetails)
Agent-side checkout is not possible due to complex specified checkout rules.
-
canNotCheckout
public static AgentCheckoutAbility canNotCheckout(@NotNull java.lang.String details)
Agent-side checkout is not possible due to any non-standard reason
-
isUnknown
public boolean isUnknown()
-
getCanNotCheckoutReason
@Nullable public AgentCanNotCheckoutReason getCanNotCheckoutReason()
-
-