The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

file permissions in artifact is not preserved

Nicolas Nicolas
November 7, 2011

Hi,

the first stage in the build process produces a script that has execution permissions (755). This script is part of the artifact of that stage. The second stage depends on this artifact and expects to be able to run the script. However, the permissions are reset to 644. How do I fix this?

Thanks,

nick

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 7, 2011

You have to either recreate the permissions via an Script Task (Inline) or store the artifact in an archive format that preserves permissions (basically, tar the artifact via a Script Task, have the tarrred version defined as an artifact and untar it in the second job - again, via a script task).

Nicolas Nicolas
November 7, 2011

Thanks, I will try that.

TAGS
AUG Leaders

Atlassian Community Events