Package jenkins.plugins.nodejs
Class NodeJSBuildWrapper
java.lang.Object
hudson.model.AbstractDescribableImpl<BuildWrapper>
hudson.tasks.BuildWrapper
jenkins.tasks.SimpleBuildWrapper
jenkins.plugins.nodejs.NodeJSBuildWrapper
- All Implemented Interfaces:
ExtensionPoint
,Describable<BuildWrapper>
A simple build wrapper that contribute the NodeJS bin path to the PATH
environment variable.
- Author:
- fcamblor, Nikolas Falco
-
Nested Class Summary
Nested classes/interfaces inherited from class jenkins.tasks.SimpleBuildWrapper
SimpleBuildWrapper.Context, SimpleBuildWrapper.Disposer
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.Environment
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionNodeJSBuildWrapper
(String nodeJSInstallationName) NodeJSBuildWrapper
(String nodeJSInstallationName, String configId) -
Method Summary
Modifier and TypeMethodDescriptioncreateLoggerDecorator
(Run<?, ?> build) Gets the NodeJS to invoke, or null to invoke the default one.void
setCacheLocationStrategy
(CacheLocationLocator cacheLocationStrategy) void
setConfigId
(String configId) void
setUp
(SimpleBuildWrapper.Context context, Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) Methods inherited from class jenkins.tasks.SimpleBuildWrapper
createContext, decorateLauncher, decorateLogger, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, requiresWorkspace, runPreCheckout, setUp, setUp
Methods inherited from class hudson.tasks.BuildWrapper
all, getProjectAction, setUp
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
NodeJSBuildWrapper
-
NodeJSBuildWrapper
-
-
Method Details
-
getNodeJS
Gets the NodeJS to invoke, or null to invoke the default one.- Returns:
- a NodeJS installation setup for this job,
null
otherwise.
-
getNodeJSInstallationName
-
getConfigId
-
setConfigId
-
getCacheLocationStrategy
-
setCacheLocationStrategy
-
setUp
public void setUp(SimpleBuildWrapper.Context context, Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) throws IOException, InterruptedException- Overrides:
setUp
in classSimpleBuildWrapper
- Throws:
IOException
InterruptedException
-
createLoggerDecorator
- Overrides:
createLoggerDecorator
in classSimpleBuildWrapper
-