Class XmlRpcBasedServer

    • Method Detail

      • setBuildAgentManager

        public void setBuildAgentManager​(BuildAgentManagerEx buildAgentManager)
      • setBuildAgentFactory

        public void setBuildAgentFactory​(BuildAgentFactory buildAgentFactory)
      • setRunningBuildsManager

        public void setRunningBuildsManager​(RunningBuildsManagerEx runningBuildsManager)
      • setAgentPersister

        public void setAgentPersister​(AgentPersister agentPersister)
      • ping

        public boolean ping()
        Description copied from interface: Server
        This method is called by build agent to check if build server reachable
        Specified by:
        ping in interface Server
        Returns:
        true if server is reachable, false otherwise
      • updateAgentParameteres

        @NotNull
        public String updateAgentParameteres​(@NotNull
                                             String serializedAgentDetails)
        Description copied from interface: Server
        This method is called by build agent to update it's parameters on server. Build agent parameters may be changed by plugins and thus needed to be updated in server model
        Specified by:
        updateAgentParameteres in interface Server
        Parameters:
        serializedAgentDetails - serialized agent details
        Returns:
        empty string
      • unregister

        public boolean unregister​(int id)
        Specified by:
        unregister in interface Server
        Parameters:
        id - id obtained via #registerAgent3 call
        Returns:
        true deprecated since 2021.2, use unregister(id, token) instead of it
      • unregister

        public boolean unregister​(int id,
                                  @Nullable
                                  String token)
        Description copied from interface: Server
        unregister agent with specified id from server
        Specified by:
        unregister in interface Server
        Parameters:
        id - agent id
        token - agent token. If the token isn't equal to token for the agent on server-side, server won't unregister the agent
      • log

        public boolean log​(@NotNull
                           String buildId,
                           Vector messagesXml)
        Specified by:
        log in interface AgentLogListener
        Parameters:
        buildId - - build id
        messagesXml - - message in XML format
        Returns:
        - returns value which indicates, whether this message was accepted by server; if false, no other messages with given buildId should be sent for corresponding buildId
      • buildInterrupted

        public boolean buildInterrupted​(@NotNull
                                        String buildId,
                                        @NotNull
                                        String comment,
                                        boolean needRequeue)
        Specified by:
        buildInterrupted in interface AgentLogListener
        comment - a comment to interrupt the build with
        needRequeue - if true, build should be re-added to the build queue
        Returns:
        fake value, to conform XML-RPC requirements
      • buildFinished

        public boolean buildFinished​(@NotNull
                                     String buildId,
                                     Date finishDate,
                                     boolean buildFailed)
        Specified by:
        buildFinished in interface AgentLogListener
        Parameters:
        buildId - - build id
        finishDate - - finish date
        buildFailed - - build failed sign
        Returns:
        - fake return type to conform XML-RPC requirements
      • buildDetachedFromAgent

        public boolean buildDetachedFromAgent​(String buildId,
                                              String lastStepId)
        Description copied from interface: AgentLogListener
        Indicates that the build tasks are finished on the agent but the build itself should continue until some external process finishes it
        Specified by:
        buildDetachedFromAgent in interface AgentLogListener
        Parameters:
        buildId - - build id
        lastStepId - - id of last step
        Returns:
        - fake return type to conform XML-RPC requirements
      • patchApplied

        public boolean patchApplied​(String buildId)
        Deprecated.
        left for compatibility with old agents
        Parameters:
        buildId - buildId
        Returns:
        fake
      • isBuildFailing

        public boolean isBuildFailing​(String buildId)
        Description copied from interface: AgentLogListener
        Checks for build status on the build server. The call is synchronous, it makes sure that previous logged messages are sent to the server.
        Specified by:
        isBuildFailing in interface AgentLogListener
        Returns:
        true if build status on the server is failing
      • markCheckoutDirClean

        @Deprecated
        public boolean markCheckoutDirClean​(String buildId)
        Deprecated.
        left for compatibility with old agents
      • beginPatchApplying

        public boolean beginPatchApplying​(String buildId)
        Deprecated.
        left for compatibility with old agents
        Parameters:
        buildId - buildId
        Returns:
        fake
      • markCheckoutDirDirty

        @Deprecated
        public boolean markCheckoutDirDirty​(String buildId)
        Deprecated.
        left for compatibility with old agents
      • projectTemporarilyUnavailableOnTheCurrentNode

        public static boolean projectTemporarilyUnavailableOnTheCurrentNode​(@NotNull
                                                                            SRunningBuild build)