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 classstatic final classstatic final classNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested 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 TypeMethodDescriptionbooleanbooleanperform(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, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
-
Constructor Details
-
CloneWorkspacePublisher
-
-
Method Details
-
getRequiredMonitorService
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Publisher>- Overrides:
getDescriptorin classRecorder
-
getWorkspaceGlob
-
getWorkspaceExcludeGlob
-
getCriteria
-
getArchiveMethod
-
getOverrideDefaultExcludes
public boolean getOverrideDefaultExcludes() -
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedException
-
snapshot
public WorkspaceSnapshot snapshot(AbstractBuild<?, ?> build, FilePath ws, DirScanner scanner, TaskListener listener, String archiveMethod) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-