Package hudson.model

Class ExternalJob

All Implemented Interfaces:
ExtensionPoint, Describable<TopLevelItem>, DescriptorByNameOwner, Item, ModelObject, PersistenceRoot, Saveable, TopLevelItem, SearchableModelObject, SearchItem, AccessControlled, Loadable, ModelObjectWithChildren, ModelObjectWithContextMenu, OnMaster, HasWidgets, org.kohsuke.stapler.HttpDeletable, org.kohsuke.stapler.StaplerOverridable, org.kohsuke.stapler.StaplerProxy

public class ExternalJob extends ViewJob<ExternalJob,ExternalRun> implements TopLevelItem
Job that runs outside Hudson whose result is submitted to Hudson (either via web interface, or simply by placing files on the file system, for compatibility.)
Author:
Kohsuke Kawaguchi
  • Field Details

  • Constructor Details

    • ExternalJob

      public ExternalJob(String name)
    • ExternalJob

      public ExternalJob(ItemGroup parent, String name)
  • Method Details

    • reload

      protected void reload()
      Specified by:
      reload in class ViewJob<ExternalJob,ExternalRun>
    • newBuild

      public ExternalRun newBuild() throws IOException
      Creates a new build of this project for immediate execution. Needs to be synchronized so that two newBuild() invocations serialize each other.
      Returns:
      ExternalRun a reference to the new build
      Throws:
      IOException
    • doAcceptBuildResult

      public void doAcceptBuildResult(org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException
      Used to check if this is an external job and ready to accept a build result.
      Throws:
      IOException
      jakarta.servlet.ServletException
    • doPostBuildResult

      @POST public void doPostBuildResult(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException
      Used to post the build result from a remote machine.
      Parameters:
      req - Remote request
      rsp - Remote response
      Throws:
      IOException
      jakarta.servlet.ServletException
    • getDescriptor

      public TopLevelItemDescriptor getDescriptor()
      Specified by:
      getDescriptor in interface Describable<TopLevelItem>
      Specified by:
      getDescriptor in interface TopLevelItem
    • getPronoun

      public String getPronoun()
      Overrides:
      getPronoun in class Job<ExternalJob,ExternalRun>