hudson.cli
Class CommandDuringBuild

java.lang.Object
  extended by hudson.cli.CLICommand
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.cli.CLICommand
channel, locale, stderr, stdin, stdout, TRANSPORT_AUTHENTICATION
 
Constructor Summary
CommandDuringBuild()
           
 
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
 

Constructor Detail

CommandDuringBuild

public CommandDuringBuild()
Method Detail

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.