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

copy-to-slave-plugin unable to copy directories

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: copy-to-slave-plugin
    • Labels:
      None
    • Environment:
      Master: Linux, Slave Linux, Jenkins version 1.6.1.3, copy-to-slave-plugin 1.4.4
    • Similar Issues:

      Description

      Precondition: Buildscript results in single files and a directory with subdirectories

      Steps:
      1. add path to files and directories that in userContent that should be copied
      2. specify /* or /**/
      3. run job

      Actual result: directories are omitted as "cp" is used

      Expected result: directories are copied intact to target path

      ________________________________________
      Additional info:

      Line used in copy field:

      dir_1/dir_2/dir_3/*

      Path relative to $JENKINS_HOME/userContent
      ________________________________________

      • dir_3 contains all the buildfiles including a dirctory with 2 levels of subdirectories.
      • tryign also with dir_1/dir_2/dir_3/**/ e.g. and various other variations always ends up in: cp: omitting directory
      • With just a quick glance at the code on github I couldn't find anything similar to <fileset dir="${src.dir}" includes="**"/>
      • Is it currently even possible to also copy all directories in the specified path and keep their structures intact (I don't want anything flattened.)?

        Attachments

          Activity

          Hide
          jimmyjudas James Housley added a comment -

          This works fine for me using either

          */
          or
          [Folder name]/*/

          Show
          jimmyjudas James Housley added a comment - This works fine for me using either * / or [Folder name] /* /

            People

            • Assignee:
              svvivek Vivekanand SV
              Reporter:
              fubsan fub san
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: