Package hudson.model
Class ExternalRun
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Actionable
-
- hudson.model.Run<ExternalJob,ExternalRun>
-
- hudson.model.ExternalRun
-
- All Implemented Interfaces:
ExtensionPoint
,DescriptorByNameOwner
,ModelObject
,PersistenceRoot
,Saveable
,SearchableModelObject
,SearchItem
,AccessControlled
,Comparable<ExternalRun>
,ModelObjectWithContextMenu
,OnMaster
,org.kohsuke.stapler.StaplerProxy
public class ExternalRun extends Run<ExternalJob,ExternalRun>
Run
forExternalJob
.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Run
Run.Artifact, Run.ArtifactList, Run.KeepLogBuildBadge, Run.RedirectUp, Run.RunExecution, Run.Runner, Run.RunnerAbortedException, Run.StatusSummarizer, Run.Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENABLE_DTD_PROPERTY_NAME
-
Fields inherited from class hudson.model.Run
ARTIFACTS, charset, DELETE, description, duration, FEED_ADAPTER, FEED_ADAPTER_LATEST, LIST_CUTOFF, nextBuild, number, ORDER_BY_DATE, PERMISSIONS, previousBuild, project, QUEUE_ID_UNKNOWN, result, SKIP_PERMISSION_CHECK, timestamp, TREE_CUTOFF, UPDATE, XSTREAM, XSTREAM2
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptRemoteSubmission(int result, long duration, InputStream stream)
void
acceptRemoteSubmission(int result, long duration, String log)
void
acceptRemoteSubmission(Reader in)
Instead of performing a build, accept the log and the return code from a remote machine.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.-
Methods inherited from class hudson.model.Run
_this, addAction, canToggleLogKeep, compareTo, createReference, delete, deleteArtifacts, doArtifact, doBuildNumber, doBuildStatus, doBuildTimestamp, doConfigSubmit, doConsoleText, doDoDelete, doProgressiveLog, doSubmitDescription, doToggleLogKeep, dropLinks, execute, fromExternalizableId, getAbsoluteUrl, getACL, getApi, getArtifactManager, getArtifacts, getArtifactsDir, getArtifactsUpTo, getBadgeActions, getBuildFingerprints, getBuildsOverThreshold, getBuildStatusIconClassName, getBuildStatusSummary, getBuildStatusUrl, getCause, getCauses, getCharacteristicEnvVars, getCharset, getDescription, getDisplayName, getDuration, getDurationString, getDynamic, getEnvironment, getEnvironment, getEnvVars, getEstimatedDuration, getExecutor, getExternalizableId, getFullDisplayName, getHasArtifacts, getIconColor, getId, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNextBuild, getNumber, getOneOffExecutor, getParent, getPreviousBuild, getPreviousBuildInProgress, getPreviousBuildsOverThreshold, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getPreviousSuccessfulBuild, getQueueId, getResult, getRootDir, getSearchUrl, getStartTimeInMillis, getTarget, getTime, getTimeInMillis, getTimestamp, getTimestampString, getTimestampString2, getTransientActions, getTruncatedDescription, getUrl, getWhyKeepLog, hasCustomDisplayName, hasntStartedYet, isBuilding, isInProgress, isKeepLog, isLogUpdated, keepLog, keepLog, makeSearchIndex, onEndBuilding, onLoad, onStartBuilding, pickArtifactManager, reload, run, save, setDescription, setDisplayName, setQueueId, setResult, submit, toString, updateSymlinks, writeLogTo, writeReplace, writeWholeLogTo
-
Methods inherited from class hudson.model.Actionable
addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, removeAction, removeActions, replaceAction, replaceActions
-
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.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
Methods inherited from interface hudson.model.DescriptorByNameOwner
getDescriptorByName
-
-
-
-
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 jobduration
- Duration (in milliseconds) of the external job runstream
- 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 jobduration
- Duration (in milliseconds) of the external job runlog
- External job log- Throws:
IOException
-
-