Class AgentVcsSupport

    • Constructor Detail

      • AgentVcsSupport

        public AgentVcsSupport()
    • Method Detail

      • getName

        @NotNull
        public abstract String getName()
        Description copied from interface: AgentVcsSupportCore
        Name of the VCS plugin. Should be the same as jetbrains.buildServer.vcs.VcsSupport#getName
        Specified by:
        getName in interface AgentVcsSupportCore
        Returns:
        see above
      • canRun

        public boolean canRun​(@NotNull
                              BuildAgentConfiguration agentConfiguration,
                              @NotNull
                              TextLogger messageLog)
        Description copied from interface: AgentVcsSupportCore
        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.
        Specified by:
        canRun in interface AgentVcsSupportCore
        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