public class WorkspaceManager extends Object
Modifier and Type | Method and Description |
---|---|
static Workspace |
cleanup(PlasticTool tool,
hudson.FilePath workspacePath,
CleanupMethod cleanup,
List<Workspace> workspaces) |
static void |
cleanWorkspace(PlasticTool tool,
hudson.FilePath workspacePath,
CleanupMethod cleanup) |
static Workspace |
createWorkspace(PlasticTool tool,
hudson.FilePath workspacePath,
String workspaceName) |
static void |
deleteWorkspace(PlasticTool tool,
hudson.FilePath workspacePath) |
protected static Workspace |
findWorkspaceByPath(hudson.FilePath workspacePath,
List<Workspace> workspaces) |
protected static List<Workspace> |
findWorkspacesInsidePath(hudson.FilePath workspacePath,
List<Workspace> workspaces) |
protected static List<Workspace> |
findWorkspacesOutsidePath(hudson.FilePath workspacePath,
List<Workspace> workspaces) |
static String |
generateUniqueWorkspaceName() |
protected static boolean |
isNestedWorkspacePath(String basePath,
String nestedPath) |
protected static boolean |
isSameWorkspacePath(String actual,
String expected) |
static List<Workspace> |
loadWorkspaces(PlasticTool tool,
hudson.remoting.VirtualChannel channel) |
protected static List<Workspace> |
matchWorkspaces(List<Workspace> workspaces,
com.codicesoftware.plugins.hudson.WorkspaceManager.WorkspacePathMatcher matcher) |
static Workspace |
prepare(PlasticTool tool,
hudson.model.TaskListener listener,
hudson.FilePath workspacePath,
CleanupMethod cleanup) |
static void |
setSelector(PlasticTool tool,
hudson.FilePath workspacePath,
String selector) |
static void |
switchTo(PlasticTool tool,
hudson.FilePath workspacePath,
UpdateToSpec spec) |
public static Workspace prepare(@Nonnull PlasticTool tool, @Nonnull hudson.model.TaskListener listener, @Nonnull hudson.FilePath workspacePath, @Nonnull CleanupMethod cleanup) throws IOException, InterruptedException
IOException
InterruptedException
public static Workspace cleanup(PlasticTool tool, hudson.FilePath workspacePath, CleanupMethod cleanup, List<Workspace> workspaces) throws IOException, InterruptedException, ParseException
public static List<Workspace> loadWorkspaces(PlasticTool tool, hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException, ParseException
public static Workspace createWorkspace(PlasticTool tool, hudson.FilePath workspacePath, String workspaceName) throws IOException, InterruptedException, ParseException
public static void deleteWorkspace(PlasticTool tool, hudson.FilePath workspacePath) throws IOException, InterruptedException
IOException
InterruptedException
public static void cleanWorkspace(PlasticTool tool, hudson.FilePath workspacePath, CleanupMethod cleanup) throws IOException, InterruptedException
IOException
InterruptedException
public static void setSelector(@Nonnull PlasticTool tool, @Nonnull hudson.FilePath workspacePath, @Nonnull String selector) throws IOException, InterruptedException
IOException
InterruptedException
public static void switchTo(@Nonnull PlasticTool tool, @Nonnull hudson.FilePath workspacePath, @Nonnull UpdateToSpec spec) throws IOException, InterruptedException
IOException
InterruptedException
public static String generateUniqueWorkspaceName()
protected static Workspace findWorkspaceByPath(hudson.FilePath workspacePath, List<Workspace> workspaces)
protected static List<Workspace> findWorkspacesInsidePath(hudson.FilePath workspacePath, List<Workspace> workspaces)
protected static List<Workspace> findWorkspacesOutsidePath(hudson.FilePath workspacePath, List<Workspace> workspaces)
protected static List<Workspace> matchWorkspaces(List<Workspace> workspaces, com.codicesoftware.plugins.hudson.WorkspaceManager.WorkspacePathMatcher matcher)
Copyright © 2016–2023. All rights reserved.