Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Not A Defect
    • Component/s: copyartifact-plugin
    • Labels:
      None
    • Environment:
      CopyArtifact Version: 1.38.1
      Jenkins Version: 2.46.3
      OS Version: Centos 7
    • Similar Issues:

      Description

      How am I using jenkins?: We are using jenkins as version control of website files (wordpress).

      What am I trying to do?: I'm trying to use this plugin to copy the site files to the /var/www/html directory to a sub directory specific to the site (dir to dir transfer on the same server). I previously used Artifact Deployer for this but its currently dead.

      Whats the problem: The destination directory is set to give the Jenkins user full permission BUT I get a permission denied error (Permissions apache:webadmin (Jenkins is part of the webadmin group) 755). When I set the folder permissions to 777 the plugin is able to successfully copy the files there.

      I did disable selinux and was able to rule that out as the cause. Does this plugin run as a different user when copying files? Any other reason why this may be happening?

       

      Flatten directories isn't an option as it destroys the WordPress file hierarchy.

        Attachments

          Activity

          Hide
          ikedam ikedam added a comment -

          > When I set the folder permissions to 777 the plugin is able to successfully copy the files there.

          Apparently it's an environmental issue.
          Not an issue of copyartifact.

          Show
          ikedam ikedam added a comment - > When I set the folder permissions to 777 the plugin is able to successfully copy the files there. Apparently it's an environmental issue. Not an issue of copyartifact.
          Hide
          pfmedia Spencer Roser added a comment -

          I disagree with you and here is why:

          I added a build step of execute shell and set the following:

          cp -R /var/lib/jenkins/workspace/Test /var/www/html/test-site

          and it worked which tells me that the environment is perfectly fine. If it were an environment problem I should have gotten the same permission denied error.

          Any other ideas?

           

          Show
          pfmedia Spencer Roser added a comment - I disagree with you and here is why: I added a build step of execute shell and set the following: cp -R /var/lib/jenkins/workspace/Test /var/www/html/test-site and it worked which tells me that the environment is perfectly fine. If it were an environment problem I should have gotten the same permission denied error. Any other ideas?  
          Hide
          ikedam ikedam added a comment -

          Your information is too little to say anything.
          More details (like output of ls -R, or log output from your build) is required.

          Anyway, it never be an issue of Jenkins or copyartifact, as far as it works file with the OS configuration.

          > Permissions apache:webadmin (Jenkins is part of the webadmin group) 755

          I think this description means you misunderstand the permission system of Unix.
          Please contact your system administrator or someone know the permission system of Unix.
          Jenkins works as a process on the OS, and don't work correct with incorrect permission configuration on the OS.

          Show
          ikedam ikedam added a comment - Your information is too little to say anything. More details (like output of ls -R, or log output from your build) is required. Anyway, it never be an issue of Jenkins or copyartifact, as far as it works file with the OS configuration. > Permissions apache:webadmin (Jenkins is part of the webadmin group) 755 I think this description means you misunderstand the permission system of Unix. Please contact your system administrator or someone know the permission system of Unix. Jenkins works as a process on the OS, and don't work correct with incorrect permission configuration on the OS.

            People

            • Assignee:
              pfmedia Spencer Roser
              Reporter:
              pfmedia Spencer Roser
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: