Package hudson.cli
Class SetExternalBuildResultCommand
java.lang.Object
hudson.cli.CLICommand
hudson.cli.SetExternalBuildResultCommand
- All Implemented Interfaces:
ExtensionPoint
,Cloneable
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
FieldsModifier and TypeFieldDescriptionboolean
long
int
Fields inherited from class hudson.cli.CLICommand
ALLOW_AT_SYNTAX, channel, locale, stderr, stdin, stdout
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
job
-
displayName
-
result
public transient int result -
duration
public transient long duration -
log
-
dumpBuildNumber
public boolean dumpBuildNumber
-
-
Constructor Details
-
SetExternalBuildResultCommand
public SetExternalBuildResultCommand()
-
-
Method Details
-
getShortDescription
- Specified by:
getShortDescription
in classCLICommand
-
run
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
-