hudson.tools
Class CommandInstaller

java.lang.Object
  extended by hudson.tools.ToolInstaller
      extended by hudson.tools.CommandInstaller
All Implemented Interfaces:
ExtensionPoint, Describable<ToolInstaller>

public class CommandInstaller
extends ToolInstaller

Installs a tool by running an arbitrary shell command.

Since:
1.305

Nested Class Summary
static class CommandInstaller.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.tools.ToolInstaller
tool
 
Constructor Summary
CommandInstaller(String label, String command, String toolHome)
           
 
Method Summary
 String getCommand()
           
 String getToolHome()
           
 FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log)
          Ensure that the configured tool is really installed.
 
Methods inherited from class hudson.tools.ToolInstaller
appliesTo, getDescriptor, getLabel, preferredLocation, setTool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandInstaller

@DataBoundConstructor
public CommandInstaller(String label,
                                             String command,
                                             String toolHome)
Method Detail

getCommand

public String getCommand()

getToolHome

public String getToolHome()

performInstallation

public FilePath performInstallation(ToolInstallation tool,
                                    Node node,
                                    TaskListener log)
                             throws IOException,
                                    InterruptedException
Description copied from class: ToolInstaller
Ensure that the configured tool is really installed. If it is already installed, do nothing. Called only if ToolInstaller.appliesTo(Node) are true.

Specified by:
performInstallation in class ToolInstaller
Parameters:
tool - the tool being installed
node - the computer on which to install the tool
log - any status messages produced by the installation go here
Returns:
the (directory) path at which the tool can be found, typically coming from ToolInstaller.preferredLocation(hudson.tools.ToolInstallation, hudson.model.Node)
Throws:
IOException - if installation fails
InterruptedException - if communication with a slave is interrupted


Copyright © 2004-2013. All Rights Reserved.