Class FingerprintingCopyMethod

java.lang.Object
hudson.plugins.copyartifact.Copier
hudson.plugins.copyartifact.FingerprintingCopyMethod
All Implemented Interfaces:
ExtensionPoint

@Deprecated @Extension(ordinal=-100.0) public class FingerprintingCopyMethod extends Copier
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
  • Constructor Details

    • FingerprintingCopyMethod

      public FingerprintingCopyMethod()
      Deprecated.
  • Method Details

    • initialize

      public void initialize(Run<?,?> src, Run<?,?> dst, FilePath srcDir, FilePath baseTargetDir) throws IOException, InterruptedException
      Deprecated.
      Description copied from class: Copier
      Called before copy-artifact operation.
      Overrides:
      initialize in class Copier
      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 copy
      baseTargetDir - 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: Copier
      Copy files matching the given file mask to the specified target. You must override this when deriving Copier.
      Overrides:
      copyAll in class Copier
      Parameters:
      srcDir - Source directory
      filter - Ant GLOB pattern
      excludes - Ant GLOB pattern. Can be null.
      targetDir - Target directory
      fingerprintArtifacts - 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: Copier
      Copy a single file.
      Specified by:
      copyOne in class Copier
      Parameters:
      s - Source file
      d - 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: Copier
      Ends what's started by the Copier.init(Run, AbstractBuild, FilePath, FilePath) method.
      Overrides:
      end in class Copier
    • clone

      public Copier clone()
      Deprecated.
      Description copied from class: Copier
      Creates a clone. This method is only called before the Copier.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 your Copier might maintain. This is a cheap hack to implement a factory withot breaking backward compatibility. If you maintain no state, this method can return this without creating a copy.
      Specified by:
      clone in class Copier