public class ExternalRun extends hudson.model.Run<ExternalJob,ExternalRun>
Run
for ExternalJob
.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
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, checkPermission, 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, getBuildStatusIconClassName, getBuildStatusSummary, getBuildStatusUrl, getCause, getCauses, getCharacteristicEnvVars, getCharset, getDescription, getDescriptorByName, getDisplayName, getDuration, getDurationString, getDynamic, getEnvironment, getEnvironment, getEnvVars, getEstimatedDuration, getExecutor, getExternalizableId, getFullDisplayName, getHasArtifacts, getIconColor, getId, getIDFormatter, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNextBuild, getNumber, getOneOffExecutor, getParent, getPreviousBuild, getPreviousBuildInProgress, getPreviousBuildsOverThreshold, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getPreviousSuccessfulBuild, getResult, getRootDir, getSearchUrl, getStartTimeInMillis, getTime, getTimeInMillis, getTimestamp, getTimestampString, getTimestampString2, getTransientActions, getTruncatedDescription, getUrl, getWhyKeepLog, 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
doContextMenu, getAction, getAction, getActions, getActions, getAllActions, replaceAction
public void run(String[] cmd)
public void acceptRemoteSubmission(Reader in) throws IOException
The format of the XML is:
...console output... exit code
IOException
public void acceptRemoteSubmission(int result, long duration, InputStream stream) throws IOException
IOException
public void acceptRemoteSubmission(int result, long duration, String log) throws IOException
IOException
Copyright © 2014. All rights reserved.