public static final class FileSystemProvisioner.Default extends FileSystemProvisioner
| Modifier and Type | Class and Description |
|---|---|
static class |
FileSystemProvisioner.Default.DescriptorImpl |
static class |
FileSystemProvisioner.Default.WorkspaceSnapshotImpl |
FileSystemProvisioner.DefaultExtensionPoint.LegacyInstancesAreScopedToHudsonDEFAULT| Constructor and Description |
|---|
Default() |
| Modifier and Type | Method and Description |
|---|---|
void |
discardWorkspace(AbstractProject<?,?> project,
FilePath ws)
When a project is deleted, this method is called to undo the effect of
FileSystemProvisioner.prepareWorkspace(AbstractBuild, FilePath, TaskListener). |
void |
prepareWorkspace(AbstractBuild<?,?> build,
FilePath ws,
TaskListener listener)
Called very early in the build (before a build places any files
in the workspace, such as SCM checkout) to provision a workspace
for the build.
|
WorkspaceSnapshot |
snapshot(AbstractBuild<?,?> build,
FilePath ws,
String glob,
TaskListener listener)
Creates a tar ball.
|
WorkspaceSnapshot |
snapshot(AbstractBuild<?,?> build,
FilePath ws,
TaskListener listener)
Deprecated.
as of 1.350
|
all, getDescriptorpublic void prepareWorkspace(AbstractBuild<?,?> build, FilePath ws, TaskListener listener) throws IOException, InterruptedException
FileSystemProvisioner
This method can prepare the underlying file system in preparation
for the later snapshot(AbstractBuild, FilePath, TaskListener).
TODO : the method needs to be able to see the snapshot would
be later needed. In fact, perhaps we should only call this method
when Hudson knows that a snapshot is later needed?
prepareWorkspace in class FileSystemProvisionerws - New workspace should be prepared in this location. This is the same value as
build.getProject().getWorkspace() but passed separately for convenience.IOExceptionInterruptedExceptionpublic void discardWorkspace(AbstractProject<?,?> project, FilePath ws) throws IOException, InterruptedException
FileSystemProvisionerFileSystemProvisioner.prepareWorkspace(AbstractBuild, FilePath, TaskListener).discardWorkspace in class FileSystemProvisionerproject - Project whose workspace is being discarded.ws - Workspace to be discarded. This workspace is on the node
this FileSystemProvisioner is provisioned for.IOExceptionInterruptedException@Deprecated public WorkspaceSnapshot snapshot(AbstractBuild<?,?> build, FilePath ws, TaskListener listener) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic WorkspaceSnapshot snapshot(AbstractBuild<?,?> build, FilePath ws, String glob, TaskListener listener) throws IOException, InterruptedException
snapshot in class FileSystemProvisionerws - New workspace should be prepared in this location. This is the same value as
build.getWorkspace() but passed separately for convenience.glob - Ant-style file glob for files to include in the snapshot. May not be pertinent for all
implementations.IOExceptionInterruptedExceptionCopyright © 2019. All rights reserved.