Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23313

Overwrite Files or only cleanup files to be copied to remote directory

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Won't Fix
    • Labels:
      None
    • Environment:
      JENKINS WAR VERSION 1.566
      WINDOWS SERVER 2008 R2 ENTERPRISE
      AMD OPTERON(TM) PROCESSOR 6136 2.4 GHZ (2 PROCESSORS)
      4.0 GB RAM
      64-BIT OPERATION SYSTEM
      WEBSPHERE APPLICATION SERVER 8.5.5
    • Similar Issues:

      Description

      When attempting to write to a remote server unless you specify "Clean-up remote directory before deployment" the files fail to move with error:

      [ArtifactDeployer] - Starting deployment from the post-action ...
      [ArtifactDeployer] - All the files have not been deployed. There was 2 input files but only 0 was copied. Maybe you have to use 'Delete content of remote directory' feature for deleting remote directory before deploying.
      [ArtifactDeployer] - Stopping deployment from the post-action...

      I assume this is the option that is what the error is referring to as there is no option for 'Delete content of remote directory'. The only issue with this is that it deletes everything from the directory. This is a file share and there are other files in the directory that need to reside in the directory that are generated from other builds and used by other builds.

      Either the cleanup option should only remove files that are attempting to be moved, allow another option to perform that way, or have an option to overwrite the files if they exist.

      This plug works as I need to with the exception of this and I cannot use the plugin until a better cleanup solution exists.

        Attachments

          Activity

          Hide
          gbois Gregory Boissinot added a comment -

          The plugin delegates internally to the very robust Atlassian copy-filesystem Ant task.
          For your use case, I suggest use a separate directory between builds.
          Maybe use the ${BUILD_ID} variable.

          Show
          gbois Gregory Boissinot added a comment - The plugin delegates internally to the very robust Atlassian copy-filesystem Ant task. For your use case, I suggest use a separate directory between builds. Maybe use the ${BUILD_ID} variable.

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              bcoveny Bruce Coveny
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: