Interface AgentLogListener

    • Method Detail

      • log

        boolean log​(String buildId,
                    Vector messagesXml)
        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
      • buildFinished

        boolean buildFinished​(String buildId,
                              Date finishDate,
                              boolean buildFailed)
        Parameters:
        buildId - - build id
        finishDate - - finish date
        buildFailed - - build failed sign
        Returns:
        - fake return type to conform XML-RPC requirements
      • buildDetachedFromAgent

        boolean buildDetachedFromAgent​(String buildId,
                                       String lastStepId)
        Indicates that the build tasks are finished on the agent but the build itself should continue until some external process finishes it
        Parameters:
        buildId - - build id
        lastStepId - - id of last step
        Returns:
        - fake return type to conform XML-RPC requirements
        Since:
        2019.2
      • buildInterrupted

        boolean buildInterrupted​(String buildId)
        Same as buildInterrupted(String, String, boolean) with parameters: build, "", true
        Parameters:
        buildId - - build id
        Returns:
        - fake return type to conform XML-RPC requirements
      • buildInterrupted

        boolean buildInterrupted​(String buildId,
                                 String comment,
                                 boolean needRequeue)
        Parameters:
        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
        Since:
        2019.1
      • isBuildFailing

        boolean isBuildFailing​(String buildId)
                        throws InterruptedException
        Checks for build status on the build server. The call is synchronous, it makes sure that previous logged messages are sent to the server.
        Returns:
        true if build status on the server is failing
        Throws:
        InterruptedException - if action was removed from the queue for some reason, and could not be completed (for instance, build is obsolete)
        Since:
        8.0