Package jenkins.slaves
Class WorkspaceLocator
java.lang.Object
jenkins.slaves.WorkspaceLocator
- All Implemented Interfaces:
ExtensionPoint
Allow extensions to override workspace locations
on given agents or projects.
- Since:
- 1.501
- Author:
- ryan.campbell@gmail.com
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionList<WorkspaceLocator>
all()
All registeredWorkspaceLocator
s.abstract FilePath
locate
(TopLevelItem item, Node node) Allows extensions to customize the workspace path.
-
Constructor Details
-
WorkspaceLocator
public WorkspaceLocator()
-
-
Method Details
-
locate
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 itemnode
- The agent node- Returns:
- The absolute FilePath to the workspace on the agent. Will be created if it doesn't exist.
-
all
All registeredWorkspaceLocator
s.
-