jenkins.plugins.nodejs.tools
Class NodeJSInstaller
java.lang.Object
hudson.tools.ToolInstaller
hudson.tools.DownloadFromUrlInstaller
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 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 |
| Fields inherited from class hudson.tools.DownloadFromUrlInstaller |
id |
| Fields inherited from class hudson.tools.ToolInstaller |
tool |
| 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 |
NPM_PACKAGES_RECORD_FILENAME
public static final String NPM_PACKAGES_RECORD_FILENAME
- See Also:
- Constant Field Values
NodeJSInstaller
@DataBoundConstructor
public NodeJSInstaller(String id,
String npmPackages,
long npmPackagesRefreshHours)
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 installednode - 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-2013. All Rights Reserved.