hudson.model
Class ExternalJob

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Actionable
          extended by hudson.model.AbstractItem
              extended by hudson.model.Job<JobT,RunT>
                  extended by hudson.model.ViewJob<ExternalJob,ExternalRun>
                      extended by hudson.model.ExternalJob
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.TopLevelItem>, hudson.model.DescriptorByNameOwner, hudson.model.Item, hudson.model.ModelObject, hudson.model.PersistenceRoot, hudson.model.Saveable, hudson.model.TopLevelItem, hudson.search.SearchableModelObject, hudson.search.SearchItem, hudson.security.AccessControlled, jenkins.model.ModelObjectWithContextMenu, org.kohsuke.stapler.HttpDeletable, org.kohsuke.stapler.StaplerOverridable

public class ExternalJob
extends hudson.model.ViewJob<ExternalJob,ExternalRun>
implements hudson.model.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

Nested Class Summary
static class ExternalJob.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
jenkins.model.ModelObjectWithContextMenu.ContextMenu, jenkins.model.ModelObjectWithContextMenu.MenuItem
 
Field Summary
static hudson.model.TopLevelItemDescriptor DESCRIPTOR
           
 
Fields inherited from class hudson.model.ViewJob
reloadPeriodically, runs
 
Fields inherited from class hudson.model.Job
HISTORY_ADAPTER, nextBuildNumber, properties
 
Fields inherited from class hudson.model.AbstractItem
description, displayName, name, PRONOUN
 
Fields inherited from interface hudson.model.Item
BUILD, CANCEL, CONFIGURE, CREATE, DELETE, DISCOVER, EXTENDED_READ, PERMISSIONS, READ, WIPEOUT, WORKSPACE
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
ExternalJob(hudson.model.ItemGroup parent, String name)
           
ExternalJob(String name)
           
 
Method Summary
 void doAcceptBuildResult(org.kohsuke.stapler.StaplerResponse rsp)
          Used to check if this is an external job and ready to accept a build result.
 void doPostBuildResult(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Used to post the build result from a remote machine.
 hudson.model.TopLevelItemDescriptor getDescriptor()
           
 String getPronoun()
           
 ExternalRun newBuild()
          Creates a new build of this project for immediate execution.
protected  void reload()
           
 
Methods inherited from class hudson.model.ViewJob
_getRuns, isBuildable, onLoad, removeRun, submit
 
Methods inherited from class hudson.model.Job
addProperty, assignBuildNumber, createHistoryWidget, doBuildStatus, doConfigSubmit, doDescription, doDoRename, doRssAll, doRssFailed, getACL, getAllJobs, getAllProperties, getBuild, getBuildByNumber, getBuildDir, getBuildForCLI, getBuildHealth, getBuildHealthReports, getBuilds, getBuilds, getBuildsAsMap, getBuildsByTimestamp, getBuildStatusUrl, getBuildTimeGraph, getDynamic, getEstimatedDuration, getFirstBuild, getIconColor, getLastBuild, getLastBuildsOverThreshold, getLastCompletedBuild, getLastFailedBuild, getLastStableBuild, getLastSuccessfulBuild, getLastUnstableBuild, getLastUnsuccessfulBuild, getLogRotator, getNearestBuild, getNearestOldBuild, getNextBuildNumber, getOverrides, getPermalinks, getProperties, getProperty, getProperty, getQueueItem, getTimeline, getWidgets, isBuilding, isHoldOffBuildUntilSave, isInQueue, isKeepDependencies, isLogUpdated, isNameEditable, logRotate, makeSearchIndex, onCopiedFrom, performDelete, removeProperty, removeProperty, renameTo, save, saveNextBuildNumber, setLogRotator, supportsLogRotator, updateNextBuildNumber
 
Methods inherited from class hudson.model.AbstractItem
checkPermission, delete, delete, doConfigDotXml, doDoDelete, doSetName, doSubmitDescription, getAbsoluteUrl, getApi, getConfigFile, getDescription, getDescriptorByName, getDisplayName, getDisplayNameOrNull, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getRootDir, getSearchName, getSearchUrl, getShortUrl, getUrl, hasPermission, onCreatedFromScratch, resolveForCLI, setDescription, setDisplayName, setDisplayNameOrNull, toString, updateByXml
 
Methods inherited from class hudson.model.Actionable
addAction, doContextMenu, getAction, getAction, getActions, getActions
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface hudson.model.Item
delete, getAbsoluteUrl, getAllJobs, getDisplayName, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl, onCopiedFrom, onCreatedFromScratch, onLoad, save
 
Methods inherited from interface hudson.model.PersistenceRoot
getRootDir
 
Methods inherited from interface hudson.search.SearchableModelObject
getSearch
 
Methods inherited from interface hudson.search.SearchItem
getSearchIndex, getSearchName, getSearchUrl
 
Methods inherited from interface hudson.security.AccessControlled
checkPermission, getACL, hasPermission
 

Field Detail

DESCRIPTOR

@Extension
public static final hudson.model.TopLevelItemDescriptor DESCRIPTOR
Constructor Detail

ExternalJob

public ExternalJob(String name)

ExternalJob

public ExternalJob(hudson.model.ItemGroup parent,
                   String name)
Method Detail

reload

protected void reload()
Specified by:
reload in class hudson.model.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.

Throws:
IOException

doAcceptBuildResult

public void doAcceptBuildResult(org.kohsuke.stapler.StaplerResponse rsp)
                         throws IOException,
                                javax.servlet.ServletException
Used to check if this is an external job and ready to accept a build result.

Throws:
IOException
javax.servlet.ServletException

doPostBuildResult

public void doPostBuildResult(org.kohsuke.stapler.StaplerRequest req,
                              org.kohsuke.stapler.StaplerResponse rsp)
                       throws IOException,
                              javax.servlet.ServletException
Used to post the build result from a remote machine.

Throws:
IOException
javax.servlet.ServletException

getDescriptor

public hudson.model.TopLevelItemDescriptor getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.model.TopLevelItem>
Specified by:
getDescriptor in interface hudson.model.TopLevelItem

getPronoun

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


Copyright © 2004-2012. All Rights Reserved.