Package hudson.plugins.copyartifact
Class FingerprintingCopyMethod
java.lang.Object
hudson.plugins.copyartifact.Copier
hudson.plugins.copyartifact.FingerprintingCopyMethod
- All Implemented Interfaces:
ExtensionPoint
Deprecated.
No longer used.
Performs fingerprinting during the copy.
This minimizes the cost of the fingerprinting as the I/O bound nature of the copy operation
masks the cost of digest computation.
- Author:
- Kohsuke Kawaguchi
-
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.voidend()Deprecated.Ends what's started by theCopier.init(Run, AbstractBuild, FilePath, FilePath)method.voidinitialize(Run<?, ?> src, Run<?, ?> dst, FilePath srcDir, FilePath baseTargetDir) Deprecated.Called before copy-artifact operation.
-
Constructor Details
-
FingerprintingCopyMethod
public FingerprintingCopyMethod()Deprecated.
-
-
Method Details
-
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.
-
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 s, FilePath d, boolean fingerprintArtifacts) throws IOException, InterruptedException Deprecated.Description copied from class:CopierCopy a single file.- Specified by:
copyOnein classCopier- Parameters:
s- Source filed- 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:
-
end
public void end()Deprecated.Description copied from class:CopierEnds what's started by theCopier.init(Run, AbstractBuild, FilePath, FilePath)method. -
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.
-