Package hudson.plugins.copyartifact
Class FilePathCopyMethod
java.lang.Object
hudson.plugins.copyartifact.Copier
hudson.plugins.copyartifact.FilePathCopyMethod
- All Implemented Interfaces:
ExtensionPoint
Deprecated.
No longer used.
Default implementation of CopyMethod extension point,
using the Jenkins FilePath class. Has -100 ordinal value so any other
plugin implementing this extension point should override this one.
- Author:
- Alan Harder
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Deprecated.Creates a clone.intcopyAll(FilePath srcDir, String filter, String excludes, FilePath targetDir, boolean fingerprintArtifacts) Deprecated.Copy files matching the given file mask to the specified target.voidDeprecated.Copy a single file.voidinitialize(Run<?, ?> src, Run<?, ?> dst, FilePath srcDir, FilePath baseTargetDir) Deprecated.Called before copy-artifact operation.
-
Constructor Details
-
FilePathCopyMethod
public FilePathCopyMethod()Deprecated.
-
-
Method Details
-
copyAll
public int copyAll(FilePath srcDir, String filter, String excludes, FilePath targetDir, boolean fingerprintArtifacts) throws IOException, InterruptedException Deprecated.Description copied from class:CopierCopy files matching the given file mask to the specified target. You must override this when derivingCopier.- Overrides:
copyAllin classCopier- Parameters:
srcDir- Source directoryfilter- Ant GLOB patternexcludes- Ant GLOB pattern. Can be null.targetDir- Target directoryfingerprintArtifacts- boolean controlling if the copy should also fingerprint the artifacts- Returns:
- Number of files that were copied
- Throws:
IOException- if an error occurs while performing the operation.InterruptedException- if any thread interrupts the current thread.- See Also:
-
copyOne
public void copyOne(FilePath source, FilePath target, boolean fingerprintArtifacts) throws IOException, InterruptedException Deprecated.Description copied from class:CopierCopy a single file.- Specified by:
copyOnein classCopier- Parameters:
source- Source filetarget- Target file (includes filename; this is not the target directory). Directory for target should already exist (copy-artifact build step calls mkdirs).fingerprintArtifacts- boolean controlling if the copy should also fingerprint the artifacts- Throws:
IOException- if an error occurs while performing the operation.InterruptedException- if any thread interrupts the current thread.- See Also:
-
clone
Deprecated.Description copied from class:CopierCreates a clone. This method is only called before theCopier.init(Run, AbstractBuild, FilePath, FilePath)method to allow each initialize-end session to run against different objects, so you need not copy any state that yourCopiermight maintain. This is a cheap hack to implement a factory withot breaking backward compatibility. If you maintain no state, this method can returnthiswithout creating a copy. -
initialize
public void initialize(Run<?, ?> src, Run<?, throws IOException, InterruptedException?> dst, FilePath srcDir, FilePath baseTargetDir) Deprecated.Description copied from class:CopierCalled before copy-artifact operation.- Overrides:
initializein classCopier- Parameters:
src- The build record from which we are copying artifacts.dst- The built into which we are copying artifacts.srcDir- Source for upcoming file copybaseTargetDir- Base target dir for upcoming file copy (the copy-artifact build step may later specify a deeper target dir)- Throws:
IOException- if an error occurs while performing the operation.InterruptedException- if any thread interrupts the current thread.
-