jenkins.plugins.nodejs.tools
Class NodeJSInstaller

java.lang.Object
  extended by hudson.tools.ToolInstaller
      extended by hudson.tools.DownloadFromUrlInstaller
          extended by jenkins.plugins.nodejs.tools.NodeJSInstaller
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tools.ToolInstaller>

public class NodeJSInstaller
extends hudson.tools.DownloadFromUrlInstaller

Install NodeJS from nodejs.org

Since:
0.2
Author:
Frédéric Camblor

Nested Class Summary
static class NodeJSInstaller.CPU
          CPU type.
static class NodeJSInstaller.DescriptorImpl
           
static class NodeJSInstaller.Platform
          Supported platform.
static class NodeJSInstaller.Preference
           
 
Nested classes/interfaces inherited from class hudson.tools.DownloadFromUrlInstaller
hudson.tools.DownloadFromUrlInstaller.Installable, hudson.tools.DownloadFromUrlInstaller.InstallableList
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static String NPM_PACKAGES_RECORD_FILENAME
           
 
Fields inherited from class hudson.tools.DownloadFromUrlInstaller
id
 
Fields inherited from class hudson.tools.ToolInstaller
tool
 
Constructor Summary
NodeJSInstaller(String id, String npmPackages, long npmPackagesRefreshHours)
           
 
Method Summary
protected static hudson.FilePath _preferredLocation(hudson.tools.ToolInstallation tool, hudson.model.Node node)
          COPY PASTER ToolInstaller.preferredLocation() in order to make it static...
static hudson.FilePath binFolderOf(NodeJSInstallation intallation, hudson.model.Node node)
           
 String getNpmPackages()
           
 Long getNpmPackagesRefreshHours()
           
 hudson.FilePath performInstallation(hudson.tools.ToolInstallation tool, hudson.model.Node node, hudson.model.TaskListener log)
           
 
Methods inherited from class hudson.tools.DownloadFromUrlInstaller
findPullUpDirectory, getInstallable, isUpToDate
 
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
 

Field Detail

NPM_PACKAGES_RECORD_FILENAME

public static final String NPM_PACKAGES_RECORD_FILENAME
See Also:
Constant Field Values
Constructor Detail

NodeJSInstaller

@DataBoundConstructor
public NodeJSInstaller(String id,
                                            String npmPackages,
                                            long npmPackagesRefreshHours)
Method Detail

binFolderOf

public static hudson.FilePath binFolderOf(NodeJSInstallation intallation,
                                          hudson.model.Node node)

_preferredLocation

protected static hudson.FilePath _preferredLocation(hudson.tools.ToolInstallation tool,
                                                    hudson.model.Node node)
COPY PASTER ToolInstaller.preferredLocation() in order to make it static... Weird Convenience method to find a location to install a tool.

Parameters:
tool - the tool being installed
node - the computer on which to install the tool
Returns:
ToolInstallation.getHome() if specified, else a path within the local Jenkins work area named according to ToolInstallation.getName()
Since:
1.310

performInstallation

public hudson.FilePath performInstallation(hudson.tools.ToolInstallation tool,
                                           hudson.model.Node node,
                                           hudson.model.TaskListener log)
                                    throws IOException,
                                           InterruptedException
Overrides:
performInstallation in class hudson.tools.DownloadFromUrlInstaller
Throws:
IOException
InterruptedException

getNpmPackages

public String getNpmPackages()

getNpmPackagesRefreshHours

public Long getNpmPackagesRefreshHours()


Copyright © 2004-2014. All Rights Reserved.