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

Copy operation keep permissions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • file-operations-plugin
    • None
    • file-operations-plugin 1.7
      jenkins (lts) 2.121.1
      windows 7

      We use the copy operations to copy files from a node to windows shares. This is working really great but we get some trouble since upgrading to Jenkins 2.121.1.

      Since this upgrade it seems that the file permissions on the copied files are restored. This causes that only the build node can access the copied files and not as expected (and previous working) everyone.

       

      I tried to investigate the changes that were made since the last version and found the issue JENKINS-13128.

      Here the method FilePath.copyRecursiveTo() was changed to preserve file permissions.

       

      Actually we executed "icacls" after the copy action as workaround but it would be great if this would not be necessary (as in the past):

      "bat("icacls " + share_directory + " /grant *S-1-1-0:(OI)(CI)F /T")

       

       

            pskumar448 Suresh Kumar
            bboehmke Benjamin Böhmke
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: