Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-17770

Artifact permissions are not preserved for local agents

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Summary

      Artifact permissions are not preserved for local agents.

      Steps to Reproduce

      1. create a new Project (i.e.: Support), Plan (i.e.: MyPlan)
      2. add an "Script" task
        # creates a new file
        touch executable.jar
        
        # list files
        ls -l
        
        # change its permission
        chmod 755 executable.jar
        
        # list files
        ls -l
        

        As a result you would have something like:

        12-Dec-2014 14:08:52	total 0
        12-Dec-2014 14:08:52	-rw-r--r--  1 root  root  0 Dec 12 14:08 executable.jar
        12-Dec-2014 14:08:52	total 0
        12-Dec-2014 14:08:52	-rwxr-xr-x  1 root  root  0 Dec 12 14:08 executable.jar
        
      3. create an Artifact definition as per following:
        Name: myArtifact
        Location:
        Copy pattern: executable.jar
        [x] Shared
        
      4. go to $BAMBOO_HOME/artifacts and run the following:
        ls -l SUP-MYPLAN/shared/build-00001/myArtifact/executable.jar
        

        As a result you would have something like:

        -rw-r--r--  1 root  root  0 Dec 12 14:08 SUP-MYPLAN/shared/build-00001/myArtifact/executable.jar
        

      Workaround

      • Write a script job that will re-set the correct permissions
      • Tar everything up before creating the artifacts and then pass around a tarball rather than just pure artifacts.

      Attachments

        Issue Links

          Activity

            People

              achystoprudov Alexey Chystoprudov
              brosa Bruno Rosa
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: