Interface InstanceTerminateCondition
-
public interface InstanceTerminateConditionCreated by sergeypak on 14/12/2016.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidbeforeInstanceStart(BeforeStartInstanceArguments args)Called upon instance startup if condition is present in the profiledefault booleancanCancelBuild()indicates whether this condition should be executed even if there's a running build on agent.TerminateInstanceReasongetReason()booleanisExpired(SBuildAgent agent, CloudProfile profile, CloudInstance instance)
-
-
-
Method Detail
-
isExpired
boolean isExpired(@Nullable SBuildAgent agent, @NotNull CloudProfile profile, @NotNull CloudInstance instance)
-
canCancelBuild
default boolean canCancelBuild()
indicates whether this condition should be executed even if there's a running build on agent. Mostly, this applies to situation when agent is disconnected, but the build is still there. Should return false unless otherwise explicitly indicated- Returns:
- see above
-
beforeInstanceStart
default void beforeInstanceStart(@NotNull BeforeStartInstanceArguments args)Called upon instance startup if condition is present in the profile- Parameters:
args-- Since:
- 2021.1
-
getReason
TerminateInstanceReason getReason()
-
-