public abstract class AbstractBuildRangeCommand extends CLICommand
CLICommand
that acts on a series of AbstractBuild
s.ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
AbstractProject<?,?> |
job |
String |
range |
channel, locale, stderr, stdin, stdout, TRANSPORT_AUTHENTICATION
Constructor and Description |
---|
AbstractBuildRangeCommand() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
act(List<AbstractBuild<?,?>> builds) |
protected int |
run()
Executes the command, and return the exit code.
|
all, checkChannel, clone, createClone, getClientCharset, getClientEnvironmentVariable, getClientSystemProperty, getCmdLineParser, getCurrent, getLongDescription, getName, getShortDescription, getSingleLineSummary, getTransportAuthentication, getUsage, loadStoredAuthentication, main, printUsage, printUsageSummary, registerOptionHandlers, setTransportAuth, shouldPerformAuthentication
public AbstractProject<?,?> job
public String range
protected int run() throws Exception
CLICommand
This is an internal contract between CLICommand
and its subtype.
To execute CLI method from outside, use CLICommand.main(List, Locale, InputStream, PrintStream, PrintStream)
run
in class CLICommand
AbortException
- If the processing should be aborted. Hudson will report the error message
without stack trace, and then exits this command.Exception
- All the other exceptions cause the stack trace to be dumped, and then
the command exits with an error code.protected abstract int act(List<AbstractBuild<?,?>> builds) throws IOException
IOException
Copyright © 2015. All rights reserved.