Interface BuildAgentEx

    • Method Detail

      • getOwnAddress

        @Nullable
        String getOwnAddress()
      • getOperatingSystemName

        @NotNull
        String getOperatingSystemName()
      • getVersion

        @NotNull
        String getVersion()
      • getPluginsSignature

        @NotNull
        String getPluginsSignature()
      • updateBuildAgentParametersOnServer

        void updateBuildAgentParametersOnServer()
      • restart

        void restart()
        Restarts build agent process.
      • restartOnError

        void restartOnError​(@NotNull
                            String logMessage,
                            @NotNull
                            Throwable error)
        Restarts build agent process due to critical error.
      • isRegistered

        boolean isRegistered()
      • getProtocol

        @Nullable
        CommunicationProtocol getProtocol()
        Returns the protocol using for server-to-agent communication, null if agent is not registered on server
      • stopBuild

        boolean stopBuild​(@NotNull
                          BuildInterruptReason reason)
        Notifies currently running build to stop with the specified reason
      • applyConfigurationToAgent

        void applyConfigurationToAgent()
        Applies provided parameters to the agent configuration (see {@link {@link BuildAgentConfiguration }}), including configuration parameters, system properties, environment variables. Existing parameters with the same names are not overwritten

        The method may reuse the previously probed parameters, or it will call plugins to provide their parameters.

      • applyConfigurationToAgent

        void applyConfigurationToAgent​(Map<String,​String> configuration)
        Loads the configuration parameters from plugins into BuildAgentConfiguration

        Parameters:
        configuration - configuration parameters to load