Package hudson.model

Class ExternalRun

    • Field Detail

      • ENABLE_DTD_PROPERTY_NAME

        public static final String ENABLE_DTD_PROPERTY_NAME
    • Method Detail

      • run

        public void run​(String[] cmd)
        Instead of performing a build, run the specified command, record the log and its exit code, then call it a build.
        Parameters:
        cmd - command to run as a build
      • acceptRemoteSubmission

        public void acceptRemoteSubmission​(Reader in)
                                    throws IOException
        Instead of performing a build, accept the log and the return code from a remote machine.

        The format of the XML is: <pre><xmp> <run> <log>...console output...</log> <result>exit code</result> </run> </xmp></pre>

        Parameters:
        in - Log file referenc
        Throws:
        IOException
      • acceptRemoteSubmission

        public void acceptRemoteSubmission​(int result,
                                           long duration,
                                           InputStream stream)
                                    throws IOException
        Parameters:
        result - Result code of the external job
        duration - Duration (in milliseconds) of the external job run
        stream - Stream of external job log
        Throws:
        IOException
      • acceptRemoteSubmission

        public void acceptRemoteSubmission​(int result,
                                           long duration,
                                           String log)
                                    throws IOException
        Parameters:
        result - Result code of the external job
        duration - Duration (in milliseconds) of the external job run
        log - External job log
        Throws:
        IOException