public class NodeJSInstaller
extends hudson.tools.DownloadFromUrlInstaller
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeJSInstaller.DescriptorImpl |
hudson.tools.DownloadFromUrlInstaller.Installable, hudson.tools.DownloadFromUrlInstaller.InstallableList, hudson.tools.DownloadFromUrlInstaller.NodeSpecificInstallable| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_NPM_PACKAGES_REFRESH_HOURS
Define the elapse time before perform a new npm install for defined
global packages.
|
static String |
NPM_PACKAGES_RECORD_FILENAME |
| Constructor and Description |
|---|
NodeJSInstaller(String id,
String npmPackages,
long npmPackagesRefreshHours) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areNpmPackagesUpToDate(hudson.FilePath expected,
String npmPackages,
long npmPackagesRefreshHours) |
hudson.tools.DownloadFromUrlInstaller.Installable |
getInstallable() |
String |
getNpmPackages() |
Long |
getNpmPackagesRefreshHours() |
hudson.FilePath |
performInstallation(hudson.tools.ToolInstallation tool,
hudson.model.Node node,
hudson.model.TaskListener log) |
protected void |
refreshGlobalPackages(hudson.model.Node node,
hudson.model.TaskListener log,
hudson.FilePath expected) |
public static final String NPM_PACKAGES_RECORD_FILENAME
public static final int DEFAULT_NPM_PACKAGES_REFRESH_HOURS
public hudson.tools.DownloadFromUrlInstaller.Installable getInstallable()
throws IOException
getInstallable in class hudson.tools.DownloadFromUrlInstallerIOExceptionpublic hudson.FilePath performInstallation(hudson.tools.ToolInstallation tool,
hudson.model.Node node,
hudson.model.TaskListener log)
throws IOException,
InterruptedException
performInstallation in class hudson.tools.DownloadFromUrlInstallerIOExceptionInterruptedExceptionprotected void refreshGlobalPackages(hudson.model.Node node,
hudson.model.TaskListener log,
hudson.FilePath expected)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic static boolean areNpmPackagesUpToDate(hudson.FilePath expected,
String npmPackages,
long npmPackagesRefreshHours)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic String getNpmPackages()
public Long getNpmPackagesRefreshHours()
Copyright © 2016–2018. All rights reserved.