Class DefaultCacheLocationLocator

All Implemented Interfaces:
ExtensionPoint, Describable<CacheLocationLocator>

public class DefaultCacheLocationLocator extends CacheLocationLocator
Uses NPM's default global cache, which is actually ~/.npm on Unix system or %APP_DATA%\npm-cache on Windows system.
  • Constructor Details

    • DefaultCacheLocationLocator

      @DataBoundConstructor public DefaultCacheLocationLocator()
  • Method Details

    • locate

      public FilePath locate(@NonNull FilePath workspace)
      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 class CacheLocationLocator
      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.