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

Copy operation keep permissions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: file-operations-plugin
    • Labels:
      None
    • Environment:
      file-operations-plugin 1.7
      jenkins (lts) 2.121.1
      windows 7
    • Similar Issues:

      Description

      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")

       

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

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

              Dates

              Created:
              Updated: