Package hudson.plugins.cloneworkspace
Class CloneWorkspacePublisher
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Recorder
-
- hudson.plugins.cloneworkspace.CloneWorkspacePublisher
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
public class CloneWorkspacePublisher extends Recorder
Recorder
that archives a build's workspace (or subset thereof) as aWorkspaceSnapshot
, for use by another project usingCloneWorkspaceSCM
.- Author:
- Andrew Bayer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CloneWorkspacePublisher.DescriptorImpl
static class
CloneWorkspacePublisher.WorkspaceSnapshotTar
static class
CloneWorkspacePublisher.WorkspaceSnapshotZip
-
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description CloneWorkspacePublisher(String workspaceGlob, String workspaceExcludeGlob, String criteria, String archiveMethod, boolean overrideDefaultExcludes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getArchiveMethod()
String
getCriteria()
CloneWorkspacePublisher.DescriptorImpl
getDescriptor()
boolean
getOverrideDefaultExcludes()
BuildStepMonitor
getRequiredMonitorService()
String
getWorkspaceExcludeGlob()
String
getWorkspaceGlob()
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
WorkspaceSnapshot
snapshot(AbstractBuild<?,?> build, FilePath ws, DirScanner scanner, TaskListener listener, String archiveMethod)
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
-
-
-
-
Method Detail
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
-
getDescriptor
public CloneWorkspacePublisher.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classRecorder
-
getWorkspaceGlob
public String getWorkspaceGlob()
-
getWorkspaceExcludeGlob
public String getWorkspaceExcludeGlob()
-
getCriteria
public String getCriteria()
-
getArchiveMethod
public String getArchiveMethod()
-
getOverrideDefaultExcludes
public boolean getOverrideDefaultExcludes()
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException
- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
-
snapshot
public WorkspaceSnapshot snapshot(AbstractBuild<?,?> build, FilePath ws, DirScanner scanner, TaskListener listener, String archiveMethod) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-