Interface AgentVcsSupportCore

    • Method Detail

      • getName

        @NotNull
        java.lang.String getName()
        Name of the VCS plugin. Should be the same as jetbrains.buildServer.vcs.VcsSupport#getName
        Returns:
        see above
      • canRun

        boolean canRun​(@NotNull
                       BuildAgentConfiguration agentConfiguration,
                       @NotNull
                       TextLogger messageLog)
        This method may be called at any time. It's guaranteed vcs plugin will be disabled if it has returned false from this method. But subsequent calls to canRun are still possible.
        Parameters:
        agentConfiguration - - current agent configuration
        messageLog - - logger to log user-related information on plugin availability
        Returns:
        true if the vcs support can run in this particular environment or not. For example, returning 'false' is a way for a runner to refuse to run on a system that is not supported by the runner If 'false' is returned, the Agent won't register the vcs support and it won't be advertised to the build server server during agent's registration