Package hudson.model

Class ExternalRun

All Implemented Interfaces:
ExtensionPoint, DescriptorByNameOwner, ModelObject, PersistenceRoot, Saveable, SearchableModelObject, SearchItem, AccessControlled, Comparable<ExternalRun>, WithConsoleUrl, HistoricalBuild, ModelObjectWithContextMenu, OnMaster, org.kohsuke.stapler.StaplerProxy

public class ExternalRun extends Run<ExternalJob,ExternalRun>
Author:
Kohsuke Kawaguchi
  • Field Details

    • ENABLE_DTD_PROPERTY_NAME

      public static final String ENABLE_DTD_PROPERTY_NAME
  • Method Details

    • 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