public class ExternalRun extends Run<ExternalJob,ExternalRun>
Run for ExternalJob.Run.Artifact, Run.ArtifactList, Run.KeepLogBuildBadge, Run.RedirectUp, Run.RunExecution, Run.Runner, Run.RunnerAbortedException, Run.StatusSummarizer, Run.SummaryExtensionPoint.LegacyInstancesAreScopedToHudsonModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItemARTIFACTS, 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| Modifier and Type | Method and 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.
|
_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, writeWholeLogToaddOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, removeAction, removeActions, replaceAction, replaceActionsgetSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckPermission, hasPermission, hasPermissiongetDescriptorByNamepublic void run(String[] cmd)
cmd - command to run as a build@IgnoreJRERequirement public void acceptRemoteSubmission(Reader in) throws IOException
The format of the XML is:
<pre><xmp>
<run>
<log>...console output...</log>
<result>exit code</result>
</run>
</xmp></pre>
in - Log file referencIOExceptionpublic void acceptRemoteSubmission(int result,
long duration,
InputStream stream)
throws IOException
result - Result code of the external jobduration - Duration (in milliseconds) of the external job runstream - Stream of external job logIOExceptionpublic void acceptRemoteSubmission(int result,
long duration,
String log)
throws IOException
result - Result code of the external jobduration - Duration (in milliseconds) of the external job runlog - External job logIOExceptionCopyright © 2016–2022. All rights reserved.