Package hudson.cli
Class SetExternalBuildResultCommand
- java.lang.Object
-
- hudson.cli.CLICommand
-
- hudson.cli.SetExternalBuildResultCommand
-
- All Implemented Interfaces:
ExtensionPoint
,Cloneable
@Extension public class SetExternalBuildResultCommand extends CLICommand
Set build result for external monitor job.- Author:
- David Ostrovsky
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description String
displayName
boolean
dumpBuildNumber
long
duration
TopLevelItem
job
String
log
int
result
-
Constructor Summary
Constructors Constructor Description SetExternalBuildResultCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getShortDescription()
protected int
run()
Entry point to the SetExternalBuildResultCommand command.-
Methods inherited from class hudson.cli.CLICommand
all, checkChannel, clone, createClone, getClientCharset, getClientEnvironmentVariable, getClientSystemProperty, getCmdLineParser, getCurrent, getLongDescription, getName, getSingleLineSummary, getTransportAuthentication, getTransportAuthentication2, getUsage, main, printUsage, printUsageSummary, registerOptionHandlers, setClientCharset, setTransportAuth, setTransportAuth2
-
-
-
-
Field Detail
-
job
public transient TopLevelItem job
-
displayName
public transient String displayName
-
result
public transient int result
-
duration
public transient long duration
-
log
public String log
-
dumpBuildNumber
public boolean dumpBuildNumber
-
-
Method Detail
-
getShortDescription
public String getShortDescription()
- Specified by:
getShortDescription
in classCLICommand
-
run
protected int run() throws Exception
Entry point to the SetExternalBuildResultCommand command.Schedule an external build, put passed build result. If log is '-' then gzipped stream is expected on stdin, otherwise it is raw string (not BASE64 encoded). If -dump-build-number is set, the new created build number dumped to the stdout
- Specified by:
run
in classCLICommand
- Returns:
- 0: success.
- Throws:
Exception
-
-