Class PerExecutorCacheLocationLocator

All Implemented Interfaces:
ExtensionPoint, Describable<CacheLocationLocator>

public class PerExecutorCacheLocationLocator extends CacheLocationLocator
Relocates the NPM's default cache to a folder specific for the executor in the node home folder ~/npm-cache/$executorNumber.
  • Constructor Details

    • PerExecutorCacheLocationLocator

      @DataBoundConstructor public PerExecutorCacheLocationLocator()
  • 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.