Interface AgentPluginsRegistry

    • Method Detail

      • registerAgentPlugin

        void registerAgentPlugin​(@NotNull
                                 String pluginPartName,
                                 @NotNull
                                 File file)
                          throws RegisterAgentPluginException
        Registers agent plugin taken from it's .zip file. NOTE: if some new plugin is published after {@see BuildServerListener#serverStartup()} event, unnecessary agent upgrade may cause as a race condition effect.
        Parameters:
        pluginPartName - plugin part name
        file - path to agent .zip plugin
        Throws:
        RegisterAgentPluginException - if agent plugin with same name was allredy registered
      • replaceAgentPluginIfExists

        void replaceAgentPluginIfExists​(@NotNull
                                        ServerPluginInfo info)
        Replace old plugin info with new plugin info. Method does nothing if plugin with given name was not registered earlier
        Parameters:
        info - plugin info
        Since:
        2018.2
      • unregisterAgentPlugin

        void unregisterAgentPlugin​(@NotNull
                                   String pluginName)