Package jenkins.plugins.nodejs.cache
Class DefaultCacheLocationLocator
java.lang.Object
hudson.model.AbstractDescribableImpl<CacheLocationLocator>
jenkins.plugins.nodejs.cache.CacheLocationLocator
jenkins.plugins.nodejs.cache.DefaultCacheLocationLocator
- All Implemented Interfaces:
ExtensionPoint
,Describable<CacheLocationLocator>
Uses NPM's default global cache, which is actually
~/.npm
on Unix
system or %APP_DATA%\npm-cache
on Windows system.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Methods inherited from class jenkins.plugins.nodejs.cache.CacheLocationLocator
getDescriptor
-
Constructor Details
-
DefaultCacheLocationLocator
@DataBoundConstructor public DefaultCacheLocationLocator()
-
-
Method Details
-
locate
Description copied from class:CacheLocationLocator
Called during the build on the master to determine the location of the local cache location.- Specified by:
locate
in classCacheLocationLocator
- Parameters:
workspace
- the workspace file path locator- Returns:
- null to let NPM uses its default location. Otherwise this must be located on the same node as described by this path.
-