Package jenkins.plugins.nodejs.cache
Class CacheLocationLocator
java.lang.Object
hudson.model.AbstractDescribableImpl<CacheLocationLocator>
jenkins.plugins.nodejs.cache.CacheLocationLocator
- All Implemented Interfaces:
ExtensionPoint
,Describable<CacheLocationLocator>
- Direct Known Subclasses:
DefaultCacheLocationLocator
,PerExecutorCacheLocationLocator
,PerJobCacheLocationLocator
public abstract class CacheLocationLocator
extends AbstractDescribableImpl<CacheLocationLocator>
implements ExtensionPoint
Strategy pattern that decides the location of the NPM cache location for a
build.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract FilePath
Called during the build on the master to determine the location of the local cache location.
-
Constructor Details
-
CacheLocationLocator
public CacheLocationLocator()
-
-
Method Details
-
locate
Called during the build on the master to determine the location of the local cache location.- 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.
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<CacheLocationLocator>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<CacheLocationLocator>
-