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
Recorder
that archives a build's workspace (or subset thereof) as a WorkspaceSnapshot
,
for use by another project using CloneWorkspaceSCM
.- Author:
- Andrew Bayer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final class
static final class
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
ConstructorsConstructorDescriptionCloneWorkspacePublisher
(String workspaceGlob, String workspaceExcludeGlob, String criteria, String archiveMethod, boolean overrideDefaultExcludes) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
perform
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) 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
-
Constructor Details
-
CloneWorkspacePublisher
-
-
Method Details
-
getRequiredMonitorService
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classRecorder
-
getWorkspaceGlob
-
getWorkspaceExcludeGlob
-
getCriteria
-
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
-