hudson.plugins.nodejs
Class NodeJsCommandInterpreter
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
hudson.tasks.CommandInterpreter
hudson.plugins.nodejs.NodeJsCommandInterpreter
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep
public class NodeJsCommandInterpreter
- extends hudson.tasks.CommandInterpreter
This class executes a JavaScript file using node. The file should contain
NodeJS script specified in the job configuration.
- Author:
- cliffano
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
hudson.tasks.BuildStep.PublisherList |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.tasks.CommandInterpreter |
command |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
| Methods inherited from class hudson.tasks.CommandInterpreter |
getCommand, perform, perform |
| Methods inherited from class hudson.tasks.Builder |
all, getProjectAction, getRequiredMonitorService, prebuild |
| Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
getProjectAction, perform, prebuild |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.tasks.BuildStep |
getProjectAction, prebuild |
DESCRIPTOR
@Extension
public static final NodeJsCommandInterpreter.NodeJsDescriptor DESCRIPTOR
NodeJsCommandInterpreter
public NodeJsCommandInterpreter(java.lang.String command)
- Constructs a
NodeJsCommandInterpreter with specified command.
- Parameters:
command - the NodeJS script
buildCommandLine
public java.lang.String[] buildCommandLine(hudson.FilePath filePath)
- Builds the command line.
- Specified by:
buildCommandLine in class hudson.tasks.CommandInterpreter
- Parameters:
filePath -
- Returns:
- an array containing node command and the script location
getContents
public java.lang.String getContents()
- Specified by:
getContents in class hudson.tasks.CommandInterpreter
- Returns:
- the command
getFileExtension
public java.lang.String getFileExtension()
- Specified by:
getFileExtension in class hudson.tasks.CommandInterpreter
- Returns:
- the file extension
getDescriptor
public hudson.model.Descriptor<hudson.tasks.Builder> getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>- Overrides:
getDescriptor in class hudson.tasks.Builder
- Returns:
- the descriptor
Copyright © 2010. All Rights Reserved.