mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 04:22:16 +00:00
Added DescriptorImpl
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15918 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
b72fa5ba7a
commit
a449d2a7e1
2 files changed
+26
-3
No files matched your search
@@ -190,10 +190,7 @@ public abstract class FileSystemProvisioner implements ExtensionPoint, Describab
|
||||
* Default implementation that doesn't rely on any file system specific capability,
|
||||
* and thus can be used anywhere that Hudson runs.
|
||||
*/
|
||||
@Extension
|
||||
public static final class Default extends FileSystemProvisioner {
|
||||
public Default() {}
|
||||
|
||||
public void prepareWorkspace(AbstractBuild<?, ?> build, FilePath ws, TaskListener listener) throws IOException, InterruptedException {
|
||||
}
|
||||
|
||||
@@ -220,5 +217,18 @@ public abstract class FileSystemProvisioner implements ExtensionPoint, Describab
|
||||
new FilePath(wss).unzip(dst);
|
||||
}
|
||||
}
|
||||
|
||||
@Extension
|
||||
public static final class DescriptorImpl extends FileSystemProvisionerDescriptor {
|
||||
public boolean discard(FilePath ws, TaskListener listener) throws IOException, InterruptedException {
|
||||
// the default provisioner doens't do anything special,
|
||||
// so allow other types to manage it
|
||||
return false;
|
||||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
return "Default";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user