Class WorkspaceLocator

java.lang.Object
jenkins.slaves.WorkspaceLocator
All Implemented Interfaces:
ExtensionPoint

public abstract class WorkspaceLocator extends Object implements ExtensionPoint
Allow extensions to override workspace locations on given agents or projects.
Since:
1.501
Author:
ryan.campbell@gmail.com
  • Constructor Details

    • WorkspaceLocator

      public WorkspaceLocator()
  • Method Details

    • locate

      public abstract FilePath locate(TopLevelItem item, Node node)
      Allows extensions to customize the workspace path. The first non-null response will determine the path to the workspace on that agent.
      Parameters:
      item - The toplevel item
      node - The agent node
      Returns:
      The absolute FilePath to the workspace on the agent. Will be created if it doesn't exist.
    • all

      public static ExtensionList<WorkspaceLocator> all()
      All registered WorkspaceLocators.