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)
Constructs a
NodeJSCommandInterpreter with specified command. |
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() |
protected boolean |
internalPerform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
void |
setConfigId(String configId) |
createScriptFile, getCommand, join, performall, getDescriptor, getRequiredMonitorService, prebuild@DataBoundConstructor public NodeJSCommandInterpreter(String command, String nodeJSInstallationName)
NodeJSCommandInterpreter with specified command.command - the NodeJS scriptnodeJSInstallationName - the NodeJS label configured in Jenkinspublic 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.TaskListener listener)
throws InterruptedException
perform in class hudson.tasks.CommandInterpreterInterruptedExceptionprotected boolean internalPerform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws InterruptedException
InterruptedExceptionpublic 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()
@DataBoundSetter public void setConfigId(String configId)
Copyright © 2016–2017. All rights reserved.