Package jetbrains.buildServer.serverSide
Interface AgentPluginsRegistry
-
- All Known Implementing Classes:
AgentPluginsRegistryImpl
public interface AgentPluginsRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidregisterAgentPlugin(String pluginPartName, File file)Registers agent plugin taken from it's .zip file.voidregisterAgentPlugin(ServerPluginInfo info)voidregisterNotLoadedAgentPlugin(ServerPluginInfo info)Register agent part of not loaded on server plugin.voidreplaceAgentPluginIfExists(ServerPluginInfo info)Replace old plugin info with new plugin info.voidunregisterAgentPlugin(String pluginName)
-
-
-
Method Detail
-
registerAgentPlugin
void registerAgentPlugin(@NotNull String pluginPartName, @NotNull File file) throws RegisterAgentPluginExceptionRegisters 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 namefile- path to agent .zip plugin- Throws:
RegisterAgentPluginException- if agent plugin with same name was allredy registered
-
registerAgentPlugin
void registerAgentPlugin(@NotNull ServerPluginInfo info) throws RegisterAgentPluginException- Parameters:
info- plugin info- Throws:
RegisterAgentPluginException- Since:
- 6.5
-
registerNotLoadedAgentPlugin
void registerNotLoadedAgentPlugin(@NotNull ServerPluginInfo info) throws RegisterAgentPluginExceptionRegister agent part of not loaded on server plugin.- Parameters:
info- plugin info- Throws:
RegisterAgentPluginException- Since:
- 2021.1
-
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)
-
-