Package jenkins.plugins.nodejs.cache
Class PerJobCacheLocationLocator
java.lang.Object
hudson.model.AbstractDescribableImpl<CacheLocationLocator>
jenkins.plugins.nodejs.cache.CacheLocationLocator
jenkins.plugins.nodejs.cache.PerJobCacheLocationLocator
- All Implemented Interfaces:
ExtensionPoint
,Describable<CacheLocationLocator>
Relocates the NPM's default cache to the workspace folder. This allow clean
unused packages when the job is gone.
-
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
-
PerJobCacheLocationLocator
@DataBoundConstructor public PerJobCacheLocationLocator()
-
-
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.
-