public class NodeJSInstallation extends hudson.tools.ToolInstallation implements hudson.model.EnvironmentSpecific<NodeJSInstallation>, hudson.slaves.NodeSpecific<NodeJSInstallation>
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeJSInstallation.DescriptorImpl |
| Modifier | Constructor and Description |
|---|---|
|
NodeJSInstallation(String name,
String home,
List<? extends hudson.tools.ToolProperty<?>> properties) |
protected |
NodeJSInstallation(String name,
String home,
List<? extends hudson.tools.ToolProperty<?>> properties,
Platform platform) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildEnvVars(hudson.EnvVars env) |
NodeJSInstallation |
forEnvironment(hudson.EnvVars environment) |
NodeJSInstallation |
forNode(hudson.model.Node node,
hudson.model.TaskListener log) |
String |
getExecutable(hudson.Launcher launcher)
Gets the executable path of NodeJS on the given target system.
|
@DataBoundConstructor public NodeJSInstallation(@Nonnull String name, @Nonnull String home, List<? extends hudson.tools.ToolProperty<?>> properties)
public NodeJSInstallation forEnvironment(hudson.EnvVars environment)
forEnvironment in interface hudson.model.EnvironmentSpecific<NodeJSInstallation>public NodeJSInstallation forNode(@Nonnull hudson.model.Node node, hudson.model.TaskListener log) throws IOException, InterruptedException
forNode in interface hudson.slaves.NodeSpecific<NodeJSInstallation>IOExceptionInterruptedExceptionpublic void buildEnvVars(hudson.EnvVars env)
buildEnvVars in class hudson.tools.ToolInstallationpublic String getExecutable(hudson.Launcher launcher) throws InterruptedException, IOException
launcher - a way to start processesnull
otherwise.InterruptedException - if the step is interruptedIOException - if something goes wrongCopyright © 2016–2018. All rights reserved.