Interface InstanceTerminateCondition


  • public interface InstanceTerminateCondition
    Created by sergeypak on 14/12/2016.
    • Method Detail

      • 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