public class NodeJSCommandInterpreter
extends hudson.tasks.CommandInterpreter
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeJSCommandInterpreter.NodeJsDescriptor
Provides builder details for the job configuration page.
|
| Constructor and Description |
|---|
NodeJSCommandInterpreter(String command,
String nodeJSInstallationName,
String configId)
Constructs a
NodeJSCommandInterpreter with specified command. |
| Modifier and Type | Method and Description |
|---|---|
String[] |
buildCommandLine(hudson.FilePath script) |
String |
getConfigId() |
protected String |
getContents() |
protected String |
getFileExtension() |
NodeJSInstallation |
getNodeJS()
Gets the NodeJS to invoke, or null to invoke the default one.
|
String |
getNodeJSInstallationName() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
createScriptFile, getCommand, join, performall, getDescriptor, getRequiredMonitorService, prebuild@DataBoundConstructor public NodeJSCommandInterpreter(String command, String nodeJSInstallationName, String configId)
NodeJSCommandInterpreter with specified command.command - the NodeJS scriptnodeJSInstallationName - the NodeJS label configured in JenkinsconfigId - the provided Config idpublic NodeJSInstallation getNodeJS()
null otherwise.public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.CommandInterpreterInterruptedExceptionpublic String[] buildCommandLine(hudson.FilePath script)
buildCommandLine in class hudson.tasks.CommandInterpreterprotected String getContents()
getContents in class hudson.tasks.CommandInterpreterprotected String getFileExtension()
getFileExtension in class hudson.tasks.CommandInterpreterpublic String getNodeJSInstallationName()
public String getConfigId()
Copyright © 2016–2017. All rights reserved.