public final class AgentCheckoutAbility
extends java.lang.Object
AgentVcsSupportCore.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)
Modifier and Type | Method and 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 reason
|
AgentCanNotCheckoutReason |
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.
|
public static AgentCheckoutAbility canCheckout()
public static AgentCheckoutAbility notSure()
public static AgentCheckoutAbility noVcsClientOnAgent(@Nullable java.lang.String optionalDetails)
public static AgentCheckoutAbility notSupportedCheckoutRules(@Nullable java.lang.String optionalDetails)
public static AgentCheckoutAbility canNotCheckout(@NotNull java.lang.String details)
public boolean isUnknown()
@Nullable public AgentCanNotCheckoutReason getCanNotCheckoutReason()