hudson.cli
Class CommandDuringBuild
java.lang.Object
hudson.cli.CLICommand
hudson.cli.CommandDuringBuild
- All Implemented Interfaces:
- ExtensionPoint, Cloneable
- Direct Known Subclasses:
- SetBuildResultCommand
public abstract class CommandDuringBuild
- extends CLICommand
Base class for those commands that are valid only during a build.
- Author:
- Kohsuke Kawaguchi
Method Summary |
protected Run |
getCurrentlyBuilding()
This method makes sense only when called from within the build kicked by Hudson. |
Methods inherited from class hudson.cli.CLICommand |
all, checkChannel, clone, createClone, getClientCharset, getClientEnvironmentVariable, getClientSystemProperty, getCurrent, getName, getShortDescription, getTransportAuthentication, loadStoredAuthentication, main, printUsage, printUsageSummary, registerOptionHandlers, run, setTransportAuth, shouldPerformAuthentication |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandDuringBuild
public CommandDuringBuild()
getCurrentlyBuilding
protected Run getCurrentlyBuilding()
throws org.kohsuke.args4j.CmdLineException
- This method makes sense only when called from within the build kicked by Hudson.
We use the environment variables that Hudson sets to determine the build that is being run.
- Throws:
org.kohsuke.args4j.CmdLineException
Copyright © 2004-2013. All Rights Reserved.