captmorgan
Class ExternalBuild

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Actionable
          extended by hudson.model.Run<P,R>
              extended by hudson.model.AbstractBuild<P,B>
                  extended by hudson.model.Build<ExternalProject,ExternalBuild>
                      extended by captmorgan.ExternalBuild
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.DescriptorByNameOwner, hudson.model.ModelObject, hudson.model.PersistenceRoot, hudson.model.Queue.Executable, hudson.model.Saveable, hudson.search.SearchableModelObject, hudson.search.SearchItem, hudson.security.AccessControlled, Comparable<ExternalBuild>, Runnable, jenkins.model.lazy.LazyBuildMixIn.LazyLoadingRun<ExternalProject,ExternalBuild>, jenkins.model.ModelObjectWithContextMenu, jenkins.util.io.OnMaster

public class ExternalBuild
extends hudson.model.Build<ExternalProject,ExternalBuild>

Author:
Scott Morgan

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Build
hudson.model.Build.BuildExecution, hudson.model.Build.RunnerImpl
 
Nested classes/interfaces inherited from class hudson.model.AbstractBuild
hudson.model.AbstractBuild.AbstractBuildExecution, hudson.model.AbstractBuild.AbstractRunner, hudson.model.AbstractBuild.DependencyChange
 
Nested classes/interfaces inherited from class hudson.model.Run
hudson.model.Run.Artifact, hudson.model.Run.ArtifactList, hudson.model.Run.KeepLogBuildBadge, hudson.model.Run.RedirectUp, hudson.model.Run.RunExecution, hudson.model.Run.Runner, hudson.model.Run.RunnerAbortedException, hudson.model.Run.StatusSummarizer, hudson.model.Run.Summary
 
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.ContextMenuVisibility, jenkins.model.ModelObjectWithContextMenu.MenuItem
 
Field Summary
 
Fields inherited from class hudson.model.AbstractBuild
buildEnvironments
 
Fields inherited from class hudson.model.Run
ARTIFACTS, charset, DELETE, description, duration, FEED_ADAPTER, FEED_ADAPTER_LATEST, ID_FORMATTER, LIST_CUTOFF, nextBuild, number, ORDER_BY_DATE, PERMISSIONS, previousBuild, project, result, timestamp, TREE_CUTOFF, UPDATE, XSTREAM, XSTREAM2
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
ExternalBuild(ExternalProject project)
           
ExternalBuild(ExternalProject job, Calendar timestamp)
           
ExternalBuild(ExternalProject project, File buildDir)
           
 
Method Summary
 void acceptRemoteSubmission(Reader in)
          Instead of performing a build, accept the log and the return code from a remote machine.
 
Methods inherited from class hudson.model.Build
createRunner, run
 
Methods inherited from class hudson.model.AbstractBuild
addAction, createReference, doStop, doStop, dropLinks, due, getAggregatedTestResultAction, getBuildFingerprints, getBuildVariableResolver, getBuildVariables, getBuiltOn, getBuiltOnStr, getChangeSet, getChangeSets, getCulprits, getDependencyChanges, getDownstreamBuilds, getDownstreamBuilds, getDownstreamRelationship, getEnvironment, getEnvironments, getHudsonVersion, getModuleRoot, getModuleRoots, getNextBuild, getPersistentActions, getPreviousBuild, getProject, getRootBuild, getRunMixIn, getSensitiveBuildVariables, getTestResultAction, getTransitiveUpstreamBuilds, getUpstreamBuilds, getUpstreamRelationship, getUpstreamRelationshipBuild, getUpUrl, getWhyKeepLog, getWorkspace, hasChangeSetComputed, hasParticipant, setBuiltOnStr, setWorkspace
 
Methods inherited from class hudson.model.Run
_this, canToggleLogKeep, checkPermission, compareTo, delete, deleteArtifacts, doArtifact, doBuildNumber, doBuildStatus, doBuildTimestamp, doConfigSubmit, doConsoleText, doDoDelete, doProgressiveLog, doSubmitDescription, doToggleLogKeep, execute, fromExternalizableId, getAbsoluteUrl, getACL, getApi, getArtifactManager, getArtifacts, getArtifactsDir, getArtifactsUpTo, getBadgeActions, getBuildStatusIconClassName, getBuildStatusSummary, getBuildStatusUrl, getCause, getCauses, getCharacteristicEnvVars, getCharset, getDescription, getDescriptorByName, getDisplayName, getDuration, getDurationString, getDynamic, getEnvironment, getEnvVars, getEstimatedDuration, getExecutor, getExternalizableId, getFullDisplayName, getHasArtifacts, getIconColor, getId, getIDFormatter, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNumber, getOneOffExecutor, getPreviousBuildInProgress, getPreviousBuildsOverThreshold, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getPreviousSuccessfulBuild, getResult, getRootDir, getSearchUrl, getStartTimeInMillis, getTime, getTimeInMillis, getTimestamp, getTimestampString, getTimestampString2, getTransientActions, getTruncatedDescription, getUrl, hasCustomDisplayName, hasntStartedYet, hasPermission, isBuilding, isInProgress, isKeepLog, isLogUpdated, keepLog, keepLog, makeSearchIndex, onEndBuilding, onLoad, onStartBuilding, pickArtifactManager, reload, run, save, setDescription, setDisplayName, setResult, submit, toString, updateSymlinks, writeLogTo, writeWholeLogTo
 
Methods inherited from class hudson.model.Actionable
doContextMenu, getAction, getAction, getActions, getActions, getAllActions, replaceAction
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, 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.Queue.Executable
getEstimatedDuration, toString
 

Constructor Detail

ExternalBuild

public ExternalBuild(ExternalProject job,
                     Calendar timestamp)

ExternalBuild

public ExternalBuild(ExternalProject project,
                     File buildDir)
              throws IOException
Throws:
IOException

ExternalBuild

public ExternalBuild(ExternalProject project)
              throws IOException
Throws:
IOException
Method Detail

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:


 <run>
  <log>...console output...</log>
  <result>exit code</result>
 </run>
 

Throws:
IOException


Copyright © 2004-2015. All Rights Reserved.